Page 1 of 1

target location for album linking

Posted: Sun May 12, 2013 9:11 pm
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)

Re: target location for album linking

Posted: Mon May 13, 2013 11:26 am
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 :)