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.
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?
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!!!!
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
Is the correct view in place?
Tim,
It is in umbraco\Plugins\umbracoContour\Views on my laptop and on the server.
Regards
Ismail
Comment author was deleted
Mind adding some test copy to it to make sure it is being used :)
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
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
Ok great it's sorted :)
is working on a reply...