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

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : October 14, 2008, 12:15:37 AM
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Sub Galleries, Display as List SOLVED
Advanced search
  « previous next »
Pages 1
Author
Topic: Sub Galleries, Display as List SOLVED  (Read 1335 times)
« on: June 18, 2008, 10:09:42 PM »
Suzan Chin Offline
Newbie
*
Posts: 6

View Profile Email

I really like the latest version of this component, however, the default template has some little issues that make the display of information difficult to read.

Does anyone know how to modify the Semantic default template so that sub galleries display as a stacked list vs. long lines of links with commas separating them?
i.e.
Main Gallery
  -- Subgallery 1
  -- Subgallery 2

vs. the way it is now:
Main Gallery
Subgallery1, Subgallery2

When you have lots of galleries under 1 main category it makes it very difficult to read. The old version default templates listed them in a much more attractive format. If it is a setting in the configuration, I can't seem to locate it.

Any and all help is greatly appreciated.

« Last Edit: June 19, 2008, 02:40:47 AM by Suzan Chin » Logged
 
Reply #1
« on: June 19, 2008, 02:39:35 AM »
Suzan Chin Offline
Newbie
*
Posts: 6

View Profile Email

 see link http://rsgallery2.net/component/option,com_smf/Itemid,17/topic,6860.0 , solution provided by Daniel Tulp, to aid in finding the relevant code that needs to be modified (for the Semantic template) :

change in siteroot/components/com_rsgallery2/templates/semantic/display.class.php

FROM:

if( $kid = array_shift( $kids ))
            echo ',';
         else
            break;
TO:
if( $kid = array_shift( $kids ))
            echo ',<br/>';
         else
            break;

This code section is located at the bottom of the page

Logged
 
Print  Pages 1
« previous next »
Jump to: