Singapore Gallery Module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Mesmer

Singapore Gallery Module

Post by Mesmer »

I'm already running a singapore gallery on my site and would like to integrate it in my cms.
I noticed the galleryS module already comes with al the singapore gallery files.

Is it possible to use te module to integrate my excisting gallery in my cms or do I have to use the files in de modele and reinstal my gallery?

If there is an other option I would realy like to know.
megabob3
Power Poster
Power Poster
Posts: 498
Joined: Sat Jan 08, 2005 11:11 pm
Location: ITALY

Re: Singapore Gallery Module

Post by megabob3 »

Mesmer wrote: I'm already running a singapore gallery on my site and would like to integrate it in my cms.
I noticed the galleryS module already comes with al the singapore gallery files.

Is it possible to use te module to integrate my excisting gallery in my cms or do I have to use the files in de modele and reinstal my gallery?

If there is an other option I would realy like to know.
Probably yes, but sorry i haven't the time in this days :(
Mesmer

Re: Singapore Gallery Module

Post by Mesmer »

thanks for the reply. I will give it a try :)
magicpio
Forum Members
Forum Members
Posts: 30
Joined: Mon Dec 05, 2005 7:54 pm

Re: Singapore Gallery Module

Post by magicpio »

Hi Mesmer,

I'm using Singapore 0.9.11 and CMSMS 0.11.1 and both work like a charm!
My system is on a small Linux box (DamnSmallLinux 1.5) with XAMPP 1.5.0 under PHP 5.0.5.

I did the following, maybe you can adopt parts even if working in Windows.
I will give my absolute paths, so you might need to adjust these, but I believe its easier
to understand. Path names in between %% have to be substituted by your correct real path names.

Document root on my webserver is /htdocs/
CMSMS is installed in /htdocs/%cmsmadesimple%/
Singapore original installation is in /htdocs/%singapore%/ 

1) Download the module GalleryS and unpack/install to
    /htdocs/%cmsmadesimple%/modules/galleryS/

2) Download from the singapore homepage the template "external" and install to your original
    singapore installation:
    /htdocs/%singapore%/templates/external/

3) Adjust the values in
    /htdocs/%singapore%/templates/external/template.ini
    as per your original Singapore installation.

4) Now comes the trick (for Linux only), which is handy, if you have difficulties when running CMSMS.
Replace the bunch of directories in
    /htdocs/%cmsmadesimple%/modules/galleryS/
(e.g. data/ , docs/ , galleries/ , .... EXCEPT for includes/ )
with symbolic links to your original Singapore installation directories.
Don´t replace the files in the main directory
    /htdocs/%cmsmadesimple%/modules/galleryS/singapore/

5) Change the following line in file
    /htdocs/%cmsmadesimple%/modules/galleryS/singapore/singapore.ini
Line
    default_template = "default"
to
    default_template = "external"

6) I didn´t check the following, but if you experience trouble with your original Singapore templates
if you use individual templates for each directory in your original Singapore installation
you might have to change all .ini entries of default_template to "external"  .

7) Login to the CMS Made Simple Admin Panel.

8) Check, that the module galleryS is displayed by CMSMS (Extensions->Modules) and install it by
clicking the link "install" in the line galleryS.

9) Create a new page that will display your gallery (Content->Pages->Add New Content).
Select the CMSMS template you want to use for that page, e.g. "my_template"
In the contect section just enter the following line:
  {cms_module module="galleryS"}

10) This step is probably not required, but it results in better (=HTML conform) code.
And it will allow you to edit the stylesheet for singapore from within CMSMS.
Create a new stylesheet (Layout->Stylesheet->Add a stylesheet) and name it e.g.
"Singapore_external".
Copy the complete contents of the original Singapore external stylesheet
  /htdocs/%singapore%/templates/external/main.css
into the new CMSMS stylesheet.

Then prevent singapore to use its original stylesheet by opening file
  /htdocs/%singapore%/templates/external/header.tpl.php
and comment out the first line using //
  // This is commented out now:  config->base_url.$sg->config->pathto_current_template ?>main.css" />

11) Goto the templates list (Layout->Templates) and click onto the litle CSS icon on the right side of the template you will use for the CMSMS page, which will include the singapore pages (e.g. "my_template").
Then select the previously created stylesheet ("Singapore_external") from the drop-down list left to the button "Add New CSS" and click this button afterwards.

You're done.
Enjoy!

magicpio
Locked

Return to “Modules/Add-Ons”