New SQL Field

Can anyone tell me how to add another field like the description to show on the album page?

Comments

  • There is a field called "custom data" that you could use like the description. Then you would add code to the album page to print that field. You get the field by calling `getAlbumCustomData()` or `getImageCustomData()`. These return the values associated with the current album or image.
  • Okay thanks i'll give it a shot
  • this "custom data" field, is it only reserved for one extra field?
  • There is only one Customdata database field each for albums and images. However, you can use this field in any way you wish. For instance, you could place your sub-fileds in it separated by some character, say a comma. Then you could use:

    `$MyCustomFields = explode(',', getCustomData());`

    Which would give you an array containing each of your subfields.
  • ok, thanks... I will look into it further
Sign In or Register to comment.