Including extension templates

Author Message

David Jones

Thursday 25 January 2007 3:23:54 am

I want to include a template, from an extension, in my pagelayout.tpl

I have tried this:

{include uri="design:register_subscription.tpl"}

but the contents of the template do not appear.

The template itself sits here

extension/ezxnewsletter/design/standard/templates/ezxnewsletter/register_subscription.tpl

How do I / Can I include this?

Many thanks

Xavier Dutoit

Thursday 25 January 2007 5:45:09 am

The structure under your design in the extension should be exactly the same as the one you'd put under the regular design.

So to call it as it is you should :
{include uri="design:ezxnewsletter/register_subscription.tpl"}

Check if your extension settings add itself as one providing templates

extension/ezxnewsletter/settings/design.ini.append.php


[ExtensionSettings]
DesignExtensions[]=ezxnewsletter

http://www.sydesy.com

David Jones

Thursday 25 January 2007 9:37:07 am

thats great.

Thank you

Rob Borley

Thursday 25 January 2007 9:59:13 am

I've done something similar to this and I assume that you are heading in the same direction.

I've managed to included the registration form in a template and used that template to override the node\full template of a new class (Newsletter Sign up)

What I can work out is how to pass it the id of the list I wish to sign up to.

{def $base_uri=concat( '/newsletter/register_subscription/', $subscriptionList.url_alias )}

That is th action of the form. But I can't work out how to set it.

Ideally I would like a drop down (or something) in my class definintion to set the list for the form to subscribe too.

If i have to set it in the template itself though that's ok.

Any ideas?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.