How to override listings_filter_form.php ?

More
2 weeks 2 days ago - 2 weeks 1 day ago #85223 by lipatovroman
Hello.
How to override this file?
/components/com_flexicontent/tmpl_common/listings_filter_form.php

I tried copying it to my FC template folder, but that doesn't work.
/components/com_flexicontent/templates/my_template/listings_filter_form.php

Actually, I copied 3 files:
/components/com_flexicontent/tmpl_common/filters.php
/components/com_flexicontent/tmpl_common/listings_filter_form_body.php
/components/com_flexicontent/tmpl_common/listings_filter_form.php

But overriding still not working.

What am I doing wrong?
Last edit: 2 weeks 1 day ago by lipatovroman.

Please Log in or Create an account to join the conversation.

More
2 weeks 1 day ago #85225 by micker

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
2 weeks 1 day ago #85226 by lipatovroman
Thanks.
I remembered that Georgios solved this problem and he made edits that I think should be included in the main installation package.
Code:
ob_start();
file_exists(dirname(__FILE__).DS.'listings_filter_form.php')
    ? include(dirname(__FILE__).DS.'listings_filter_form.php')
    : include(JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'tmpl_common'.DS.'listings_filter_form.php');
$filter_form_html = trim(ob_get_contents());
ob_end_clean();

This code checks if file listings_filter_form.php was copied to the user template folder. If yes - FC uses it. If no - FC uses file from tmpl_common folder.

Please Log in or Create an account to join the conversation.

More
2 weeks 1 day ago #85227 by micker
hello propose a pr on github

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
2 weeks 1 day ago #85228 by lipatovroman
Ok, sorry.
I see that Georgios has already implemented a check if the files have been copied to the template folder.
So there is no problem.
Thank you.

Please Log in or Create an account to join the conversation.

More
2 weeks 1 day ago #85233 by micker
thanks for validation

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.278 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline