Category Pulling Fields

More
11 years 5 months ago #37825 by iamrobert2
Hi,

I am trying to make a custom template using isotope:

isotope.metafizzy.co/demos/combination-filters.html

Now - I have worked out how to have the lists display good:
Code:
$li_item_classes .= ' '.$items[$i]->fields['engine_size']->display;

So, the li have the required properties:
Code:
<li id="blogitem-1" class="50cc keeway">

However, at the top of the page I want to display the filters.

[attachment=0:3lywewhv]<!-- ia0 -->filter.png<!-- ia0 -->[/attachment:3lywewhv]

So it would output like:
Code:
<div class="option-combo size"> <h4>size</h4> <ul class="filter option-set clearfix " data-filter-group="size"> <li>[url=#filter-size-any" data-filter-value="" class="selected]any[/url] <li>[url=#filter-size-50cc" data-filter-value=".50cc]50cc[/url] <li>[url=#filter-size-150cc" data-filter-value=".150cc]150cc[/url] </ul> </div>

Where "size" is the field name?
Where "150cc" is the label name?

What php values do I need to populate this list?

I have tried editing "listings_filter_form_body.php" but no luck... How can I pull these values without getting a php error?

Ideas?

Robert
Attachments:

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

More
11 years 5 months ago #37836 by ggppdk
Replied by ggppdk on topic Category Pulling Fields
Hello,
there is no need to make some custom since
filters can be display like toggle buttons, and then you can use CSS to style them

please edit the fields used as filters and go and se parameter "Display Filter as" to be
- either "single toggle buttons" (allows one value active per filter)
- or "multi toggle buttons" (allows multiple values active per filter)

then style your output via CSS


-- 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...

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

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