URL to point directly to a template

Author Message

Softriva .com

Thursday 30 November 2006 6:04:32 am

I have made a tpl that has some choices that the user will click on to do certain actions. The tpl is named choice.tpl. How can I point to this tpl?

It seems trivial but it is always like that easy stuff is hard to do.

OOzy

Kristian Hole

Thursday 30 November 2006 7:24:14 am

If your template is located in "design/foo/templates/choices.tpl":
{include uri="design:choices.tpl"}

If it is in "design/foo/templates/bar/choices.tpl":
{include uri="design:bar/choices.tpl"}

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Claudia Kosny

Saturday 02 December 2006 3:21:52 am

Hi OOzy

If you want to have a direct url which calls up this template you either need to create dummy node which you give the names choices and has the choices.tpl as override or you create an extension which allows you to have views and thus urls that are not related to any node.

Claudia

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 18:42:01
Script start
Timing: Jan 18 2025 18:42:01
Module start 'layout'
Timing: Jan 18 2025 18:42:01
Module start 'content'
Timing: Jan 18 2025 18:42:02
Module end 'content'
Timing: Jan 18 2025 18:42:02
Script end

Main resources:

Total runtime0.7423 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 588.0391152.6406
Module start 'layout' 0.00820.0032 740.679739.4609
Module start 'content' 0.01150.7291 780.1406562.8203
Module end 'content' 0.74060.0016 1,342.960912.1563
Script end 0.7422  1,355.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4627160.0002
Check MTime0.00140.1907160.0001
Mysql Total
Database connection0.00130.180810.0013
Mysqli_queries0.686892.5266590.0116
Looping result0.00060.0812570.0000
Template Total0.706695.220.3533
Template load0.00240.329620.0012
Template processing0.704194.855720.3520
Template load and register function0.00020.029610.0002
states
state_id_array0.00140.182010.0014
state_identifier_array0.00100.130520.0005
Override
Cache load0.00200.2691160.0001
Sytem overhead
Fetch class attribute can translate value0.00080.106130.0003
Fetch class attribute name0.00100.136640.0003
XML
Image XML parsing0.00110.144430.0004
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00150.1978160.0001
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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs