sorry for this huge post, but i just give myself some answers or complement of ask to better point the help i asked
(i could not edit my previous post, like in time. did i missed something?)ok "edit" is limited in time...
hello to all
[!--sizeo:1--][span style=\"font-size:8pt;line-height:100%\"][!--/sizeo--]
3 simple questions for ELPlaylist:
1-
Is there a way to "connect" group by (context menu) and a preset?
Can ELPlaylist selects automatically a defined preset according to a "group by"?
If not, what is the use of different presets?
Ex: i want to use a preset when i group by album, showing album art, and use another preset when sorting by artist, using artist art. And having different display for group header and infos.[/size]
i've made my artwork depends on my "group by"
it shows artists image when grouped by "artist" otherwise, it shows front image.
// * ALBUM ART *
$enabledraw(1)
$ifgreater(%el_direct_item_count%,$sub(%ART.ROW%,1),
$setworldtransform($add(2,-%ON.ART.IN.GROUP%))
$if($strcmp(%el_group_format%,%album artist%),
$imageabs($get(art.left),$get(art.top),$get(art.size),$get(art.size),$findfile($get(artist.artpath),$get(noartist.artpath)),nokeepaspect,,,$get(effect))
,
$imageabs($get(art.left),$get(art.top),$get(art.size),$get(art.size),$findfile($get(front.artpath),$get(folder.artpath),$get(noalbum.artpath)),nokeepaspect,,,$get(effect))
)
but i still can figure what is the use of presets. could anyone show me an exemple of using different presets?
[!--sizeo:2--][span style=\"font-size:10pt;line-height:100%\"][!--/sizeo--]2-
AFAIK, we can't change global fields definitions with buttons,
like set:pvar:value:1 in panelUI
so is there another way to manage them, or do we have to go to settings/fields definition tab, to manually change them?
Ex: i have a global field that return if i want to display albumart or not.[/size]
anyone has attempt to change a Global Field definition with a button kind action?
3-
what do return this
$puts(text,$ifequal(%el_group_format%,%album% %discnumber%,%album% %discnumber%,%album%)
$drawtext($get(text),.....)
?
in fact i want to display the discnumber if i use discnumber in group mode, but dont want to display it in other group format.
for the moment i cant figure how it works. I suppose that %el_group_format% is compared to the result of %album% %discnumber% and not the string itself.
ok, i found what does not work:
i can use this:
$if($strcmp(%el_group_format%,%album artist%),,
$drawtext($get(album.txt),....)
to display only album artist if i group and sort by artist
but this doesn"t work, due to the '|'
$puts(album.txt,
$ifequal(%el_group_format%,%album% | %discnumber%,
%album% $if(%discnumber%,'(Disc '%discnumber%')',),
%album%)
)
any idea to show 'disc 1/2' and 'disc 2/2' when grouping by %album% | %discnumber%
but not show this information when grouping only by %album% ?
bye bye