User Tools

Site Tools


columns_ui:tips_and_tricks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
columns_ui:tips_and_tricks [2008/08/14 18:16] 68.90.42.210columns_ui:tips_and_tricks [2012/10/07 03:55] (current) – Reverted vandalism 98.248.89.12
Line 33: Line 33:
 ==== Making groups of alternating colours ==== ==== Making groups of alternating colours ====
 To create alternating colours for groups of three songs (three red, three blue), use the following code:<code tagz>$ifgreater($mod($add(%_playlist_number%,2),6),2,0000dd,dd0000)</code>Replace 0000dd and dd0000 with your preferred colours. The number '2' in '%_playlist_number%,2' above may be replaced with a different value (say, 5) to align the desired colour with your first list item. To create alternating colours for groups of three songs (three red, three blue), use the following code:<code tagz>$ifgreater($mod($add(%_playlist_number%,2),6),2,0000dd,dd0000)</code>Replace 0000dd and dd0000 with your preferred colours. The number '2' in '%_playlist_number%,2' above may be replaced with a different value (say, 5) to align the desired colour with your first list item.
 +
 +For those using the newer **NG Playlist** interface, the above code looks something like this:<code tagz>$ifgreater($mod($add(%_display_index%,1),6),2,$set_style(text,0000dd),$set_style(text,dd0000))</code>The //_display_index// variable could be replaced with //list_index// if desired. Notice that //list_index// does not use a leading underscore. Also notice the offset value was adjusted to **1** because the group title occupies the first line.
columns_ui/tips_and_tricks.txt · Last modified: 2012/10/07 03:55 by 98.248.89.12