This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Different templates for different...
expandshrink

Different templates for different sections. Frontpage layout, global layout and How?

Different templates for different sections. Frontpage layout, global layout and How?

Monday 21 November 2011 4:02:37 pm - 2 replies

I have 5 sections on the site.
Example: About company, products, partners, contacts.
I want to have each section had its own layout.
Is this possible? How can I do it?
Now I see that there are Frontpage layout and Global layout, and it all?

Modified on Monday 21 November 2011 7:27:08 pm by Maxim Kopytov

Monday 21 November 2011 4:11:09 pm

Hello Maxim,

 

We don't normally remove forum messages that are not directly spam (FYI).

 

In the future consider posting your bug reports to http://issues.ez.no/ezpublish

 

Cheers,

Heath

Monday 21 November 2011 8:05:45 pm

You can set in override.ini different override conditions for the pagelayout.tpl template (see http://doc.ez.no/eZ-Publish/Techn...erence/Template-override-conditions).

Since your different sections are all applied to content viewing, you can use as matching conditions the same matching conditions you normally use for content/view/full.tpl

ex:

[products_pagelayout]

Source=pagelayout.tpl
MatchFile=pagelayout_red.tpl
Subdir=templates
Match[section]=13

 

Otoh when you talk about "frontpage layout" and "global layout", it seems you are thinking about the layout applied not to whole sections of content, but to specific pages, which are of type "frontpage" or similar - ie. using ezflow.

In general, you can customize eZ to have different layouts available for each type of content using the file zone.ini.append.php. But again, those layouts apply to single pages, not to entire sections of the site.

Modified on Monday 21 November 2011 8:06:10 pm by Gaetano Giunta

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from