Output filters

2 years 7 months ago #56947 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>
        </div>

Thanks,

Robert

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

2 years 7 months ago - 2 years 7 months ago #56949 by ggppdk
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:
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.