Gallery Module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
eddyR3
Forum Members
Forum Members
Posts: 52
Joined: Tue May 14, 2013 6:51 am

Gallery Module

Post by eddyR3 »

Hey guys, everytime i alter the stylesheets for the Showtime module, it seems to be overwritten by a standardised version, so any changes i make, get overwritten.

Any suggestions how i can stop this from happening?

Many thanks for any input in advance! :)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Gallery Module

Post by Rolf »

Create a new template and use this as your (default) template
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
faglork

Re: Gallery Module

Post by faglork »

Maybe the module lacks write permission for the templates folder?

hth,
Alex
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Gallery Module

Post by velden »

faglork wrote:Maybe the module lacks write permission for the templates folder?

hth,
Alex
Which are saved in the database I suppose...
faglork

Re: Gallery Module

Post by faglork »

velden wrote:
faglork wrote:Maybe the module lacks write permission for the templates folder?

hth,
Alex
Which are saved in the database I suppose...
No ... not CMSMS user group permissions. UNIX file permissions. AFAIK the templates folder AND its contents need to be writeable for the web server, so it would need chmod 777 if installed by FTP/SSH. If installed by XML, there should be no problem (but other problems).

Cheers,
Alex
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Gallery Module

Post by velden »

That's not what I mean. The templates are stored in the database so there should be no file system permissions involved in this case.
faglork

Re: Gallery Module

Post by faglork »

velden wrote:That's not what I mean. The templates are stored in the database so there should be no file system permissions involved in this case.
Thats not what I mean either ;-)

The OP was talking about the stylesheets - AFAIK those are stored as files in the templates folder, and not in the db ...

Haven't checked this, though ... please correct me if I am wrong.

Cheers,
Alex
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Gallery Module

Post by velden »

You might be right. OP confused me with is title (Gallery) while apparently he uses the Showtime module (I don't know that module).

So I don't know anything about how it stores things. I know however that every module I use, stores modifications in the database. Whether those changes are in templates or stylesheets (e.g. real Gallery module)
faglork

Re: Gallery Module

Post by faglork »

velden wrote:You might be right. OP confused me with is title (Gallery) while apparently he uses the Showtime module (I don't know that module).
Haha ... same here :)

But it makes no difference, Slideshow definitely needs the templates folder and its contents chmod 777 - at least if installed by ftp/ssh. Can't speak for installation by XML, theoretically there should be no permissions problem in this case.

But the symptoms he described are exactly what you get when the permissions are lacking ...
velden wrote: I know however that every module I use, stores modifications in the database. Whether those changes are in templates or stylesheets (e.g. real Gallery module)
Just try it. Within Gallery, create a new template. Then ftp to /modules/Gallery/templates/css ... you will see a shiny new CSS-file, named after your new template. The CSS may be stored in the database, but a real CSS file will be created AND used. If you navigate to a gallery in your browser, you will see that the static file is used (use JSview or something like that).
Now, if the module doesn't have write permissions, this file won't get created. Likewise, if you update the CSS in Gallery, the existing CSS file can't get overwritten.

And that is what he is describing (albeit for Showtime module).

Cheers,
Alex
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Gallery Module

Post by velden »

You're right. I wasn't aware of the file creation.
Learned something new again.
Post Reply

Return to “Modules/Add-Ons”