Block System override won't work

Author Message

Fabio Farnesi

Sunday 17 February 2008 4:16:29 am

well it seems i can't override the template for a new block

in my ./extension/ezflow/settings/block.ini.append i have

[General]
AllowedTypes[]
AllowedTypes[]=4d_list

[4d_list]
Name=Home lista Trailer (dinamico)
NumberOfValidItems=9
NumberOfArchivedItems=4
ManualAddingOfItems=disabled
FetchClass=ezflowlatestobjects
FetchFixedParameters[]
FetchFixedParameters[Class]=article
FetchParameters[]
FetchParameters[Source]=nodeID
# Single / Multiple
FetchParametersSelectionType[Source]=Multiple
FetchParametersIsRequired[]
# True / False
FetchParametersIsRequired[Source]=true

in my .\settings\siteaccess\ezflow_site\override.ini.append i've

[block_4d_list]
Source=block/view/view.tpl
MatchFile=block/4d_list1.tpl
Subdir=templates
Match[type]=4d_list
Match[view]=4d_list1

and in my .\settings\siteaccess\ita\override.ini.append i've

[block_4d_list]
Source=block/view/view.tpl
MatchFile=block/4d_list1.tpl
Subdir=templates
Match[type]=4d_list
Match[view]=4d_list1

and of course i've 4d_list1.tpl in extension/ezflow/design/ezflow/override/templates/block

btw it always take view.tpl and never 4d_list1.tpl any idea?

Felix Laate

Tuesday 21 June 2011 12:33:12 am

I'm experiencing the same problem. Whatever I do, the override template won´t show.

Is there a way out of this?

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Łukasz Serwatka

Tuesday 21 June 2011 2:04:47 am

You are missing a view settings in your block definition and you made it part of your override rule.

Add following to your block def:

ViewList[]=4d_list1
ViewName[4d_list1]=Some Human Readable Desc

Then re-publish your frontpage so block will get proper view information.

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

Felix Laate

Tuesday 21 June 2011 4:02:08 am

Hi Luke, and thanks for answering.

It turns out my problem was different. I have this settings/override/block.ini.append.php

"

[General]
AllowedTypes[]=EventCalendarGS
[EventCalendarGS]
Name=Aktivitetskalender GS
NumberOfValidItems=1
NumberOfArchivedItems=5
ManualAddingOfItems=enabled
ViewList[]=event_calendar
ViewName[event_calendar]=EventCalendarGS

"

And this settings/siteaccess/nor/override.ini.append.php

"

[block_event_calendar]
Source=block/view/view.tpl
MatchFile=block/event_calendar_gs.tpl
Subdir=templates
Match[type]=EventCalendarGS
Match[view]=event_calendar

"

And my template is placed in design/ezflow_plain_site/override/templates/block/

Still the default view.tpl template and not my own is shown.

I used to be able to figure these things out, but I have been away from ezpublish for a while now...

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

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