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!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:22:33
Script start
Timing: Jan 19 2025 01:22:33
Module start 'layout'
Timing: Jan 19 2025 01:22:33
Module start 'content'
Timing: Jan 19 2025 01:22:35
Module end 'content'
Timing: Jan 19 2025 01:22:35
Script end

Main resources:

Total runtime1.5850 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 590.7969152.6094
Module start 'layout' 0.00480.0028 743.406339.3984
Module start 'content' 0.00761.5763 782.8047575.7031
Module end 'content' 1.58390.0010 1,358.507812.2031
Script end 1.5849  1,370.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.1957160.0002
Check MTime0.00140.0857160.0001
Mysql Total
Database connection0.00070.046010.0007
Mysqli_queries1.525396.2360710.0215
Looping result0.00070.0412690.0000
Template Total1.550897.820.7754
Template load0.00180.116520.0009
Template processing1.549097.729220.7745
Template load and register function0.00020.011910.0002
states
state_id_array0.00100.064210.0010
state_identifier_array0.00140.089620.0007
Override
Cache load0.00160.0988310.0001
Sytem overhead
Fetch class attribute can translate value0.00080.050330.0003
Fetch class attribute name0.00150.094780.0002
XML
Image XML parsing0.00670.419630.0022
class_abstraction
Instantiating content class attribute0.00000.001190.0000
General
dbfile0.00660.4155150.0004
String conversion0.00000.000440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs