eZ Community » Forums » Setup & design » EZ Publish 5 Design prerequisites
expandshrink

EZ Publish 5 Design prerequisites

EZ Publish 5 Design prerequisites

Monday 01 September 2014 10:22:00 am - 1 reply

Hi,
I gotta say I'm new to the whole ez Publish thing, but I'm forced to work with it and get along. I'm trying to understand, how this whole CMS idea works for version 5 and have some question regarding implementation of TWIG design, because I maybe new to ez but I've been working with Symfony 2 for some months now.

1. I have a full website design (html/css/js) that has to be used as an alternative design. If you go to mywebsite.com/blog, then it should display alternative design. Where and how can I override default design and point everything related to mysite.com/forums to that design?

2. Is this possible to use old design and TWIG on one project? Main design is ez-like, but I want to use Symfony's TWIG for that alternative design (I'm more familiar with it).

3. If I have an image that I'd like to put in a certain section/block of a page, how to do that? There's a condition for FETCH, but how do I assign an object class to the image so I can "grab" it while making the fetch.

Tuesday 02 September 2014 2:41:54 pm

I can't answer all the questions, but i believe it is good to start from this documentation page. Pay attention on "template" parameter, e.g template: eZDemoBundle:full:small_folder.html.twig

That's how you can set up your existing twig templates.

 

   > Is this possible to use old design and TWIG on one project?

It depends on how you are going to mix theese templates. You can easily include your old tpl files in twig templates:

{% include "design:my/old_template.tpl" with {"someVar": "someValue"} %}

Also read this: https://doc.ez.no/display/EZP/Legacy+template+fallback

 

  > 3. If I have an image that I'd like to put in a certain section/block of a page, how to do that? 

Is image an attribute (data type) of your content?

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from