Help - Search - Members - Calendar
Full Version: Single Column Playlist Layouts
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Aussieboy2323
Ive searched through this forum tirelessly and have only found this topic. That topic hasnt really helped though. I noticed under the SCPL setting you can add new layouts. My question would be how would i go about changing the layouts from one that is a singles mode, to one that is an album mode with a button that is in a track info mod panel?
Thanks in Advance, I hope i was clear...
Yotsuya
You cannot create a button that will directly switch between SCPL layouts, however you can do this:

Create your individual layouts in SCPL.
- Load foobar with a layout containing SCPL
- Right click on SCPL and select "Settings" from the popup menu
- In the Single Column Playlist Config cock on [New], an input box should appear
- Type in the name for your new layout such as "Single", "Album", or "Online" and click [OK]
- Edit your Layout Settings to display your desired appearance for that layout
- Continue to create your different layouts and then click [Apply] and [OK] to save them.

Define Sorting and Grouping criteria for use in presets:
- File> Preferences> Display> Panels UI> Sort/Group
- In the Sorting and grouping criteria section create separate criteria for each chunk of data you would like to sort or group your playlist entries by such as album name, radio station genre, discnumber, etc.
- Click [Save All] and [Close]

Create Sorting and Grouping presets for use with each layout:
- Right clcik on SCPL and select "Sort / Group By" then "Edit" from the popup menu
- Use right and left clicks to build a sorting and grouping scheme for your layout
- Click [Save] and enter a name such as "Singles View", "Albums View", or "Radio View".
- Click [OK] to return to foobar

Create buttons to manually switch Sorting and Grouping presets:
CODE
$button2($sub(%_width%,42),5,0,0,14,14,A,a,Album View,)
$button2($sub(%_width%,28),5,0,0,14,14,S,s,Singles View,)
$button2($sub(%_width%,14),5,0,0,14,14,R,r,Radio View,)


Define conditions to automatically select a layout based on if certain key Sorting and Grouping criteria are being used for grouping in the current Sorting and Grouping preset:
- File> Preferences> Display> Panels UI> Sort/Group
- Enter some pseudocode into the Single Column Playlist Layout Selector that will resolve to the name of your desired layout such as:
CODE
$if($isgrouped(Album),$scplsetlayout(Album),$scplsetlayout(Singles))
$if($isgrouped(Genre Presets),$scplsetlayout(Radio),)

- Click [Save All] and [Close]

Now you will be able to click a button, the button will activate a Sorting/Grouping preset. When the Layout Selector sees that you are now grouping by the key criteria it will automatically switch your layout. Sorry that it is a bit complicated but this is the only solution I have been able to discover.
Aussieboy2323
Thanks so much, I have it working now! biggrin.gif biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.