klox7 VIP
Total posts: 914
19 Jan 2014 08:45

Hi,

I'm trying to modify cindex template in a away so all categories will be within select element. Did anybody tried to do this and had any luck?

Regards

Last Modified: 02 Jun 2014


Sergey
Total posts: 13,748
20 Jan 2014 01:23

I have added this template to advanced template pack. Please download it and it is there. Called select.


klox7 VIP
Total posts: 914
20 Jan 2014 03:28

Thank you...this is new from today? But if I choose select template it's the same as verticaltree...


Sergey
Total posts: 13,748
20 Jan 2014 04:06

Give me access I'll check. But please describe what section you test and give me frontend URL of this section.


klox7 VIP
Total posts: 914
20 Jan 2014 04:38

Gladly...the section is called Resorts. Thanks.


Sergey
Total posts: 13,748
20 Jan 2014 04:47

That was my mistake. Please download advanced templates pack again. I updated.


klox7 VIP
Total posts: 914
20 Jan 2014 05:02

Thanks, just what I need:)...I remember from Mighty Resources that there was select of categories inside section Menu. Is this option still in Cobalt?


Sergey
Total posts: 13,748
20 Jan 2014 05:05

Category intex template is loaded in markup template. You can load it inside menu and it will looks like menu part.


klox7 VIP
Total posts: 914
20 Jan 2014 06:28

Just a minor fix...if you want to select and then change your mind by close select options (clicking outside) the page is reloaded.


klox7 VIP
Total posts: 914
20 Jan 2014 06:32

also add category index title

if($this->tmpl_params['cindex']->get('tmpl_core.show_title', 1)) {

echo JText::_($this->tmpl_params['cindex']->get('tmpl_core.title_label', 'Category Index'));

}


Sergey
Total posts: 13,748
20 Jan 2014 07:57

Just a minor fix...if you want to select and then change your mind by close select options (clicking outside) the page is reloaded.

Fixed. I deleted blur from events in javascript at the bottom of the template.


Sergey
Total posts: 13,748
20 Jan 2014 23:56

So, the user can choose between "apply filter" and "auto-submit" ?

This is not related to filters. It is category index template. It is more like navigation.

So, the user can choose between "apply filter" and "auto-submit" ?

Can you also include ---Select--- as first option that it is selected in section home?

I included but not -select-. I included section name.


pepperstreet VIP
Total posts: 3,837
21 Jan 2014 18:16

This is not related to filters. It is category index template. It is more like navigation.

Sorry. I agree, technically. The UX/behavior just reminded me on advanced search in general. Anyway, is it possible to add such a toggle/behavior to filters as well? Or is it getting obsolete with AJAX in Cobalt v9 ?! ;-)


Sergey
Total posts: 13,748
22 Jan 2014 04:22

In Cobalt 9 we will add Ajax for filters but will be triggered on button click anyway.


Sergey
Total posts: 13,748
23 Jan 2014 07:07

Then I dare to request the same feature for the AJAX solution. Form submission "on change".

In Cobalt 9?


klox7 VIP
Total posts: 914
29 May 2014 12:45

I just noticed on this select template that if I choose Empty categories -> No then no categories are shown.


Sergey
Total posts: 13,748
29 May 2014 22:57

Pardon?


klox7 VIP
Total posts: 914
30 May 2014 06:42

Section->General parameters->Templates->Category index->select->Empty Categories->No

With that settings if I go to section on my site and look at category index no categories are shown in select. It should display categories with records but it's not.


Sergey
Total posts: 13,748
01 Jun 2014 23:35

You are saying that you have some articles in those categories but those categories are not shown?


klox7 VIP
Total posts: 914
02 Jun 2014 07:12

Yes, no categories are shown at all. Even if there are articles in it!


Sergey
Total posts: 13,748
02 Jun 2014 23:04

this is because Show numbers parameter above is Do not show. If we have no numbers we do not know which is empty. All become empty.

Powered by Cobalt