eZ Community » Forums » Setup & design » templating/ new custom design for...
expandshrink

templating/ new custom design for "dummies"

templating/ new custom design for "dummies"

Monday 28 May 2012 10:16:48 am - 2 replies

Hi everyone!

After banging my head for a few days I decided to make my needs known...

I'm trying to create a custom design, but can't figure out what am I doing wrong because my css files are not picked up. Still don't understand the overriding system and if anyone has a few minutes to guide me through the process, I'd greatly appreciate it. I tried to follow a few tutorials, but can't understand which "site.ini.append" or "design.ini.append" or "override.ini.append" files I have to edit. 

Eg:

I have installed eZpublish on local machine with ezwebin extension.

/ezpublishroot/design/mydesign

My siteaccess: admin/ chi(chinese)/ eng/ ezwebin_site/ ezwebin_site_admin

I'd like to override the pagelayout.php and to create templates for two custom content classes: Student and Update.

Thanks a lot!

Monday 28 May 2012 5:16:18 pm

Hello,

Note that you shouldn't add new designs in the ezpublishroot/design/ directory. The best way is to create your custom extension, then add a design/ directory in it.

Then, you must activate :

- your new extension in the [ExtensionSettings] section

- your new design in the [DesignSettings] section

 

Both modifications are located in the site.ini.append.php (in your settings/override or settings/<siteaccess> depending on your config)

Hope that helps happy.gif Emoticon

Monday 28 May 2012 10:47:22 pm

Hi Paul,

Please read my answer on How to override templates, and let me know if it's still unclear.

Putting designs in the root design directory is OK for starters - putting it in an extension gives you some separation from the core CMS, and makes upgrading easier.

Your new design (including templates & stylesheets) needs to override the ezwebin design.  There are two settings that you need to change in your siteaccesses:

  1. In site.ini.append.php, under [DesignSettings], you should see
    • SiteDesign - this is the main design for your website. Set this to your design name.
    • AdditionalSiteDesignList[] - this is a list of fall-back designs. Include ezwebin at the top of this list if it's not there already

Let me know if you need further clarification (and include more detail around your setup if this is the case).

Cheers,
Geoff 

expandshrink

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

36 542 Users on board!

Forums menu