Page 1 of 1

Gallery Module

Posted: Tue Nov 05, 2013 1:03 am
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! :)

Re: Gallery Module

Posted: Tue Nov 05, 2013 6:31 am
by Rolf
Create a new template and use this as your (default) template

Re: Gallery Module

Posted: Tue Nov 05, 2013 10:29 am
by faglork
Maybe the module lacks write permission for the templates folder?

hth,
Alex

Re: Gallery Module

Posted: Tue Nov 05, 2013 11:52 am
by velden
faglork wrote:Maybe the module lacks write permission for the templates folder?

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

Re: Gallery Module

Posted: Tue Nov 05, 2013 12:21 pm
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

Re: Gallery Module

Posted: Tue Nov 05, 2013 12:32 pm
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.

Re: Gallery Module

Posted: Wed Nov 06, 2013 10:21 am
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

Re: Gallery Module

Posted: Wed Nov 06, 2013 10:30 am
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)

Re: Gallery Module

Posted: Wed Nov 06, 2013 8:06 pm
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

Re: Gallery Module

Posted: Thu Nov 07, 2013 7:29 am
by velden
You're right. I wasn't aware of the file creation.
Learned something new again.