Copied to clipboard

Flag this post as spam?

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


  • Ivan 139 posts 302 karma points
    Feb 11, 2012 @ 00:06
    Ivan
    0

    Is it possible to read content nodes information from Contour?

    Hi.

    I need to create a "Profile page" where a logged member can update his profile.

    One of the fields is a dropdown list containing categories created using "Content" section. I mean, i created a document type named "Category" and a datatype called "Categories" using "Ultimate picker" to display a dropdownlist with all categories defined. Any member must select his favourite "Category" but don't know how to get it working using Contour.

    Any ideas?

    Thanks in advance!
    Ivan

  • Comment author was deleted

    Feb 13, 2012 @ 08:11

    Hi Ivan,

    Well in contour you can create a prevalue source that is linked to content documents, then one that prevalue source is in place you can attach it to a dropdown/checkboxlist/radiobuttonlist

  • Ivan 139 posts 302 karma points
    Feb 13, 2012 @ 11:24
    Ivan
    0

    Hi Tim,

    Thanks for your reply. With your suggestion I've tried the following alternatives:

    1. Create a new "Prevalued Sources" of type "Umbraco datatype Prevalues" using my custom ultimate picker datatype as "DataType".
      • I get the following "Prevalues overview":
        ID: 17 Value: DropDownList|1080|Location|True
      • After assigning this prevalue type to a dropdown list within "my profile" form, i don't get rendered ultimate picker values but only "DropDownList|1080|Location|True" what is not what i am looking for.

    2. Create a new "Prevalued Sources" of type "Umbraco Documents", setting my root node and document type.
      • I get the following "Prevalues overview":
        ID: 1081 Value: Barcelona
        ID: 1082 Value: Sevilla
        ...
      • Assign as Default value {member.location} (member location field is of type ultimate picker but also tried content picker).

    With the second alternative i've got two problems:

    • I don't get rendered grandchildren location type nodes, like Barcelona -> Badalona.
    • Using "My Profile" form location's dropdown list i can update member profile's location but whenever i load the form, location's dropdown list is empty (don't remember selected value).

    Any ideas how can i get it working using Contour?

    Kind Regards,
    Ivan

  • Ivan 139 posts 302 karma points
    Feb 18, 2012 @ 22:10
    Ivan
    0

    Finally i am using http://osmembercontrols.codeplex.com/ to create "My Profile" page.

    Running on Umbraco 4.7.1.1 and working great.

Please Sign in or register to post replies

Write your reply to:

Draft