Where should cross-theme chrome be stored
Permalink
Where is a good location in the Concrete5 directory hierarchy to store images that should be available across themes but are part of the "chrome" of the website (e.g., company logo, buttons, etc.)?
Yes, I want specific images to still be available, even if I switch the theme for the site (or use a different theme for certain pages). Using the /themes/your_theme/images/ path, presumably via getThemePath(), seems theme specific.
I've never tried this but what if you coded all your resource links to be "$this->getThemePath()../images" and put all your common images into "[root]/themes/images".
This would require a standardized theme structure such as:
This would require a standardized theme structure such as:
[root]/themes/images/...common images [root]/themes/theme1/full.php [root]/themes/theme2/full.php [root]/themes/theme3/full.php
You could define GlobalAreas and upload your images to the file manager to
be put into blocks in those areas. If you then want to change theme all you
need is to be sure you have global areas with the same names in your new
theme.
You can also put the images in a new folder in the root of your concrete
installation and call theme with:
The last suggestion is totally untested but should work. Can't test now
since I'm on my phone.
Den 6 dec 2012 22:48 skrev "concrete5 Community" <
discussions@concretecms.com>:
be put into blocks in those areas. If you then want to change theme all you
need is to be sure you have global areas with the same names in your new
theme.
You can also put the images in a new folder in the root of your concrete
installation and call theme with:
<img src="<?php echo SITE ?>/your_folder/your_image.png" />
The last suggestion is totally untested but should work. Can't test now
since I'm on my phone.
Den 6 dec 2012 22:48 skrev "concrete5 Community" <
discussions@concretecms.com>:
Thanks @mhawke and @adajad -- will try both methods!
Why not different page_types and put all your images in 'public_html/themes/your_theme/images/'.