Copied to clipboard

Flag this post as spam?

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


  • Josh Reid 182 posts 257 karma points
    Dec 16, 2012 @ 09:43
    Josh Reid
    0

    Edit Record with RazorRenderForm- AllowEditing/SubmitButtonText

    Hi Tim

    After recently upgrading to Contour 3 and then just today 3.0.4, I connot get AllowEditing or SubmitButtonText working on the Razor Macro. The form whether it is passed a ?recordGuid=... querystring or not, forms always create a new record and don't populate with the original record values. I have added the AllowEditing / SubmitButtonText to the Macro Parameters without joy. Note: I see I will need to modify the forms.cshtml View to get the update the button text, but that is not as important as getting record editing running.

    I have Umbraco 4.11.1 + Contour 3.0.4

    Further, not sure if related or not, but the Javascript in the script view: umbraco/plugins/umbracoContour/Views/Script.cshtml - renders empty, eg: the foreach in following doesn't return anything.

     function PopulateRecordValues() {
                contourFieldValues = new Array();
               
                @foreach (var recordVal in Model.RecordValues)
                {
                    <text>
                    contourFieldValues["@recordVal.Key"] = "@recordVal.Value";
                    </text>
                }
            }
    ...

    Any thoughts?

    Thanks
    Josh

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 17, 2012 @ 10:42
    Tim Geyssens
    1

    Hey Josh,

    Currently record editing isn't supported by the razor macro but will have a go at it this week so will post result here

  • Dave Woestenborghs 3262 posts 11066 karma points MVP 5x admin c-trib
    Feb 05, 2013 @ 14:10
    Dave Woestenborghs
    0

    Any idea when this will be available ?

  • Sergi Arbona 11 posts 52 karma points
    Feb 06, 2013 @ 10:09
    Sergi Arbona
    0

    I also have Umbraco 4.11.1 + Contour 3.0.4

    I need urgently help on this.

    Edit record isn't still available? How it's possible that such a simple thing still not working?

     

     

     

     

     

     

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 06, 2013 @ 10:25
    Tim Geyssens
    0

    You can edit a record in the backoffice... but the option to render the razor macro in edit mode by providing a record id isnt available yet, setting this to the 3.0.8 release that get's released on 4 march

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 06, 2013 @ 10:35
    Tim Geyssens
    0

    If you want to follow the progress: http://issues.umbraco.org/issue/CON-248

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 06, 2013 @ 14:24
    Tim Geyssens
    0

    Of just made a change that makes it possible with the razor macro 

    just add ?recordGuid=d944a872-f3dc-4518-ab0f-3ab3ca4caa45 to the querystring and it will be possible to edit a record (proving it the correct id of the record)

    possible with 3.0.8 WIP http://nightly.umbraco.org/Umbraco%20Contour/3.0.8%20WIP/

  • Sergi Arbona 11 posts 52 karma points
    Feb 08, 2013 @ 12:35
    Sergi Arbona
    0

    Hi Tim,

     

    Thanks for efforts, but 3.0.8 WIP is not compatible with 4.11 

    It throws an error when upgrading, so I had restored 3.0.6 from backup

    Should I update umbraco to V6 ?

Please Sign in or register to post replies

Write your reply to:

Draft