Trying to output a list of members to a page. I have the output coming out fine with typical fields(text, textarea, checkboxes and even dropdowns) But the problem is showing the output for a Ucomponent(MNTP).
I have this component grabbing pages from a certain folder and just assigning the member to this page.
The problem is I cannot get the component to show me the Page Name and Url.It comes out as XML and cannot figure out how to just get the nodeproperties out of it.
Below is what I have:
@using umbraco.cms.businesslogic.member @inherits umbraco.MacroEngines.DynamicNodeContext @using umbraco.NodeFactory @{ var members = Member.GetAll; <h2>All Members</h2> foreach(var item in members){ var member = new Member(Convert.ToInt32(@item.Id)); // OTHER VARS HERE.... <p>Company Name: @(member.GetProperty<string>("companyName"))</p> } }
Output shows:
Var1: CorrectValue1 Var2: CorrectValue2
Company Name: <MultiNodePicker type="content"> <nodeId>1475</nodeId> </MultiNodePicker>
List Members
Trying to output a list of members to a page. I have the output coming out fine with typical fields(text, textarea, checkboxes and even dropdowns) But the problem is showing the output for a Ucomponent(MNTP).
I have this component grabbing pages from a certain folder and just assigning the member to this page.
The problem is I cannot get the component to show me the Page Name and Url.It comes out as XML and cannot figure out how to just get the nodeproperties out of it.
Below is what I have:
Output shows:
Hi Gabriel,
Welcome to Our!
Because your MNTP is storing as XML (and could potentially have multiple selections) you need to a bit of processing, here is how I would do it:
Thanks,
Jeavon
Jeavon,
That did it!
I knew I had to gather the XML and then grab its varibales. i just did not know how to.
Thanks again!
is working on a reply...