Results 1 to 3 of 3

Thread: Adding fields to the tl_iso_products DCA

  1. #1
    User
    Join Date
    04-10-11.
    Posts
    162

    Default Adding fields to the tl_iso_products DCA

    Hi,

    i'm currently building an extension for Isotope. I'm trying to add some fields to the tl_iso_products table in the back end. I've seen various extensions that do this on the Isotope GitHub but i'm having trouble understanding how it's done.

    None of these extensions seem to add anything to the palette, the tl_iso_products.php files in the DCA just contain the field data. I've tried replicating this and my fields aren't being added.

    Once I have my custom fields in my tl_iso_products.php DCA file, how do I get them to show in Isotope?

    Thanks!

  2. #2
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Adding fields to the tl_iso_products DCA

    Normally you add additional fields using the Attribute Manager. Then you create sets of fields to form a Product Type, where you can add/remove these custom fields as well. All these fields are available in the templates and other hooks, so no real need to add them to the DCA.

  3. #3
    User
    Join Date
    04-10-11.
    Posts
    162

    Default Re: Adding fields to the tl_iso_products DCA

    Thanks for the reply. The reason I wanted to add them from the DCA was because they were part of an extension. I wanted them to be added as part of the extension rather than added manually by the user.

    It turns out the tl_iso_products works a bit differently to a normal DCA. Once you have defined the fields in the DCA instead of adding them to the palette you need to go to 'Product Types' in the Isotope backend and select them as fields for the product type you are using.

Bookmarks

Posting Permissions

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