Share » Learn » eZ Publish » Lots of Websites, One eZ Publish...

Lots of Websites, One eZ Publish Installation - Adding Siteaccesses in eZ Publish

Thursday 27 May 2010 8:36:44 am

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

How-To Part III: Updating Templates and Content

Top menu adjustment

If you're using Website Interface (ezwebin) 1.6 and have the top menu bar, edit menu/flat_top.tpl so it knows where to find the list of pages below the landing page node:

{def $root_node=fetch( 'content', 'node', hash( 'node_id', $indexpage ) )

to

{def $root_node=fetch( 'content', 'node', hash( 'node_id', ezini( 'NodeSettings', 'RootNode', 'content.ini' ) ) )

The change above leads to the following visual change :

Before altering the template building the menu

Before altering the template building the menu

 

After having altered flat_top.tpl, the template building the menu

After having altered flat_top.tpl, the template building the menu

 

Printable

Printer Friendly version of the full article on one page with plain styles

Author(s)