Forums / Setup & design / Linking templates in block.ini

Linking templates in block.ini

Author Message

Rémi Poulet

Friday 18 January 2008 9:57:17 pm

Hi all,

I'm really new there, I'm running eZ 4.0 with ezflow extension.

I've read some tutorials concerning the override of blocks definitions in block.ini.append.php, most of them suggest to write directly a tpl name in templatelist instead of setting up a viewlist and extending the override.ini.append.php in the siteaccess.

Unfortunaltely eZ doesn't seems to find out the tpl, perhaps due to an incorrect path configuration, have tried hardly most of them (template/blocks, block/ and so on), none of them solve the pb.

So does anyone can solve this issue corresponding to find the right entry for templatelist params bellow ?

[Dynamic3Items]
Name=3 items (dynamic)
NumberOfValidItems=3
NumberOfArchivedItems=5
ManualAddingOfItems=disabled
FetchClass=ezflowlatestobjects
FetchFixedParameters[]
FetchFixedParameters[Class]=article
FetchParameters[]
FetchParameters[Source]=nodeID
# Single / Multiple
FetchParametersSelectionType[Source]=single
FetchParametersIsRequired[]
# True / False
FetchParametersIsRequired[Source]=true
TemplateList[]=3d_items.tpl
TemplateList[]=3d_list.tpl

Thanks !

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