RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 21, 2008, 04:03:47 am
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  all gallery thumbs w/ thumbs from current gallery & selected image w/ details.
Advanced search
  « previous next »
Pages 1
Author
Topic: all gallery thumbs w/ thumbs from current gallery & selected image w/ details.  (Read 1596 times)
« on: August 12, 2008, 05:09:30 pm »
cecil porter Offline
Newbie
*
Posts: 8

View Profile Email

I'm using RSGallery2 1.14.3 Production Alpha with the semantic template on Joomla 1.0.15.

I've successfully altered the listing of galleries to display only the thumbnails as links to each gallery. When clicked, I need the thumbs from that gallery to appear on that screen (with the original listing of all galleries' thumbs still where they were) with the highlight image & description. As users click on the other thumbs from that gallery, the large image changes out. If the user clicks on a different gallery thumb, that gallery is loaded in the current one's place.

I've copied code from thumbs_float.php into inline.php and that part works ok.

I've tried putting parts of gallery.php in inline.php (to display the thumbs of other galleries), but that isn't working. Any suggestions?

 Huh
Logged
 
Reply #1
« on: August 21, 2008, 07:02:26 pm »
cecil porter Offline
Newbie
*
Posts: 8

View Profile Email

well, I've accomplished this by altering inline.php a great deal.. including using the advice I found on the "Accessing Galleries" module tutorial. Which brings me to my next question. I'm using the following code to display the thumbs of all the galleries:

Code:
$top = rsgGalleryManager::get( 0 );

foreach( $top->kids() as $kid ){
    echo <<<EOD
    <br />
    {$kid->get('name')}
    <a xhref='{$kid->url}'>
    {$kid->thumbHTML}
    </a>
EOD;
}
 


I want to alter the html outputted by "thumbHTML".. specifically, I want to add an "id" and "title" field so I can turn those thumbs into javascript rollovers.  Is there a way to alter thumbHTML? or can someone point me to documentation on the various elements that contains so I can use them? (ie $kid->url)



The note at the bottom of that tutorial says,

Quote
Please see the API Documentation on class rsgGallery for more information.  Note that rsgGallery is not considered stable yet and might change in future versions.

..but I didn't find an entry for rsgGallery in the API Documentation.
Logged
 
Print  Pages 1
« previous next »
Jump to: