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.
/media/com_phocagallery/css/custom/default.css overwritten by update
- jobrusche
- Phoca Member
- Posts: 26
- Joined: 18 Apr 2012, 16:26
-
- Phoca Hero
- Posts: 2818
- Joined: 28 Nov 2010, 17:20
Re: /media/com_phocagallery/css/custom/default.css overwritten by update
For information to Jan:
question belongs to this previous Thread:
viewtopic.php?t=63531
Kind regards
Christine
question belongs to this previous Thread:
viewtopic.php?t=63531
Kind regards
Christine
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: /media/com_phocagallery/css/custom/default.css overwritten by update
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
Jan
If you find Phoca extensions useful, please support the project
- jobrusche
- Phoca Member
- Posts: 26
- Joined: 18 Apr 2012, 16:26
Re: /media/com_phocagallery/css/custom/default.css overwritten by update
This logic is flawed. Customization should be within the component (like JEM does).
If I use another template, the customisation is gone.
Grtz,
Johan.
If I use another template, the customisation is gone.
Grtz,
Johan.
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: /media/com_phocagallery/css/custom/default.css overwritten by update
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.
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
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
- jobrusche
- Phoca Member
- Posts: 26
- Joined: 18 Apr 2012, 16:26
Re: /media/com_phocagallery/css/custom/default.css overwritten by update
I created the file phocagallery-custom.css and it survived the latest update.
Thanks for the hint.
Johan.
Thanks for the hint.
Johan.
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: /media/com_phocagallery/css/custom/default.css overwritten by update
OK
If you find Phoca extensions useful, please support the project