This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » 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 5:36:44 pm

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

Using the search feature

If you'd like the search function to only search the subtree below each siteaccess's own landing page node, add the following to pagelayout.tpl's search form:

<input type="hidden" name="SubTreeArray[]" value="{$indexpage}" />

Do similarly for templates/content/advancedsearch.tpl and templates/content/search.tpl, though you'll want to use something more like “value="{ezini( 'NodeSettings', 'RootNode', 'content.ini' )}” since $indexpage isn't available there.

Update search template code

Update search template code


Clear caches for changes to take effect if you have not turned your eZ Publish instance into development mode.



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


Proudly Developed with from