English > Support

And Statements, Or Statements, etc...

(1/3) > >>

katleeh:
Is there any way to do If/Then/Else statements, And statements, etc in XML? I've been reading up on it and most of the information refers to using XSL, but I'm not sure that's even compatible in this instance. Is there a format guide for how and what can be done in the skin files?

What i'm tryin to do is make it so that the skin will display different general images depending on what the data in the record is. For instance, if its a DVD, then it would display a DVD image, etc.

- Katleeh

rick.ca:
XML is just a standard for a document format. The fact skin data is stored in an XML-like format doesn't imply XSL is applicable to it. In fact, the data is for the exclusive use of the skin engine. AFAIK, everything the skin engine is capable of is documented in the Skin Engine Manual. I think it's fair to say it's capabilities are restricted to controls for specifying how fields from a given record will be displayed.

I'm not sure if this is what you mean, but it would be nice if there were a general way to associate attributes (i.e., the existing values of a list field) with images, and then have the ability to display the attribute and/or its associated image in the skin. Then Countries and Languages could be displayed as flags, Media Types and Codecs as icons, Studios and Distributions as trademarks, etc. 8)

katleeh:
*grumbles* That's exactly what I'm trying to do, to.

So as of yet, there's no way to do any of those things in the skins?

- Katleeh

rick.ca:

--- Quote ---So as of yet, there's no way to do any of those things in the skins?
--- End quote ---

Well, there's always a way. Just nothing very practical...

The screenshot shows how <imagelist> can be used to show additional posters. Posters, like screenshots, are all saved in the same container. Using this function, the one tagged as default appears as the poster, and the rest appear in this "flow section." If you only wanted one poster, it could be saved as the default, and the container could be used for "attribute icons." The imagelist could be formatted differently and placed anywhere in the skin. Unfortunately, you'd have to manually add the icons for each movie.

More clever but still impractical: Export attributes in the form of a batch file that would create one attributes image grouping or banner from a collection of attribute icons. Import the resulting image as a <cdcover> and place that in the desired location in the skin. This would be very cool, but you'd probably hate yourself when nostra implements a feature that automatically associates attributes with images. ;)

[attachment deleted by admin]

katleeh:
I've actually gone over the skin manual several times and its missing somethings. For instance, I've noticed that movies edited can sometimes show up in different places than planned but don't know how that is specified. Likewise when you are designing the skin how do you specify how things are laid out during editing and how they are laid out regularly? Also, how do you use seperate custom fields? Say I want to add custom fields in places other than the custom section, how would I do that?

- katleeh

Navigation

[0] Message Index

[#] Next page

Go to full version