Announcement

#1 2010-02-16 06:05:14

saqwild
Member
2009-06-13
64

jquery categories

I want to associate jquery category menu instead of the regular/default category menu so that my categories can be shown as “Categories on main and sub-cats on sub menu.
Is it possible? What vars I have to use

Thanks

Offline

 

#2 2010-02-16 08:44:16

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: jquery categories

Hi saqwild,

I don't understand exactly what you want to do (an example of what you expect would be useful)

[extension by rvelices] RV Menutree provides a replacement for the standard menu with expand/collapse icons. Either you can find it perfect for your use or you can take it as a model to know how to change the category menu.

Offline

 

#3 2010-02-16 09:08:10

saqwild
Member
2009-06-13
64

Re: jquery categories

Thanks plg for your prompt reply and sorry that i couldn’t make my self very clear.

what i want is, to replace default category display with some jquery category script so that my categories work on onmouseover() basis
right now the problem is that my sub-cat list is very big. i have around 30+ sub-cats under one cat so when i click on main cat it goes too long on the page as well takes long time to load.

i want to use jquery script so when i hover the mouse on any main cat, it shows the sub-cats as a drop-dwon list.

i hope i make myself clear.

thanks

Offline

 

#4 2010-02-19 09:50:27

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: jquery categories

I understand that you are talking about the main block on the page, not the menu. I mean where you have 2 categories on each line with thumbnail + description for each category. Right?

If you want to modify this, the best thing to begin is to create a template-extension that would replace mainpage_categories.tpl. Look at your "template-extension" directory and the [Administration > Configuration > Templates], click on the big "?" question mark to learn more.

The problem is that when you are on a category, Piwigo doesn't send the subcategory list to the template :-/ I know VDigital recently made some developments with a template listing subcategories. I notify him about this topic.

Offline

 

#5 2010-02-24 13:29:10

saqwild
Member
2009-06-13
64

Re: jquery categories

thanks
is there any option so that i can set up  the display of my main page categories in 3 columns instead of 2 columns

Offline

 

#6 2010-02-24 14:26:30

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: jquery categories

CSS rule

[extension by Piwigo Team] LocalFiles Editor
Tab ⇒ CSS,
add the following code at the end of the local-layout.css of your choice (in yoga = only for yoga):

/* to get 3 columns */
.content ul.thumbnailCategories li {
width:31%;
}


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#7 2010-02-25 13:03:28

saqwild
Member
2009-06-13
64

Re: jquery categories

nothing happen...!

Offline

 

#8 2010-02-25 17:35:09

P@t
Piwigo Team
Nice
2007-06-13
4098

Re: jquery categories

Try this:

/* to get 3 columns */
.content ul.thumbnailCategories li {
width:31% !important;
}


P@t

Offline

 

#9 2010-02-25 18:05:42

saqwild
Member
2009-06-13
64

Re: jquery categories

P@t wrote:

Try this:

/* to get 3 columns */
.content ul.thumbnailCategories li {
width:31% !important;
}

worked like a charm...:) thanks

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact