Extra_menu and sidemenu in search

Author Message

Vidhi ashra

Friday 23 July 2010 4:20:08 am

Hi,

I need something like persistent _variable in search template:

{set scope=global persistent_variable=hash('left_menu', true(),
'extra_menu', true(),
'show_path', true())}

for search template. How can I do that? Coz that is only valid in content/view.

Please help

Vidhi

Vidhi

André R.

Friday 23 July 2010 4:41:33 am

If you use ezwebin, or have it enabled at least, then you'll be able to use a template operator called ezpagedata_set and ezpagedata_append (to append values to arrays), these are abstractions for {set scope=global persistent_variable.. that should work on most pages.

see:

http://share.ez.no/forums/setup-design/solved-removing-the-global-zone-displayed-on-right-side

http://share.ez.no/forums/setup-design/how-to-change-the-way-of-displaying-an-object#comment27561

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Vidhi ashra

Friday 23 July 2010 5:13:23 am

Thanks a lot André. Have a great day!

Vidhi

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 18 2025 10:39:13
Script start
Timing: Jan 18 2025 10:39:13
Module start 'layout'
Timing: Jan 18 2025 10:39:13
Module start 'content'
Timing: Jan 18 2025 10:39:14
Module end 'content'
Timing: Jan 18 2025 10:39:14
Script end

Main resources:

Total runtime0.7105 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 589.0391152.6250
Module start 'layout' 0.00880.0023 741.664139.4609
Module start 'content' 0.01100.6980 781.1250535.7578
Module end 'content' 0.70900.0015 1,316.882812.1563
Script end 0.7105  1,329.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5221160.0002
Check MTime0.00140.2018160.0001
Mysql Total
Database connection0.00180.246610.0018
Mysqli_queries0.657692.5481580.0113
Looping result0.00060.0783560.0000
Template Total0.676495.220.3382
Template load0.00200.277120.0010
Template processing0.674594.922920.3372
Template load and register function0.00020.030010.0002
states
state_id_array0.00100.146110.0010
state_identifier_array0.00090.121520.0004
Override
Cache load0.00160.2302210.0001
Sytem overhead
Fetch class attribute can translate value0.00090.124320.0004
Fetch class attribute name0.00140.200740.0004
XML
Image XML parsing0.00070.101220.0004
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00080.1117170.0000
String conversion0.00000.001240.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs