target location for album linking

Admiror Gallery is free extension for Joomla! 1.6. Joomla! 1.7 and Joomla! 2.5 based websites. Admiror Gallery is all in one, a simple and instant solution for rendering image gallery from folder with images, but very flexible and adaptable.
Post Reply
Message
Author
mjel
Posts: 5
Joined: Mon May 28, 2012 1:17 pm

target location for album linking

#1 Post by mjel »

Hello,

I am inserted AG ablum into a 'tabbed' layout (actually it is in sobi pro using tabbed template

if the album loads and there are no sub-albums - then all is well -the images load into fancybox (for example).

if there are sub-albums -- then when user clicks on sub-album thumb, the page reloads - but the home tab loads and the user had clicked the sub-album link in the 'photos' tab -

ideally, if i was able to add

#photos

to the end of the URL - then the sub-album would reload and display the 'photos' tab

when i click on the sub-album thumbnail here is the url i get

http://lovelessmedia.com/dtjeff/index.p ... =0&AG_MK=0

if i add #photos - to the end of that url - then i get my desired page load _-- ie the page loads in the 'photos' tab with the contents of the sub-album

http://lovelessmedia.com/dtjeff/index.p ... K=0#photos

please help me find where to add the #photos to the link for sub-ablums

Also - the link back to the main gallery page should also reload in the same #photos tab (this is a breadcrumb link)

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: target location for album linking

#2 Post by Vasiljevski »

Ok, If I understand correctly you need #photos at the end of the URL :)

Open [root]\plugins\content\admirorgallery\admirorgallery.php and change line 128:

Code: Select all

window.open(AG_URL,"_self");
into:

Code: Select all

window.open(AG_URL+"#photos","_self");
This should do the trick :)
Help Admiror Gallery become even better,
give us a review on JED

Post Reply