Output filters

3 years 7 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?
$ids_to_filters = array();
foreach($this->filters as $filt) {
  $ids_to_filters[$filt->id] = $filt;
then use:
echo $ids_to_filters[44]->html;

I am trying to get the following output:
<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>



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

3 years 7 months ago - 3 years 7 months ago #56949 by ggppdk
Replied by ggppdk on topic Output filters
copy files

inside your template folder:

then do a text search inside folder:

with e.g.

modify the file filters.php
use something like:
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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.