Monday 28 May 2012 10:16:48 am - 2 replies
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.
I have installed eZpublish on local machine with ezwebin extension.
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
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
Monday 28 May 2012 10:47:22 pm
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:
Let me know if you need further clarification (and include more detail around your setup if this is the case).
You must be logged in to post messages in this topic!