RSGallery2 Forum Portal

RSGallery2 => Template directory => Topic started by: endless on August 06, 2012, 10:04:35 AM

Title: GALLERY TITLES not displaying...
Post by: endless on August 06, 2012, 10:04:35 AM
(Perhaps this issue appears for previous versions, but does not resolve for current (Aug 2012).

Dear Support,
2 Issues that I can't find answers to in the Docs or Forum...
I am on Joomla 2.5.6 and RSGallery 3.2.0.
Please see example www.BareBonesMarketing.com/portfolio , and subsequent galleries therein.

1.) PAGE TITLE (Joomla) not displaying for Galleries page...
Usually a given Joomla page TITLE will display in the main body, and you can also display PAGE HEADING in the menu parameters.
Neither display.
The Galleries DESCRIPTION does display ok (but to enter the Joomla page title there does not solve the issue).
 
2.) GALLERY TITLES not displaying...
Where a site has multiple galleries, when you visit that particular gallery, the gallery TITLE does not display.
Here again, the particular Gallery DESCRIPTION does display ok (but to enter the gallery title there does not solve the issue).

Please advise any fix or work-around. I can copy/paste code block if necessary, given detailed instructions.
C
Title: Re: GALLERY TITLES not displaying...
Post by: endless on August 06, 2012, 10:07:42 AM
Sorry... I meant to post to SUPPORT category under Display and Templates. Can we move? C
Title: Re: GALLERY TITLES not displaying...
Post by: mirjam on August 06, 2012, 11:48:34 AM
Let's see if I understand you correctly...

As you can see on the demopage, the gallery name is not included on the gallery page (e.g. start at http://demo.rsgallery2.nl/index.php/demo-rsgallery2 and click on the image of "First gallery", you would like to have the name "First gallery" on that page.

You can do that by changing the template:
Find the file /JOOMLAROOT/components/com_rsgallery2/templates/semantic/html/gallery.php
If you want the gallery name to be between the search box and the gallery description (introduction text), then see lines 19-26
Code: [Select]
//Show search box
$this->showSearchBox();

//Show introduction text
?>
<div class="intro_text">
<?php echo $this->gallery->description?>
</div>
With an simple addition on line 21 you get
Code: [Select]
//Show search box
$this->showSearchBox();
echo $this->gallery->get('name');
//Show introduction text
?>
<div class="intro_text">
<?php echo $this->gallery->description?>
</div>

Of course you could "enhance" that line with css like
Code: [Select]
echo '<div class=galleryname>'.$this->gallery->get('name') .'</div>';
and then add some CSS styling for this galleryname class in the CSS files (or even put the CSS styling here, although the general idea is to "put everything where it belongs".

If you're going to do this you might find this post helpfull:
http://www.rsgallery2.nl/display_and_templates/how_create_your_own_template_or_modify_semantic_template_16758.0.html
because all changes done to the Semantic template will be overwritten in future upgrades!

Let me know if this works for you.