set variable in URL

Author Message

hafez ahmad

Thursday 30 November 2006 2:31:32 am

hi all
how can I set variable in import url like

@import url({"stylesheets/$dir.css"|ezdesign});

thanks.

Kristof Coomans

Thursday 30 November 2006 2:39:35 am

Hi

Take a look at the concat template operator: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/strings/concat

@import url({concat("stylesheets/",$dir,".css")|ezdesign});

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

hafez ahmad

Thursday 30 November 2006 2:59:10 am

thanks

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 16:15:35
Script start
Timing: Jan 18 2025 16:15:35
Module start 'layout'
Timing: Jan 18 2025 16:15:35
Module start 'content'
Timing: Jan 18 2025 16:15:35
Module end 'content'
Timing: Jan 18 2025 16:15:35
Script end

Main resources:

Total runtime0.0171 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.2344152.6094
Module start 'layout' 0.00700.0031 741.843839.4297
Module start 'content' 0.01000.0051 781.273489.3984
Module end 'content' 0.01510.0020 870.671930.3047
Script end 0.0171  900.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002514.8512140.0002
Check MTime0.00116.3326140.0001
Mysql Total
Database connection0.00116.207310.0011
Mysqli_queries0.002715.838430.0009
Looping result0.00000.058510.0000
Template Total0.00169.610.0016
Template load0.00084.695110.0008
Template processing0.00084.917910.0008
Override
Cache load0.00053.071610.0005
General
dbfile0.00021.363180.0000
String conversion0.00000.036240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs