Output filters

More
9 years 2 months ago #56947 by iamrobert
Output filters was created by iamrobert
Is there anyway to control the code outputted in $filt in a category template view?
Code:
$ids_to_filters = array(); foreach($this->filters as $filt) { $ids_to_filters[$filt->id] = $filt; }
then use:
Code:
echo $ids_to_filters[44]->html;

I am trying to get the following output:
Code:
<div class="option-set clearfix" data-group="rim_material"> <h3>Rim Material</h3> <input type="checkbox" value="" id="rim_material-all" class="all" checked=""> <label for="rim_material-all">All</label> <input type="checkbox" value=".carbon" id="carbon"> <label for="carbon">Carbon</label> <input type="checkbox" value=".alloy" id="alloy"> <label for="alloy">Alloy</label> </div>

Thanks,

Robert

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

More
9 years 2 months ago - 9 years 2 months ago #56949 by ggppdk
Replied by ggppdk on topic Output filters
copy files
components/com_flexicontent/tmpl_common/*.*

inside your template folder:
components/com_flexicontent/templates/MY_CUSTOM_TEMPLATE

then do a text search inside folder:
components/com_flexicontent/templates/MY_CUSTOM_TEMPLATE

replace
.../tmpl_common/
with e.g.
.

modify the file filters.php
use something like:
Code:
if ($filt->id==53) { then print MY code } else { echo $filt->html; }


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 9 years 2 months ago by ggppdk.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.696 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