Forums / General / Site Map Root

Site Map Root

Author Message

David Jones

Monday 16 October 2006 3:30:49 am

Can i set the root of the site map and so restrict it's output?

Tore Skobba

Monday 16 October 2006 7:38:31 am

Yes, simply add the node id, for example: content/view/sitemap/65

David Jones

Tuesday 17 October 2006 1:53:37 am

Thats great, thanks.

Can you do the same for the search?

Pascal von Büren

Tuesday 17 October 2006 2:26:39 am

For sure ;)
Look at: http://ez.no/community/forum/setup_design/how_to_return_search_results_for_local_node_in_siteaccess/re_how_to_return_search_results_for_local_node__2

Taken from this thread, you can use following code in your search field:

 <form action={"/content/search/"|ezurl} method="get">
 <input type="hidden" name="SubTreeArray" value="150" />
 <input type="submit" value="submit" />
 </form>

David Jones

Tuesday 17 October 2006 5:28:36 am

Thanks.

It looks like that will only search that one node though.

I would want it to search that node and everything below it.

Thanks

Pascal von Büren

Tuesday 17 October 2006 6:40:20 am

Obviously, it isn't.

SubtreeArray restrictst the search to the specified <strong>subtree</strong>, as its name already suggests. (Node and all silblings)

Sadly, there isn't much documentation about this feature but a small note in a change log:

http://ez.no/download/ez_publish/changelogs/ez_publish_3_5/search_from_here

I suppose, this works only on main nodes, so there could be your problem...

David Jones

Tuesday 17 October 2006 6:54:58 am

Thanks Pascal.

I miss read it *shame*

Works brilliantly!