Skip to main content

Topic: Change layout in SCPL (Read 3566 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • sylla
  • [*][*][*]
Change layout in SCPL
I know this probably is easy to do, but have been searching the wiki and forum all evening

I have all my playlists named either as -s- or -a-, and I want to have different views for them in the SCPL (no headers for the ones called -s-) I can't figure out how to do that with the new SCPL, I think it is in the layout selector? but then I read that it doesnt suppert %_playlist_name% or something.

I have one layout called Singles and one called Albums, and my layout selector code looks like this for the moment

Code: [Select]
$if($isgrouped(album),
$scplsetlayout(Albums)
,
$scplsetlayout(Singles)
)
$if($or($isgrouped(Singles),$isgrouped(Playcount),$isgrouped(Rating)),$scplsetlayout(Singles),$scplsetlayout(Albums))

though I've tried many other codes.

Please help me, even though it's probably been asked before and it shouldn't be so hard to find, but as I said, I've been searching the whole evening..

  • slinger1182
  • [*][*]
Change layout in SCPL
Reply #1
Try this in the layout selector.

If you have the latest PanelsUI,
Code: [Select]
$if($strcmp($right(%playlistname%,1),-s-),
    $scplsetlayout(Singles)
,
    $scplsetlayout(Albums)
)


If you have PanelsUI 0.9.x, change %playlistname% to $playlistname()


Also, if you are grouping by albums change the album "group by" to this, (I am assuming you don't want a header in your singles playlist.

Code: [Select]
$if($strcmp($right(%cwb_activelist%,3),-s-),
!noheader!,
%album%
)

  • sylla
  • [*][*][*]
Change layout in SCPL
Reply #2
Thank you, it was very useful. I changed the album group by and that helped remove all headers but the first on -s- playlists. Why is there still a header left on the top??

I updated my version of PanelsUI to the latest and tried your layout selection code. Still the same layout on all playlists. If I switch "singles" with "albums" in the code I get all of my playlists have the Singles layout...

Edit: Hey I think I got it to work, by changing the number to 3 in the layout code too  Thank you very much

Edit2: just the thing I wonder about why there is still a header left on the top, would like to get that away too
  • Last Edit: 26 April, 2007, 05:57:01 PM by sylla

  • slinger1182
  • [*][*]
Change layout in SCPL
Reply #3
I dont know why you have a header at the beginning. I dont get the header. Try unchecking all the "group by sort" in the sort criterias?

My sort criterias are:

Artist: %album artist%
Date: %date%
Album: %album% %discnumber%
                  Group By: $if($strcmp($right(%cwb_activelist%,3),-s-),
                                    !noheader!,
                                  %album%
                                  )
Tracknumber: %tracknumber%

No secondary sorts or "Group by sort" in any of them. I group By Album.
  • Last Edit: 26 April, 2007, 07:44:57 PM by slinger1182

  • sylla
  • [*][*][*]
Change layout in SCPL
Reply #4
Okay, I have different on many of those, but I solved my problem in another way: as I don't want any headers at all in the -s- playlists, I just changed the "group rows" to 0 in the SCPL settings window for Singles. Then I changed back to the old sorting criteria, as it affected all playlists for some reason.

Thank you very much for your help, now I have it just as I want

Change layout in SCPL
Reply #5
Along the same lines... is there a way to keep only the group row? Would be useful for making a simple little album only display. If you set row height to 0 you seem to default it to 18.

ed: Maybe it's just my old version, but something like this -
  • Last Edit: 29 April, 2007, 09:34:05 PM by Safe Drive Home

  • alphaex32
  • [*][*][*][*]
Change layout in SCPL
Reply #6
Along the same lines... is there a way to keep only the group row? Would be useful for making a simple little album only display. If you set row height to 0 you seem to default it to 18.

ed: Maybe it's just my old version, but something like this -

Could you post your SCPL code? I'm also curious about which fonts you're using.

Change layout in SCPL
Reply #7
Could you post your SCPL code? I'm also curious about which fonts you're using.


I will give it to you in the magic of Unicode .txt. Fonts are listed where available.
http://andsuch.org/pub/foobar/07foobconfig.txt
  • Last Edit: 29 April, 2007, 09:46:23 PM by Safe Drive Home

  • alphaex32
  • [*][*][*][*]
Change layout in SCPL
Reply #8
Thanks, man!