I am new to gallery and just installed Gallery2 this morning.
i have been searching the forums and google and have thus far been unable to find a solution.
Is it possible to edit and rearrage the item actions block?
I want the user to be able to view slideshow for an album, but only post comments on individual photos.
However if I set item actions block in sidebar list, user can post comments on albums and can view a single photo as a slideshow.
Is there anyway to uncouple the item actions for a album and photo?
Also is there anyway to rearrange entries in the item actions block?
They are all being sorted alphabetically which is annoying b/c add to cart and add comment are at the top, whereas view comments is at the bottom.
How do I rearrange the list order so that add & view comment will be together for example.
Thanks,
Dave
Posts: 16503
Are you into editing code? If so, yes, it's possible. Take a look at the Floatrix theme.
In themes/floatrix/theme.inc you'll see a _splitItemLinks function this splits different actions into "Administrative" and "User" actions. Then if you look at /themes/floatrix/templates/theme.tpl you'll see how this is actually implemented.
I haven't done this yet (probably never will since I plan on migrating my photos to G3 upon it's release and then putting my energy into that to theme G3 for my site), but I think you could use this logic split the actions up as much as you want to be able to put any specific action you want in any spot on the page.
Ask away if you need more guidance as I can see I gave you a pretty high level over view for a new Gallery user and someone who is probably not familiar with the structure of G2 yet.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 6136
You can also directly edit /modules/core/templates/blocks/ItemLinks.tpl
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 3
I'm actually using matrix theme, sorry should have mentioned that upfront.
So the only way to edit the list is to manually edit the text files? There is no GUI editor?
Hopefully they will add this feature in G3.
Posts: 16503
In G2, no matter the theme, you'll need to edit files. Matrix or not, I was just using Floatrix as an example of what can be done at the theme level.
G3 is completely different. Though I still kind of doubt there will be a UI for such things (at least to start with, we'll see), themes are suppose to be easier to create, edit, etc. I haven't dug into them yet though.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 3
thanks for the help. I will look into editing the files.
Thanks again,
Dave