Page 1 of 1
/media/com_phocagallery/css/custom/default.css overwritten by update
Posted: 27 Oct 2023, 14:23
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.
Re: /media/com_phocagallery/css/custom/default.css overwritten by update
Posted: 27 Oct 2023, 14:33
by christine
For information to Jan:
question belongs to this previous Thread:
viewtopic.php?t=63531
Kind regards
Christine
Re: /media/com_phocagallery/css/custom/default.css overwritten by update
Posted: 28 Oct 2023, 23:18
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
Re: /media/com_phocagallery/css/custom/default.css overwritten by update
Posted: 28 Oct 2023, 23:48
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.
Re: /media/com_phocagallery/css/custom/default.css overwritten by update
Posted: 30 Oct 2023, 00:12
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.
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
Re: /media/com_phocagallery/css/custom/default.css overwritten by update
Posted: 28 Oct 2024, 19:47
by jobrusche
I created the file phocagallery-custom.css and it survived the latest update.
Thanks for the hint.
Johan.
Re: /media/com_phocagallery/css/custom/default.css overwritten by update
Posted: 06 Nov 2024, 01:59
by Jan
OK