Linking templates in block.ini

Linking templates in block.ini

Friday 18 January 2008 9:57:17 pm - 5 replies

Author Message

Sébastien Antoniotti

Friday 11 April 2008 4:35:43 am

Hi Rémi,

Have you found any solution ?

eZ Publish Freelance
web : http://www.webaxis.fr

Michael Fürst

Monday 30 March 2009 3:36:20 pm

Hi There,

I've the same problem:
TemplateList[]= <PATH/FILENAME???>

ez doesn't find the template I want to use. As workaround at the moment I'm using a View List with an override template and in this override template I include the static template. That's not a really nice solution.

Does anyone have a hint for me?

Thanks in advance,
Mike

Łukasz Serwatka

Tuesday 31 March 2009 1:00:38 am

Blocks should be use template override system. The TemplateList setting is deprecated. Use a ViewList[] instead.

...
ViewList[]=variation1
ViewName[variation1]=My dynamic block view 1
...

Then in the override.ini.append.php

[dynamic_block]
Source=block/view/view.tpl
MatchFile=block/dynamic_block.tpl
Subdir=templates
Match[type]=DynamicBlockType
Match[view]=variation1

Did you find a TemplateList in the doc? If so, could you post a issue about it?

Thanks,

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Michael Fürst

Tuesday 31 March 2009 1:24:47 am

Hi,

Ok, then my "complicated" way seems to be the correct one.
TemplateList[] is used in the actual eZFlow Documentation - I will post an issue for that..

Edit: FYI: Here is the issue:
http://issues.ez.no/IssueView.php?Id=14711&activeItem=1

Regards,
Mike

Łukasz Serwatka

Tuesday 31 March 2009 1:36:28 am

Thanks. I will update doc and publish them on ez.no/doc page.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

You must be logged in to post messages in this topic!

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