Personal Video Database

English => Development => Topic started by: daddydave on July 01, 2011, 02:38:36 am

Title: customfieldlabel vs. caption in skin
Post by: daddydave on July 01, 2011, 02:38:36 am
OK I am trying to add custom fields to the pvd_imdb_theme movie skin. If I do the following, I get "watcher Watcher:" as my field label
Code: [Select]
                     <column width="140" halign="left">
                        <customfieldlabel field="watcher"/>
                        <label>
                          <caption>Watcher:</caption>
                        </label>
                      </column>


If I leave out the customfieldlabel element, I get no label at all:

Code: [Select]
                     <column width="140" halign="left">

                        <label>
                          <caption>Watcher:</caption>
                        </label>
                      </column>

I'm using the 1.0.1.0 beta but I'm probably just doing something stupid. So what am I doing wrong?
Title: Re: customfieldlabel vs. caption in skin
Post by: rick.ca on July 01, 2011, 03:45:29 am
What you want is something like...

Code: [Select]
<column>
      <label  width="140" halign="left">
            <caption>Watcher:</caption>
      </label>
      <custom field="watcher"/>
</column>

Title: Re: customfieldlabel vs. caption in skin
Post by: daddydave on July 01, 2011, 10:55:34 pm
Thanks, that works! Wish I could understand why, but for now I'll just roll with it.  :)
Title: Re: customfieldlabel vs. caption in skin
Post by: rick.ca on July 01, 2011, 11:12:33 pm
I've never done better than "rolling with it." My main technique is to copy something that works, and then modify it by trial and error. :-\