Guest
20 May 2013 06:34

I just made a couple of templates for "filters module", nothing exciting... but they might come in handy and I am happy to share them here to give something back for the great support I am receiving form Sergey and the Cobalt community

NOTE: I added ome inline css styles to these 2 templates, just a few rules... anyway note that it would be better to create a class in your site template instead of using inline styles

**

template 1 - name : custom**

I deleted the filters name labels and created a more compact style, I also assigned full width to the "search" button - it supports responsive templates

**

template 2 - name : textsearch**

this is to be used only if you want to use the module for text search only

(no filters will be displaied, no matter what your module settings are)

I just aligned the "search" button to the right of the serach box to ahve a more compact look - it supports responsive templates

to use these 2 templates download them below,

unzip the archive and upload the 2 files to modules/mod_cobalt_filters/tmpl folder, then choose the template you want to use from your filters module settings

Last Modified: 02 Mar 2014


Guest
21 May 2013 14:03

yes, it is working. Thank you very much.


Sergey
Total posts: 13,748
22 May 2013 05:00

Can you show what it looks like? You are now first example of custom filter template :)


Guest
22 May 2013 07:27

Ya sure. But this is still not complete. Here is the link:

http://www.oriyaboard.com/estate

Sergey, the issue is now with the slider. I am trying to remove the text input for slider. The text input is not fitting properly to the screen. Is it jquery which is rendering the slider?

I am trying similar to this:

http://jqueryui.com/slider/#range


Sergey
Total posts: 13,748
22 May 2013 07:54

looks good for bedinning.

To remove text input you need to change filters template.


Guest
22 May 2013 09:37

which file I should look at?


pepperstreet VIP
Total posts: 3,837
22 May 2013 15:00

You can also post it on our site in Depot

http://www.mintjoomla.com/community/depot.html

Regarding categorization in depot... since nican's submissions are "templates"... Do we need Sub-categories?

Modules -> Templates

Fields -> Templates

Or maybe ...

Templates -> Lists

Templates -> Articles

Templates -> Modules

Templates -> Fields

Templates -> Misc


Sergey
Total posts: 13,748
23 May 2013 01:40

Do we need Sub-categories?

I think we do. but only when list of items there exceed one page (20 items). I think untill it fits one page there is no cense to create more categories.:)


Guest
23 May 2013 07:24

Hi,

.../components/com_cobalt/fields/digits/tmpl/filter/

There is no easy way to do this, i m getting some jquery noconflict error.


Sergey
Total posts: 13,748
23 May 2013 08:25

I can sugegst to edit templaet and add to

<input autocomplete="off"......

readonly attribute.

<input autocomplete="off" readonly ....


Guest
23 May 2013 08:31

I hope you are editing a COPY? ;-) What did you change or remove exactly? Maybe just a typo... attach your template here...

Yes I did edit in a copy. The files attached.


Sergey
Total posts: 13,748
23 May 2013 08:53

Why does it includes jQuery?

jQuery already loaded. This may produce error. Pleas copy default again and just add readonly attributes.


Guest
23 May 2013 08:55

ya true, but if you exclude that, then the slider does not show up. I also tried just keeping this jquery and deleting the cobalt original one, but still has some issue.


Guest
23 May 2013 09:00

The only thing in the code that I want to know is the text box. Do you know where does it get invoked inside the code? I wonder if this is something I need to change in the jquery core file?


Sergey
Total posts: 13,748
23 May 2013 09:00

Start new thread and add your login data I'll check. jQuery have to be there. Please post direct link where module is located.


Sergey
Total posts: 13,748
23 May 2013 11:08

Why does Digits field include jQueryUI core+slider?

For 2 knob slider.


pepperstreet VIP
Total posts: 3,837
23 May 2013 13:04

just add readonly attributes.

Sorry, we are going slightly off-topic... and i already mentioned it elsewhere:

The MIN MAX inputs do not show the initial values on page load. How to set and pre-fill the input fields once? Currently, the user sees nothing, and have to drag the slider to see a value.


Sergey
Total posts: 13,748
23 May 2013 23:49

Currently, the user sees nothing, and have to drag the slider to see a value.

Right. That is because if you set those values this filter will be applied on every search.


pepperstreet VIP
Total posts: 3,837
24 May 2013 07:28

Bummer. Not user-friendly. I think it is very crucial to show the values to the user. Weird ideas: 1.) Can it have additional output areas? Maybe no input form fields. Just alter and update another HTML container? 2.) Check if inputs have changed? Are they different to initial values? If yes, use them as filter values, if not don´t use them.

Please, answer in this topic here...


Guest
04 Aug 2013 03:47

hi

i'm new, i don't know php/css and i'm going to buy and try cobalt cck, about filter module, is there a template where we can insert fields to filtering inside some tabs please, it is very important

thanks


Sergey
Total posts: 13,748
04 Aug 2013 22:10

If you want to drow them in tabs, I think you need to eris markup template. Filters are shown in module and also in section view. You can change them there. Right now they are already in tabs.

Powered by Cobalt