List front-end templates: Custom versus overrides

Status
Not open for further replies.

David.Woosley

New Member
I have two list templates:

--- An override of the 'default' template.
--- A custom 'friends' template with images, etc.

The problem is this: Even though the friends template appears as an option in Layout section of Edit List screen, Fabrik refuses to use it when I choose it. Instead, it always uses my override of the default template. The templates are located as follows:

The override of default, which works great:

.../templates/myTemplate/html/com_fabrik/list/default

The custom for friends, which is ignored:

.../components/com_fabrik/views/list/tmpl/friends

I tried putting the friends template beside my override of default, like this ...

.../templates/myTemplate/html/com_fabrik/list/friends

... but that failed because the friends template no longer appears as an option in Layout section. (NOTE: It should work like that. Custom templates should exist under templates/myTemplate/..., and not under components/com_fabrik/....)

Why does Fabrik ignore my friends template? Thanks.
 
Have you cleared the Joomla/browser caches?
Do you access your list from a menu item? If so, you have to change the template setting in the menu tiem's options. This overrides the setting in the list.
 
Clearing the cache did not help. I access Fabrik lists from within an article, exactly like this:

{fabrik view=list id=X}

Where 'X' is the list ID. Do I need to pass another parameter in addition to the ID? Thanks.

 
PROBLEM SOLVED: Use the 'layout' parameter

I must use the 'layout' parameter with the plugin.

{fabrik view=list id=X layout=friends}

Works great. I am embarrassed that I missed it.

 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top