PDA

View Full Version : help creating a new skin



Kevin Hobbs
2005-02-24, 11:41
I'm trying to create a web ui for slim server, and I need some help.

I've started with the default skin as a base, and I'm modifying it to suit
my needs. I'm trying to do the following:

- Display the album cover art next to each album listing when displaying
artist>albums
- Change the sort order of the artist>album list to sort by year
- Change the text format of the album list to display <year> - <album>

Are these things possible? When I try to display the cover art, using the
example from the song detail page, it doesn't return the path to the
image... I'm assuming its not available at the album level?

Is there any help out there with more info than what's distributed with the
Slim Server help?

kdf
2005-02-24, 12:07
Quoting Kevin Hobbs <mrkevinhobbs (AT) hotmail (DOT) com>:

> I'm trying to create a web ui for slim server, and I need some help.
>
> I've started with the default skin as a base, and I'm modifying it to suit
> my needs. I'm trying to do the following:
>
> - Display the album cover art next to each album listing when displaying
> artist>albums
> - Change the sort order of the artist>album list to sort by year
> - Change the text format of the album list to display <year> - <album>
>
> Are these things possible? When I try to display the cover art, using the
> example from the song detail page, it doesn't return the path to the
> image... I'm assuming its not available at the album level?
>
> Is there any help out there with more info than what's distributed with the
> Slim Server help?


Each template in a skin has a certain set of objects abailable to it. cover
art, for example is made available to browsedb.html, status_header.html,
status.html and browsedb_artwork.html. If you try to copy artwork lines from
one of these files to another, it may not work.

if you understand Perl, you can look at Pages.pm for details on what is
presented to each template. Do a search for the html filename you want to work
with, that will be near the end of the section of code that handles that
template.

There was a patch posted in the discuss list a while back that presented artwork
in all of the browse modes, but it was for 5.4.x. It would not work in 6.0
becuase Pages.pm has changed a lot. It could be possible to port it, but with
6.0 in alpha now, that would have to wait at least until 6.0 is a full release
to add new features such as this.

-kdf