Copied to clipboard

Flag this post as spam?

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


  • Thomas Kahn 602 posts 506 karma points
    Jun 14, 2010 @ 14:24
    Thomas Kahn
    0

    XML-reference to a contour template?

    Hi!

    I'm looking for some sort of XML-reference for a contour template? Looking at UmbracoContour.config I see caption, type, mandatory and regex, but what if I want to add things like tooltip and required error message?

    Regards,
    Thomas Kahn

  • Thomas Kahn 602 posts 506 karma points
    Jun 18, 2010 @ 09:09
    Thomas Kahn
    0

    Perhaps if I rephrase the question a bit.

    Does the default UmbracoContour.config-file contain all the available properties I can use when I want to create custom templates? The default templates are these:

    <templates>
    <template name="Contact form">
    <field caption="Name" type="3F92E01B-29E2-4a30-BF33-9DF5580ED52C" mandatory="true" />
    <field caption="Email" type="3F92E01B-29E2-4a30-BF33-9DF5580ED52C" mandatory="true" regex="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
    <field caption="Message" type="023F09AC-1445-4bcb-B8FA-AB49F33BD046" mandatory="true" />
    </template>
    <template name="Blog comment form">
    <field caption="Name" type="3F92E01B-29E2-4a30-BF33-9DF5580ED52C" mandatory="true" />
    <field caption="Email" type="3F92E01B-29E2-4a30-BF33-9DF5580ED52C" mandatory="true" regex="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
    <field caption="Website" type="3F92E01B-29E2-4a30-BF33-9DF5580ED52C" mandatory="false" regex="(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?" />
    <field caption="Message" type="023F09AC-1445-4bcb-B8FA-AB49F33BD046" mandatory="true" />
    </template>
    </templates>

    Thanks in advance!

    /Thomas Kahn

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jun 28, 2010 @ 09:00
    Tim Geyssens
    1

    Hi Thomas,

    Indeed, currently in the template you can set which fields you want and for a field you need to supply:

    Caption
    and
    Type

    Optional you can also supply
    Mandatory
    and
    Regex

    For the types here is an overview of the guids you can use:
    Checkbox: D5C0C390-AE9A-11DE-A69E-666455D89593
    DatePicker: F8B4C3B8-AF28-11DE-9DD8-EF5956D89593
    FileUpload: 84A17CF8-B711-46a6-9840-0E4A072AD000
    Password: FB37BC60-D41E-11DE-AEAE-37C155D8959
    Textarea: 023F09AC-1445-4bcb-B8FA-AB49F33BD046
    Textbox: 3F92E01B-29E2-4a30-BF33-9DF5580ED52C

    Regards,
    Tim

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies