Share » Forums » Setup & design » Design changes

Design changes

Design changes

Wednesday 15 February 2006 9:27:20 pm - 2 replies

Modified on Wednesday 15 February 2006 9:30:39 pm by Mihai007 Pop

Author Message

laurent le cadet

Thursday 16 February 2006 6:55:17 am

Hi,

There is many different ways to customize your section design.

First of all create sections ;) (admin)and assign them to specific folders then declare them in override.ini.append.php :

[page_coeur]
Source=pagelayout.tpl
MatchFile=page_coeur.tpl
Subdir=templates
Match[section]=17

[page_sortir]
Source=pagelayout.tpl
MatchFile=page_sortir.tpl
Subdir=templates
Match[section]=18

...

1 template (pagelayout) for each section and now you can add the additionnal stylesheets you want.

Another lighter approch and maybe better (it depend on what you will want to do) is a switch/case based on your new section :

<style type="text/css">
{switch match=$DesignKeys:used.section}
		{case match=6}
			@import url({"stylesheets/maternelle.css"|ezdesign});
		{/case}
		{case match=7}
			@import url({"stylesheets/college.css"|ezdesign});
		{/case}
		{case match=8}
			@import url({"stylesheets/segpa.css"|ezdesign});
		{/case}
{/switch}
</style>

No need to create specific pagelayout. You can use the default one.

This are some basics but I'm nearly sure you can do what you want.

Hope this help.

Laurent

Christopher Grondahl

Saturday 04 March 2006 3:32:56 pm

good fix with the section-based approach. thanks.

Chris

ez site: http://www.acem.no

Every day is Groundhog Day

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

36 542 Users on board!

Forums menu