Copied to clipboard

Flag this post as spam?

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


  • Simon Dingley 1474 posts 3431 karma points c-trib
    Dec 23, 2011 @ 10:40
    Simon Dingley
    1

    Controlling markup of forms

    I'm no stranger to Umbraco but I am a relative noob when it comes to Contour. I think it's a great tool to empower users however I have a couple of issues and appreciate any advice on tackling them:

    1. One of the major downsides is the form markup forced by contour, as far as I can tell there is no way to override this which sometimes makes it very difficult to implement some specific designs/layouts.

    2. Why is there a tooltip setting when in fact it doesn't apply a tooltip to the field it simply appends it inside <small> tags after the form field meaning having to implement client-side hacks to get it where it should be and that's as a tooltip for the form field.
    I may of course have missed or overlooked obvious solutions to these initial problems so would appreciate any feedback.
    Thanks, Simon

     

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Dec 23, 2011 @ 13:52
    Tom Fulton
    1

    Hi Simon,

    I think a lot of users, including me, agree that there could be a lot more flexibility of the markup that is rendered.  For example there are some issues with legend, and the <small> tooltip is strange also.

    You may already know this, but just FYI, you do have *some* level of control by modifying /usercontrols/umbracoContour/RenderForm.ascx, but not as much as you'd probably like, as things like the legend and tooltips are rendered in Literals.

    Otherwise at the moment you might need some jQuery hacks to get the markup you want.

    Not sure if there are any plans to add more control, however I think it would be a good start to include more markup such in the RenderForm.ascx so it can be overridden, instead of Literals that get populated with markup.

    -Tom

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Jan 02, 2012 @ 21:38
    Simon Dingley
    0

    Hey Tom, hope you had a great xmas and happy new year!

    Thanks for the tip on editing RenderForm.ascx but as you say the control is limited! Is there any official word on addressing these issues or a roadmap for Contour?

    Simon

  • Comment author was deleted

    Jan 03, 2012 @ 08:01

    You can enable some additional params on the render form macro that will allow you to specify the tag used for the page name and fieldset

    To have complete control take a look at: http://our.umbraco.org/projects/website-utilities/cultiv-restcontour

    We are also working on porting Contour to v5 and one of the things we'll improve is to make it possible to have more control over the markup and validation

     

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Jan 03, 2012 @ 08:02
    Simon Dingley
    0

    Thanks Tim!

Please Sign in or register to post replies

Write your reply to:

Draft