Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jun 28, 2013 @ 10:58
    Ismail Mayat
    0

    Country picker issue

    Guys,

    I have created a contour field picker for countries using post http://our.umbraco.org/forum/umbraco-pro/contour/27135-country-picker-in-Contour I am getting a really weird issue. The website uses shared database which sits on dev server. Using umbraco 611 and latest contour the razor macro is being used.  I have created a razor view for the picker.

    So on localhost all works fine I can pick and use the country picker and form submits etc.  

    On my dev server the country picker field shows but no countries in the drop down.  When I log into the back office and view the country picker field on the form I can see countries (I have added same code to RenderPreview in the field picker class). I have checked log files I also have live logger running but I get no errors.

    Anyone any ideas.

    Regards

     

    Ismail

  • Comment author was deleted

    Jun 28, 2013 @ 11:00

    Is the correct view in place?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jun 28, 2013 @ 11:03
    Ismail Mayat
    0

    Tim,

    It is in umbraco\Plugins\umbracoContour\Views on my laptop and on the server.

    Regards

    Ismail

  • Comment author was deleted

    Jun 28, 2013 @ 11:10

    Mind adding some test copy to it to make sure it is being used :)

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jun 28, 2013 @ 11:15
    Ismail Mayat
    0

    Tim,

    Ok I added word test to the Fieldtype.CountryPicker.cshtml razor file and on localhost test content appears but not on dev. So it would seem as though on dev its not using that file. The files on dev are deployed by automated build so locations will be the same. Maybe its a permissions issue?

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jun 28, 2013 @ 11:33
    Ismail Mayat
    0

    Tim,

    Fixed. So the field is called Regions. Initially this was prevalue field and it had its own razor file in the forms guid folder. I then updated this field to use new country picker. Deleted the razor file and checked in etc but my build does not remove old files. So it was still there. I removed that file and now it all works woooot!!!!

    Regards

    Ismail

  • Comment author was deleted

    Jun 28, 2013 @ 11:52

    Ok great it's sorted :)

Please Sign in or register to post replies

Write your reply to:

Draft