Copied to clipboard

Flag this post as spam?

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


  • Ron Brouwer 273 posts 768 karma points
    Aug 26, 2009 @ 12:12
    Ron Brouwer
    0

    Read from all properties.

    Hi,

    just in case you were wondering how you can check all properties:

    node = theNodeYouAreWorkingWith;
    foreach (umbraco.presentation.nodeFactory.Property property in node.Properties)
                {
                    DoYourThingWithValue(property.Value);
                }

    or

    node = theNodeYouAreWorkingWith;

    var allFieldsContent = "";




    foreach (umbraco.presentation.nodeFactory.Property property in node.Properties)
                {
                    allFieldsContent = allFieldsContent + " " + property.Value;
                }

    DoYourThingWithValue(allFieldsContent);

     
    Also you can create a nodeTypeAlias filter using prevalues (Thats what I would do). 
    For an example you can take a look at the umbsearch2 source.

    I hope this helps!

    Ron

Please Sign in or register to post replies

Write your reply to:

Draft