eZ Community » Forums » Extensions » Ezwebin with continuous extrainfo column
expandshrink

Ezwebin with continuous extrainfo column

Ezwebin with continuous extrainfo column

Thursday 29 September 2011 7:55:06 am - 2 replies

Dear all,

I try to achieve the following behaviour

1. Extrainfo is always show on every page for a certain design

2. Infoboxes are fetched recursively starting from the root node to fill the extrainfo column

I started out with frontpage content type and overwrote the template adding

{set scope=global persistent_variable=hash('left_menu', true(),
                                           'extra_menu', true(),
                                           'show_path', true())}

This works very well for content where there is infoboxes embedded. $pagedata.extra_menu='extra_info' ist set. I then changed the template that is responsible for extra_menu in order to walk the variable $pagedata.path_id_array fetching all infoboxes along the way. Also works.

While testing I noticed, that whenever a frontpage does not have an infobox embedded I read $pagedata.extra_menu=false() and also css_classes are set to noextrainfo. Thus the frontpage layout gets scrambled probably due to no extra column being set.

My questions now are

1. Is $pagedata.extra_menu='extra_info' related to css_classes containing extrainfo?

2. Can one alter $pagedata.extra_menu for a design, meaning in pagelayout.tpl?

3. Are there other ways of achieving css_classes to contain extrainfo or to achieve the above behaviour?

Many thanks for any hints. I could not figure it out from previous posts.

Best wishes

Modified on Thursday 29 September 2011 7:57:28 am by Sebastian Schoeller

Friday 30 September 2011 2:32:36 pm

I changed this by adding

{set $pagestyle = 'sidemenu extrainfo'}

to the head of pagelayout.tpl. I am not satisfied with the solution. extra_menu still shows false and the css_classes information is lost. If somebody has a different solution I'd be glad to get some advice.

Best wishes

Sebastian

Friday 30 September 2011 10:10:17 pm

Wrong path! I had to set

ExtraMenuSubitemsCheck=disabled

in ezwebin extension settings and now everytime I set

{set scope=global persistent_variable=hash('left_menu', true(),
                                           'extra_menu', true(),
                                           'show_path', true())}

in the view template the pagedata variable for extra_info is set to extra_menu. Lovely

Sebastian

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from