Copied to clipboard

Flag this post as spam?

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


  • Martijn 10 posts 29 karma points
    Jul 02, 2014 @ 16:17
    Martijn
    0

    Arguments for UmbracoHelper::Field

    On this documentation page it lists only a single argument for UmbracoHelper::Field, while inteelisense shows 12 additional ones. How/where am I supposed to get information about all the others?

  • Dan Lister 416 posts 1974 karma points c-trib
    Jul 24, 2014 @ 17:36
    Dan Lister
    0

    Hi Martijn,

    Most of the additional parameters should be self explanatory. The majority also have default values. You could always look at Umbraco's source for the class to find out more information. I've added comments below to parameters which may not be self explanatory.

    • altFieldAlias: Field to be used if the current field is empty.
    • altText: Text to be used if the field is empty.
    • insertBefore: Text to insert before the field.
    • insertAfter: Text to insert after the field.
    • recursive: Recursively traverses up the content tree to use the field which has content.
    • convertLineBreaks
    • removeParagraphTags
    • casing
    • encoding
    • formatAsDate
    • formatAsDateWithTime
    • formatAsDateWithTimeSeparator

    Thanks, Dan.

Please Sign in or register to post replies

Write your reply to:

Draft