Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

[SOLVED] SJ Categories Accordion - "close" first item
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [SOLVED] SJ Categories Accordion - "close" first item

[SOLVED] SJ Categories Accordion - "close" first item 11 years, 4 months ago #6345

  • darmon9
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
J! 2.5.8
SJ Categories Accordion

Hello!

I LOVE your module, and it helps me a lot.

I use it as a DICTIONARY...
Each letter is a Category.
On each Category I have Articles as defenitions.

My question:
How can I "Close" the first category on the page?

It is always open when loading the module, automatically...

Please help me solve this small issue.

Willing to "buy you a beer" if needed...


Here is the page:
www.economics.co.il/aguda/index.php/faqs

The first line is open.
I want it to be closed like the others.

Thanks a lot!

Elad.
The topic has been locked.

Re: SJ Categories Accordion - "close" first item 11 years, 4 months ago #6424

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Dear Elad Darmon,

You can change the order of category displayed on the module in the layout file.

Example: Type1 => go to "modules/mod_sj_categories_accordion/tmpl/layout1.php", finding:

$('#<?php echo $uniqued;?>').sj_categories_accordion({
			items : '.ca-element',
			heading : '.ca-element-heading',
			content : '.ca-element-content',
			active_class : 'selected',
			event : '<?php echo $options->pager_event;?>',
			delay : 200,
			duration : 400,
			active : 1
		});


=>

$('#<?php echo $uniqued;?>').sj_categories_accordion({
			items : '.ca-element',
			heading : '.ca-element-heading',
			content : '.ca-element-content',
			active_class : 'selected',
			event : '<?php echo $options->pager_event;?>',
			delay : 200,
			duration : 400,
			active : your_order
		});


If you want all tabs closed initially, you can set the "active : -1"

Thanks
Ticket System | Join our Clubs to download our extensions and templates
The topic has been locked.

Re: SJ Categories Accordion - "close" first item 11 years, 4 months ago #6438

  • darmon9
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Thank you very much for your help!

It is now PERFECT.
The topic has been locked.

Re: SJ Categories Accordion - "close" first item 10 years, 3 months ago #15581

  • smuser100
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hello, could you share where this setting can be edited in version 3.0.0 of the module?

I checked but do not see the layout.php file in that location, though if I am missing it, please let me know.

Thanks!
The topic has been locked.

Re: SJ Categories Accordion - "close" first item 10 years, 3 months ago #15584

  • smuser100
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hello, no input needed. I found it as the Tab Active setting in the Category Options tab. It's great this was put in as a module configuration item, thank you!!
The topic has been locked.
The following user(s) said Thank You: anhqn
  • Page:
  • 1
Time to create page: 0.22 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes