Developers corner > Developer Lobby

Show gallery as slideshow from Menu Manager ?

(1/3) > >>

valentin_caen:
Hi everybody !

I don't know if I'm in the right section, so forgive me if it the case.

I'm actualy working on a photographer's website. And I only use the slideshow view.
Like this : http://julienboisard.fr/component/rsgallery2/2-pyrenees?page=slideshow

And for some reasons I need to show show my galleries as slideshow from the Joomla! Menu Manager. (SEO, proper links …)

Because images speak more than words :



Have you an idea of how can I do this ?

Thanks.

Valentin.

mirjam:
Hi Valentin,

A while ago I spent some time on implementing just what you ask (on J!1.6/1.7 in RSG2 v3.x), but then I could not get it to work properly. So I just tried to figure out what didn't work and now it either works with a few changes that I just made or I don't see the problem anymore...

This will add a second option for RSGallery2 for "Select a Menu Type". Would you test this please?

Instructions:
- unzip attached SlideshowView_patch_RSG2_v3.zip file: these are files in the correct directory structure, they go in /JOOMLAROOT/ (some are RSG2 backend files, some are RSG2 frontend files)
- find the /JOOMLAROOT/administrator/language/en-GB/en-GB.com_rsgallery2.ini file and add

--- Code: ---COM_RSGALLERY2_SLIDESHOWVIEW_DEFAULT_TITLE="Slideshow view"
COM_RSGALLERY2_SLIDESHOWVIEW_DEFAULT_DESC="Slideshow view where the gallery for this menu item can be chosen."

--- End code ---
These are the new language strings needed. You can add them in a similar way to your own language if that isn't "en-GB".
- Create a menu-item: Backend > [choose a menu] > New > Select > COM_RSGALLERY2_SLIDESHOWVIEW_DEFAULT_TITLE (or: Slideshow view; found below RSGallery2) > choose the gallery in the Required settings and give the menu item a Menu Title and save.
Now there should be a menu-item on the front-end linked to the slideshow.

I hardly did any testing on this, but it works on RSGallery2 3.0.0 RC1 and 3.0.1 on Joomla 1.7 with two menu-items showing two different galleries.

You also will have to modify the slideshow a bit: the slideshow shows a "Back to gallery" link that won't do anything in this case, so that needs to be removed. For slideshow parth you can do this
Find the file /JOOMLAROOT/components/com_rsgallery2/templates/slideshow_parth/html/slideshow.php and find the lines 64-68

--- Code: --- <div style="float: right;">
<a href="index.php?option=com_rsgallery2&Itemid=<?php echo JRequest::getVar('Itemid');?>&gid=<?php echo $this->gid;?>">
<?php echo JText::_('COM_RSGALLERY2_BACK_TO_GALLERY');?>
</a>
</div>

--- End code ---
add some lines of code before and after this piece (its a condition that when the menu-item is a slideshow only item as we just made then the link won't show):

--- Code: --- <?php
//Show link only when menu-item is a direct link to the slideshow
if (JRequest::getVar('view') !== 'slideshow') {
?>
<div style="float: right;">
<a href="index.php?option=com_rsgallery2&Itemid=<?php echo JRequest::getVar('Itemid');?>&gid=<?php echo $this->gid;?>">
<?php echo JText::_('COM_RSGALLERY2_BACK_TO_GALLERY');?>
</a>
</div>
<?php
}
?>

--- End code ---

Let me know if this works for you!

valentin_caen:
Hi,

thanks for your quick reply Mirjam, I'll try it today and I let you know :D 8)

Valentin

valentin_caen:
It works perfectly on my MAMP testing server  8) , but not at julienboisard.fr  :( :-\ . I've made a mistake somewhere.

But if it's working on my MAMP !  :D So thanks a lot !

It could be a good idea to integrate this option on the next version of RSGallery2  ;)

mirjam:

--- Quote from: valentin_caen on October 30, 2011, 02:56:14 PM ---It works perfectly on my MAMP testing server, but not at julienboisard.fr

--- End quote ---
Doublecheck that the files are in the correct place, doublecheck that you're talking about RSG2 version 3.x and not 2.x and then:
Can you tell what is not working at julienboisard.fr? Do you see the new option in the "Select a Menu Type" screen? If so, can you select the gallery that you want to? What works and what does not at julienboisard.fr with respect to your MAMP testing server?

Is there a difference in PHP version, webserver (Apache or not), RSG2 version, Joomla version?


--- Quote from: valentin_caen on October 30, 2011, 02:56:14 PM ---It could be a good idea to integrate this option on the next version of RSGallery2  ;)

--- End quote ---
Yes, that's the idea, but first it needs to be tested well enough, and there you are helping right now! If it all works well enough it goes into the next version, and before that it's available in the Nightly Build (not yet though).

Navigation

[0] Message Index

[#] Next page

Go to full version