how to get package path

Author Message

Marcin N.

Monday 11 December 2006 12:54:17 pm

hi!

I made my own package. I put there pictures which I want to use in templates. How can I get package path in template. Now I put something like this:

{"/var/storage/packages/local/my_name/files/default/file/images/logo.gif"|ezroot}

It works, but when I put package again with different name - "my_name_2" it stops working. I found something like <b>ezpackage</b> but I don't know how to use it.

Marcin

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 20:58:25
Script start
Timing: Jan 18 2025 20:58:25
Module start 'layout'
Timing: Jan 18 2025 20:58:25
Module start 'content'
Timing: Jan 18 2025 20:58:26
Module end 'content'
Timing: Jan 18 2025 20:58:26
Script end

Main resources:

Total runtime1.1553 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.9063152.6250
Module start 'layout' 0.00710.0056 740.531339.4453
Module start 'content' 0.01271.1412 779.9766399.7813
Module end 'content' 1.15390.0014 1,179.75788.1719
Script end 1.1553  1,187.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2774160.0002
Check MTime0.00130.1132160.0001
Mysql Total
Database connection0.00110.094910.0011
Mysqli_queries1.116996.6725460.0243
Looping result0.00050.0391440.0000
Template Total1.114196.420.5571
Template load0.00200.169620.0010
Template processing1.112296.265620.5561
Template load and register function0.00020.013710.0002
states
state_id_array0.00080.072110.0008
state_identifier_array0.00200.169620.0010
Override
Cache load0.00160.137580.0002
Sytem overhead
Fetch class attribute can translate value0.00070.061510.0007
Fetch class attribute name0.00070.062910.0007
XML
Image XML parsing0.00010.008810.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00080.0662100.0001
String conversion0.00000.000940.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs