Results 1 to 3 of 3

Thread: Template Question: Declarations Section Data Types

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2004
    Location
    Posts
    157

    Default Template Question: Declarations Section Data Types

    Are there any choices other than 'int', 'bool', and 'field' for the data types in the declarations of a template? Specifically, is there anything that offers functionality similar to a radio button or dropdown list?

    Thanks.

  2. #2
    Join Date
    Feb 2009
    Posts
    1,549

    Default

    There are also 'color' and 'font' datatypes, but I'm afraid there is nothing like drop-down list.

    Can you share your scenario (why you want it?) Perhaps there is some other way to achieve it.

    Andrei

  3. #3
    Join Date
    Feb 2004
    Location
    Posts
    157

    Default

    Quote Originally Posted by andrei_c View Post
    Can you share your scenario (why you want it?) Perhaps there is some other way to achieve it.

    Andrei
    Sure. My template has three different ways it can display artists, roles and tracks on the album page. Right now, I'm using two checkboxes, one of which "overrides" the other, to select between a compact form, a columnar form, and an expanded form. Sometimes it's useful to me to switch back and forth between forms; the compact form is most efficient with screen space, but the expanded forms are easier to use when looking for specific individuals.

    I thought about using a number, since there is an 'int' field, but without an ability to add a help choice I was concerned that I'd forget which number corresponded to which option.

    It's not a big deal as it is - it's just a little less intuitive to use my template than I wish it was, that's all.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •