Forums / Cotonti / Core Labs / Archive / Icon resources

Kort
#1 2010-02-22 21:27
Now that the modularization is in progress I think we got a possibility to request some resource management features. Particularly I am talking about icons. Right now they are all scattered between the admin & pfs modules, skin img/system folder, root images folder and (sometimes) plugin folders. What I suggest is grouping all icon types in one place, i.e.:
images/icons/default
images/flags/default
images/filetypes/default
images/smilies/default
Advantages:
1. All graphics get there, eliminating all possible duplicates
2. Any such global icon will become available anywhere via resource file: any module, any plugin, any skin
3. Skin folder will get smaller
4. Enable icon pack capability, i.e.:
images/icons/default
images/icons/famfamfam
images/icons/diagona
images/flags/default
images/flags/silky
images/filetypes/default
images/smilies/default
images/smilies/kolobok
So icon style can be changed easily & globally. Icon packs can be selectable via config.php -- just like skins or languages.
SED.by - создание сайтов, разработка плагинов и тем для Котонти
ez
#2 2010-02-22 22:54
Add a sprite too :)
==- I say: Keep it EZ -==
Trustmaster
#3 2010-03-10 00:09
How do we manage iconpacks on a site?
May the Source be with you!
Sergeich Online
#4 2010-03-10 00:58
Kort, bad idea.
Plugin - yes, core - no.
Kort
#5 2010-03-10 02:17
Sergeich: we are talking here about the way to organize resources
Right now the icons are split between
- images/admin/
- skins/skinname/img/system
- plugin subfolders
Ever since LDU every skin includes same icons which is definitely redundant. An iconpack shall:
1. Stay in the same location (naming agreement?)
2. Be easily interchangeable/replaceable
3. Not depend on a skin/theme
Trustmaster: Iconpacks shall be managed just like skins/themes/languages -- from within config.php
SED.by - создание сайтов, разработка плагинов и тем для Котонти
pieter
#6 2010-03-10 02:38
What if you have 2 skins that uses a different ican pack?
There should be a way to include the iconpack in the skin.

Advantage if it is not together is that if you install a plugin and want to delete it, you delete also the icons needed for the plugin. Otherwise it will stay in the icon folder.
... can we help you ...
Kort
#7 2010-03-10 03:37
My dear Pieter, how many times have you used images/admin/news.gif?
There is a finite number of icons that can be used within a CMS. Even if 1, 2 or even 5 will never be used, the flexibility of operating complete iconpacks is obvious, as compared to non-uniform & outdated icons scattered throughout the engine.

As regards sites with "2 or more skins": 99.9% normal websites use 1, 99% normal sites do not use color schemes. But if you want to satisfy 0.1%, we have skinname.php which can point to a specific iconpack.
SED.by - создание сайтов, разработка плагинов и тем для Котонти

Dit bericht is bewerkt door Kort (2010-03-10 03:49, 14 jaren ago)
GHengeveld
#8 2010-03-12 07:17
I agree with Kort on the location of icon packs / smilies etc. As long as we use resource references to call them there is plenty of flexibility for any skin designer, since he can simply overwrite the resource reference to call his own icon. I think we should include a .php file with each icon pack which you can include (in skinname.php) in order to overwrite all the necessary resource references to apply the icon pack.