/media/com_phocagallery/css/custom/default.css overwritten by update

Phoca Gallery - image gallery extension
jobrusche
Phoca Member
Phoca Member
Posts: 18
Joined: 18 Apr 2012, 16:26

/media/com_phocagallery/css/custom/default.css overwritten by update

Post by jobrusche »

What is the utility/usability of having a custom css section if it is being overwritten by a component update ?

In particular /media/com_phocagallery/css/custom/default.css

Regards,
Johan.
christine
Phoca Hero
Phoca Hero
Posts: 2737
Joined: 28 Nov 2010, 17:20

Re: /media/com_phocagallery/css/custom/default.css overwritten by update

Post by christine »

For information to Jan:

question belongs to this previous Thread:
viewtopic.php?t=63531

Kind regards
Christine
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: /media/com_phocagallery/css/custom/default.css overwritten by update

Post by Jan »

Hi, this is old system which stays there because of backward compatibility. Of course, if you will do your own CSS changes, then just use user.css (custom.css) in your template.

Jan
If you find Phoca extensions useful, please support the project
jobrusche
Phoca Member
Phoca Member
Posts: 18
Joined: 18 Apr 2012, 16:26

Re: /media/com_phocagallery/css/custom/default.css overwritten by update

Post by jobrusche »

This logic is flawed. Customization should be within the component (like JEM does).
If I use another template, the customisation is gone.

Grtz,
Johan.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: /media/com_phocagallery/css/custom/default.css overwritten by update

Post by Jan »

BTW you can add your own custom css into the component and it will work. If you call it with unique name and it will be active, then it will be not overriden by update, because it will have such name, which does not exist in core of the component.

Image

But because website should have uniform design, it is recommended to have one place (user.css, custom.css) where all the customizations will be done. For all parts of the website.

But if your logic tells you that it should be inside the component, just create specific CSS file which will have specific name so it will be not overwritten by update. Such file is automatically marked as published and automatically loaded in Phoca Gallery. Not overwritten by update as component will not include such filename.

Jan
If you find Phoca extensions useful, please support the project
Post Reply