Forums / Setup & design / URL to point directly to a template

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