Welcome, Guest
Please Login or Register.    Lost Password?

Auto changing icon location on calendar window
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: Auto changing icon location on calendar window
#18158
Auto changing icon location on calendar window 2 Years ago  
Hi there,

I've been busy modifying a skin to suit my own needs. Here's an example:



As you can see on the 8th and 11th of November there are two different icons over each other. This means on these days I have events from two different categories.

My question is; would it be possible to have one of the icons switch to a different align variable (and offset) if it is not first icon on a specific day. In other words, I would like to have the music note from the 8th of November be aligned on top right, so that top left is reserved only for the green pin. And I would like to have Rainlendar do this automatically.

If possible, can someone tell me how I need to do this?

Thank you!
Onweerwolf
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#18160
Re: Auto changing icon location on calendar window 2 Years ago  
Whoops, just figured this out. Seems I had to use the priority variable. It wasn't clear to me from the help description that this would make the icons relocate.
Onweerwolf
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#18161
Re: Auto changing icon location on calendar window 2 Years ago  
Follow up question though, in case of three different icons they are all on the same line. The first in the example above, the second immediately right to it and the third immediately right to the second. This means that the third is partly outside the grid of the date square. Is it possible to have the third automatically move below the first (and a fourth below the second)? If so where can I set this?
Onweerwolf
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#18164
Re: Auto changing icon location on calendar window 2 Years ago  
If I remember correctly there is a similar question:
www.rainlendar.net/cms/index.php?option=com_kunena&Itemid=42&func=view&id=14379&catid=3#14379
maybe that can help you.
anoob
Platinum Boarder
Posts: 504
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
#18167
Re:Auto changing icon location on calendar window 2 Years ago  
That doesn't really help me as that thread only offers a description of how someone tried (and failed) to get this done with an old skin type. There are no .ini files anymore, just .xml files.
Onweerwolf
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#18168
Re:Auto changing icon location on calendar window 2 Years ago  
Ooh, But Rainlendar2 will align location of icons automatically.
Have you setting the "offset" item for categories in elements.xml ?
The default setting is: offset="-2,-2", and don't suggest to change that values.
anoob
Platinum Boarder
Posts: 504
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
Go to topPage: 123
get the latest posts directly to your desktop