Search…

X3 Photo Gallery Support Forums

Search…
 
winph
Experienced
Topic Author
Posts: 236
Joined: 19 Jul 2008, 05:07

layout and context

24 Mar 2015, 05:46

hi,

so whats the difference between layout and context?

and

how did you make this grid split?

https://mjau-mjau.com/concepts/grid/split/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: layout and context

24 Mar 2015, 12:07

winph wrote:so whats the difference between layout and context?
You will need to have patience until we have better documentation for this, but in general:

layout
layout refers to settings for ALL modules (context, gallery,folders) in a page layout. Here you can for example decide what modules to display in what order (layout: items:gallery,context), or set a style that applies for ALL modules (layout: text-center).

context
context is a specific module in your page, which by default contains title, description and content. By default, it will display before the gallery and/or folders module. The context module can also include other page items, like date and preview.
winph wrote:how did you make this grid split?
https://mjau-mjau.com/concepts/grid/split/
I can't really explain in detail right now, but generally it is achieved by using the Foundation Grid to split the context+gallery into two columns 8/4(12). Then inside the gallery, using a basic 2-grid layout. Here are the essential settings from that page:
Code
context: left-column large-4 large-push-8 columns
gallery: right-column large-8 large-pull-4 columns grid:2,2,1,30
Here is the exact copy from that page, with a few other unrelated settings:
Code
context: left-column large-4 large-push-8 columns text-center large-text-left
gallery: right-column large-8 large-pull-4 columns grid:2,2,1,30 assets:albums/portraits crop:1,1 caption:title,date caption-top-left x-frame-medium-up
Sorry, I will need to document this better later ...
 
winph
Experienced
Topic Author
Posts: 236
Joined: 19 Jul 2008, 05:07

Re: layout and context

24 Mar 2015, 20:50

thanks :)