+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Expanding Taxa/Taxonomy Through Adding Attributes

Expanding Taxa/Taxonomy Through Adding Attributes

3 posts, 0 answered
  1. John
    John avatar
    6 posts
    Registered:
    03 Apr 2014
    01 May 2014
    Link to this post

    Hello,

     I am wondering if its possible to expand the function of taxonomies by adding new attributes to the taxonomy for widgets to access. I am trying to find a method of adding a value number to every taxa item in a taxonomy, so that when I create a new taxa, I have the option to input its Title, Parent Taxa, and Value Number.

    Best,

    John

  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    07 May 2014 in reply to John
    Link to this post

    Totally!  Just tried this myself just now

     Follow this: http://www.sitefinity.com/documentation/documentationarticles/custom-page-attributes

     So instead of drilling down to pages, drill to the taxonomy you want attributes on.  Then you can pick any XFieldDefinitionElement in the list.  Like adding an image to a taxon editable in the UI is like a couple clicks...SICK

  3. John
    John avatar
    6 posts
    Registered:
    03 Apr 2014
    07 May 2014
    Link to this post

    Steve to the rescue! Thank you. I was reading that article and didn't do this step:

    "In the DataFieldName textbox, enter the name of the persistent field where you want to store the value of the attribute. This name must be prefixed with Attributes. This is a convention Sitefinity uses to distinguish custom page attributes from the rest. If you want your field to be named DemoField, then enter Attributes.DemoField."

3 posts, 0 answered