Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Fowles 75 posts 184 karma points
    Jun 26, 2013 @ 16:26
    Paul Fowles
    0

    Setting up datatype prevalues from content node names?

    Hi,

    Is there any way to add automated prevalues to a current datatype based on the names of content nodes?

    For example you have a job datatype and in the content area of umbraco you have a Job content node with a  child node called Teacher, and the datatype has a single prevalue of just Teacher. When I then create a new child node in job called Doctor, the doctype will automatically update to have prevalues Doctor and Teacher.Vice versa if you delete the content nodes

    Is this possible?

     

     

  • Paul Fowles 75 posts 184 karma points
    Jun 27, 2013 @ 13:19
    Paul Fowles
    0

    Is there a way of accessing a datatype programatically through .net and gaining access to the prevalues? I thinking of writing a document class programatically that puts the node name into the prevalues

     

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Jun 27, 2013 @ 22:29
    Kevin Jump
    100

    one way to do this would be with the Multi-Node Tree Picker. you could create a MNTP Content picker pointing you tour Job Content node, 

    then the editor will see the following

    Programatically you would only have a Content ID in the content, but you can use that to get the title of the content, or indeed any of the contents of that content node. 

  • Paul Fowles 75 posts 184 karma points
    Jul 02, 2013 @ 11:51
    Paul Fowles
    0

    Thank you so much 

Please Sign in or register to post replies

Write your reply to:

Draft