English > Support
And Statements, Or Statements, etc...
Ivek23:
--- Quote ---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?
--- End quote ---
Here are some examples of custom fields, which can add to the various places in the skin according to your wishes.
Examples:
1.)
--- Code: ---<row>
<column>
<label permanent="false" width="95" halign="right">
<caption>Release by:</caption>
<font>
<size>10</size>
<color>$8000AE</color>
<bold />
</font>
</label>
<spacer width="-10" />
<custom field="Release by">
<color>$D7FDDD</color>
<font>
<size>11</size>
<bold />
<color>$cc6600</color>
</font>Release by</custom>
<spacer width="6" />
</column>
</row>
--- End code ---
2.)
--- Code: --- <row>
<column space="10">
<label width="75" halign="right">
<caption>In Collection:</caption>
</label>
<spacer width="7" />
<custom field="In Collection"></custom>
<spacer width="50" />
</column>
</row>
--- End code ---
3.)
--- Code: --- <row>
<column>
<label>
<caption>In Collection:</caption>
</label>
<spacer width="7" />
<custom field="In Collection"></custom>
<spacer width="5" />
</column>
</row>
--- End code ---
4.)
--- Code: ---<row>
<column>
<label width="90" halign="right" valign="center">
<caption>Top 250:</caption>
<font>
<name>Arial Black</name>
<size>10</size>
<color>$CC33CC</color>
</font>
</label>
<spacer width="-7" />
<custom field="Top 250:">
<color>$D7FDDD</color>
<font>
<size>11</size>
<bold />
</font>
</custom>
<spacer width="50" />
</column>
<column>
<label width="55" halign="right" valign="top">
<caption>IMDbID:</caption>
<font>
<name>Arial Black</name>
<size>10</size>
</font>
</label>
<spacer width="-7" />
<custom field="IMDbID">
<color>$D7FDDD</color>
<font>
<size>11</size>
<color>$006600</color>
<bold />
</font>
</custom>
<spacer width="10" />
</column>
<column>
<label width="86" halign="right">
<caption>IMDB Votes:</caption>
<font>
<name>Arial Black</name>
<size>10</size>
<color>$CC33CC</color>
</font>
</label>
<spacer width="-7" />
<custom field="IMDB Votes">
<color>$D7FDDD</color>
<font>
<size>11</size>
<bold />
</font>
</custom>
<spacer width="26" />
</column>
</row>
--- End code ---
5.)
--- Code: ---<row>
<column space="0" autosize="true" halign="center" valign="top">
<label>
<caption>Sinopis - </caption>
</label>
<customfieldlabel field="FilmAffinity" />
</column>
</row>
<row>
<column space="0" autosize="true" halign="center" valign="top">
<spacer width="5" />
<custom field="FilmAffinity">
<color>$D0ECFE</color>
</custom>
</column>
</row>
--- End code ---
katleeh, here I have the latest skin pvd_movie_tabs_normal extra AllMovie where you can see more examples of custom fields.
There is also Rick.ca Theater View Skin , where you can see more examples of custom fields.
rick.ca:
--- Quote from: katleeh on May 24, 2011, 12:56:24 am ---Say I want to add custom fields in places other than the custom section, how would I do that?
--- End quote ---
The default skin has a special customsection in which all custom fields are listed, but their placement and appearance cannot be modified. My recommendation is to explicitly include all custom fields elsewhere in the skin (per Ivek's examples), and then delete customsection so it doesn't conflict.
Unless you already have something you're comfortable editing XML with, I recommend using XML Notepad. Much of the placement of items is determined by the correct nesting of the statements. XML Notepad makes it easy to copy, move and modify branches without messing that up.
Ivek23:
--- Quote ---The internal (appearance) look and edit the skin using Notepad + + Portable (very handy program, get it here.)
--- End quote ---
But I also use this, it is also fine.
BTW:If it is not immediately on the first page, Search enroll in Notepad and running an search and it will certainly also be found.
katleeh:
Ivek23 and Rick.ca, thanks for the help. I'll see what I can come up with using what you've told me. Right now I'm working on a skin that's designed specifically for anime lists. I'll also try those programs you suggested for xml editing.
Speaking of xml editing, I came across some freeware for xml editing that allows you to specify how the wysiwyg layout is for the file. I don't remember what its called but I'll let you know when I check my notes. It might be useful for visual editing of skins.
- katleeh
rick.ca:
--- Quote ---Speaking of xml editing, I came across some freeware for xml editing that allows you to specify how the wysiwyg layout is for the file.
--- End quote ---
XML is just a format for storing data. It doesn't imply anything about the data layout in a particular application. I suppose an XML editor might recognize Word or Excel data and display the layout accordingly, but none of them have the PVD skin engine built into them. But you don't need that. If PVD can't "preview" your skin, nothing else will. ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version