List: "Front-End Template" Not Accepting Custom

talkinggoat

Member
First, I tried using this WIKI article, to create a list layout override, but when I go to select it from the dropdown, only the default templates are there.
http://fabrikar.com/forums/index.ph...m-list-template/#copying-an-existing-template

The WIKI article says to modify the /components/... folder. Wouldn't modifying the core be a bad thing? I have always read it was better to create an override in the template folder.

Is it possible to create a template override, here, like normal? I have cleared the cache in both the website and browser.

I can't call to it manually, either. {fabrik view=list id=18 layout=formless} But I can call to bootstrap and div. {fabrik view=list id=18 layout=div}

[UPDATE] So, if I modify the folder in the components folder, it will load the correct list template, and show it in the "Front-End Template" dropdown, but, like I asked, shouldn't that be in the html directory of the template, so it doesn't get overwritten or deleted in an update?

oPMoDfx.png


zxANoRW.png


Thank you.
 
Last edited:
In essence you have 3 ways to modify Fabrik output:

1. In place modification of existing template or layout files - these will be overwritten if you update Fabrik, so not IMO a good idea unless you believe that these changes should be a part of Fabrik and submit a PR for them.

2. Copying the template to a new directory to create a whole new template with the same functionality that you can then modify - giving you a choice of different templates for different parts of your Fabrik site. .

3. Overriding individual layout files by copying them to override locations and modifying them - layouts are NOT part of the template, so this is different functionality.

Using either a Template Copy or a Layout Override, your changes will not be overwritten when you update Fabrik, but your copy of the template will not be updated with any new functionality in the original template - and though rare, if the core of Fabrik and the template / layout have been updated together to fix something, then your own template / layout override may stop working correctly, so you need to keep records of any changes, test any update and be prepared to maintain your own changes.

From your screen shot of the directory listing, it appears that you have tried to make a copy of the Bootstrap template, but rather than following the instructions in the wiki you have copied the template to the location for layout overrides. If you move these to components/com_fabrik/views/list/tmpl/formless/ it should hopefully work as you expect.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top