Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4
  1. #1

    Custom Browse customized album info

    Hello,

    I wanted to modify the custombrowse/albumheader/albuminfo header item, so that each time I navigate Custom Browse/albums the album info page displays some more information about the album. I attached the definition, the SQL is executed (I suppose so as using erronous sql results in failures), but the Information about the album title just shows the album title and not the result of the concatenation ('Album Title (Year) {_ISSUE}').

    Any hint you folks could give me on what I could have missed? I tried everything I could from looking at the Wiki, to no avail.

    Using LMS current nightly with all plugins update.

    Thanks
    Attached Files Attached Files

  2. #2
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    10,355
    If there is an error when the SQL is executed I think you will see a red message in the LMS web interface and you will definitely see errors in the server.log file.

    Does it display your menu item at all ?
    Can you try to change "Title:" to something else just make sure it's really displaying your item in the header ?

    If you are modifying the menu xml file in a text editor and not through Custom Browse settings page, it's important to remember to click the "Refresh" link at the bottom of the Custom Browse menu to refresh the menu definition.

    Another trick that's useful when debugging is to run the SQL in the free Database Query plugin, to do this you just need to replace "{context.itemid}" with the real album identifier. You can get the album identifier by running the "Albums" query in Database Query plugin.
    Erland Isaksson (My homepage)
    (Developer of many plugins/applets (both free and commercial).
    If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)
    You may also want to try my Android apps Squeeze Display and RSS Photo Show
    Interested in the future of music streaming ? ickStream - A world of music at your fingertips.

  3. #3
    following structure: browse menu for Artists based on Custom Browse artists menu, click on artist. This should be the Custom Browse artist page with the list of albums as defined in the artists template: works.

    But - what is the header item for albums on the artist page (Album: ...)? I tried artistheader/album and the SQL is perfectly executing when using SQL Query plugin, but the data showing up is not the data expected, it's default data as if the enabled header item is a different one.
    How can I figure out which templates are actually used, Source Code is not really obvious imho...

    Thanks

  4. #4
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    10,355
    Quote Originally Posted by godIsInTheRadio View Post
    following structure: browse menu for Artists based on Custom Browse artists menu, click on artist. This should be the Custom Browse artist page with the list of albums as defined in the artists template: works.

    But - what is the header item for albums on the artist page (Album: ...)? I tried artistheader/album and the SQL is perfectly executing when using SQL Query plugin, but the data showing up is not the data expected, it's default data as if the enabled header item is a different one.
    How can I figure out which templates are actually used, Source Code is not really obvious imho...

    Thanks
    If you goto "SBS/LMS Settings/Advanced/Custom Browse/Manage header/footer items" you will see the total list of header items. The ones starting with "artistheader/" are the ones shown on the artist page. The one named "artistheader/Albums" is the default one that shows the album information, the information after "artistheader/", for example "Albums", is just a part to know what each item represent, it can be called anything this string is not shown in the header in the user interface. The "Filename" paramter specified when saving a header configuration item is the thing that needs to be unique, for example "artistheaderalbums.cb.context.values.xml", where "artistheaderalbums" is the part that uniquely identifies this header.

    Take a look in the "SBS/LMS Settings/Advanced/Custom Browse/Manage header/footer items" menu and see what items you have that starts with "artistheader/", then look in the browse menu and browse so you can see a header, are all items shown in the setting page there or are some missing ? For example the one you have added ?

    If the SQL query in the item configuration doesn't return any rows, the result will be that the item isn't shown at all.

    Have you been able to add any header item at all, or does other works but not the one you have customized yourself ?

    If you can't figure it out based on the above information, please post a screenshot of the "Manage header/footer items" page or write down the contents, so I can take a look at it and see if I can figure out what's going on.
    Erland Isaksson (My homepage)
    (Developer of many plugins/applets (both free and commercial).
    If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)
    You may also want to try my Android apps Squeeze Display and RSS Photo Show
    Interested in the future of music streaming ? ickStream - A world of music at your fingertips.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •