eZ Community » Forums » Setup & design » Problems with Billboard in Header…
expandshrink

Problems with Billboard in Header…

Problems with Billboard in Header…

Sunday 02 October 2011 2:28:00 pm - 3 replies

Hello guys,

i'am new with developing in ezPublish! I want to position the Billboard in the head of my site!
With this code i get this…

but when have a  folder for example, i don't wnat to add a header image for every new link in submenu!
Is there a solution to display the header image of a folder around all child links of this folder?

Hope you could understand my horrible english and have an advice to solve this issue…
greetings from Hamburg

cominaction

 
 
 {let headerbild=fetch(content, node, hash(node_id, $module_result.node_id))}
                   {content_view_gui view=billboard content_object=$headerbild.object.data_map.billboard.content}
  {/let}

Monday 03 October 2011 10:50:40 am

You want all the children of a folder to use the header of that folder (parent)?

Example:

Home (Frontpage)

    |______Products (Folder)

            |_______Apple (Folder)

                    |_______iPad 3

                    |_______iPhone 5

The folder 'Apple' is using my_product_billboard_image.jpg and you want 'iPad 3' and 'iPhone 5' to use the same image for their billboard?

First thing, do not use 'let' it is deprecated, use 'def' / 'set' instead.

{def $headerbild = fetch( 'content', 'node', hash( 'node_id', $node.parent_node_id ) )}
 
 
{if $headerbild.data_map.billboard.has_content}
 
    {content_view_gui view=billboard content_object=$headerbild.object.data_map.billboard.content}
 
{/if}

Modified on Monday 03 October 2011 10:51:40 am by Quoc-Huy NGUYEN DINH

Monday 03 October 2011 11:06:28 am

Hello Quoc Huy Nguyen Dinh,

thank you for your reply. Yes you are quite right!

But the Header Image is in the page_header.tpl so i can'T work with $node i guess or!?

When products folder has header-products.jpg and apple folder billboard has no defiened header-apple.jpg then

the apple folder should display the header-products.jpg of the parents

 

Home ( Frontpage )

|__________Products (Folder)

   |______________Apple ( Folder )  - if no defiened Header - header_prodcts.jpg else header_apple.jpg

       |______________…

 

Hope you can understand…

Modified on Monday 03 October 2011 11:27:21 am by phil saelzer

Monday 03 October 2011 1:14:44 pm

Within page_header.tpl you can get the parent node id through: $module_result.content_info.parent_node_id

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from