Author Topic: customfieldlabel vs. caption in skin  (Read 7938 times)

0 Members and 1 Guest are viewing this topic.

Offline daddydave

  • Member
  • *
  • Posts: 28
    • View Profile
    • Me on Google+
customfieldlabel vs. caption in skin
« 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?

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: customfieldlabel vs. caption in skin
« Reply #1 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>


Offline daddydave

  • Member
  • *
  • Posts: 28
    • View Profile
    • Me on Google+
Re: customfieldlabel vs. caption in skin
« Reply #2 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.  :)

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: customfieldlabel vs. caption in skin
« Reply #3 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. :-\