Copied to clipboard

Flag this post as spam?

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


  • Barry Fogarty 493 posts 1129 karma points
    Jun 24, 2011 @ 00:29
    Barry Fogarty
    0

    Backoffic integration

    Nice package.  I have it on a usercontrol that sets member profile properties.

    Should I be able to use this in the back office - or is there a way to create a back office control from the same data set so it behaves in the same way?  Essentially I want the admins to be able to change the member's contry if they need to.

  • Eran 292 posts 436 karma points
    Jun 24, 2011 @ 01:25
    Eran
    0

    you can look at the razor code that creates the dropdown in the source code, and easily create something similar to that in your user control: a drop down that loop through dictionary items of countries names.

    after you install my package, you can look at the new installed file here

    \YourSite\macroScripts\CountriesDropdown.cshtml

     

    also, make sure to take a loot at uComponents datatype callled "country picker".

    http://our.umbraco.org/projects/backoffice-extensions/ucomponents 

     

    if you like the package please vote!

    thanks,

    Eran.

  • Barry Fogarty 493 posts 1129 karma points
    Jun 29, 2011 @ 22:43
    Barry Fogarty
    0

    Hey Eran thanks..  I would vote but cannot until I have 70 karma I'm afraid :-(

    Hey I installed uComponents, created a datatype and set up a doctype property - but I go a "Culture not SUpported Exception"  (site is using english and greek languages).  Have you installed your package alongside uComponents OK?  I am a bit stumped..

    I posted the bug here but thought I would let you know in case you had anything similar happen:

    http://ucomponents.codeplex.com/discussions/263318

  • Eran 292 posts 436 karma points
    Jun 29, 2011 @ 23:27
    Eran
    0

    hi,

    my package is not related to uComponents country picker in any way. anyway, i'm using my package along side with uComponents without any problem.

    i didnt know this error that you are taking about. the best is to ask about it in uComponents forum:

     http://our.umbraco.org/projects/backoffice-extensions/ucomponents/questionssuggestions

     

    thanks,

    Eran.

  • Barry Fogarty 493 posts 1129 karma points
    Jun 29, 2011 @ 23:34
    Barry Fogarty
    0

    OK Cheers.  Just to be clear - are you useing the uComponents country picker with multiple languages?  I read a post which suggested that uComponents does not support dictionary items as yet.  That said, it would not bother me if it was only in English as I am only using the country picker datatype in the back office.

  • Eran 292 posts 436 karma points
    Jun 29, 2011 @ 23:38
    Eran
    0

    as a matter of fact i used uComponents country picker not on multi-language site, so i can tell you if its working with dictionaries. i think that its not.

    but you know what - this is great feature to suggest them - to add multi-language by using dictionaries instead of hard coded country list. they can even take the dictionaries from my package!

  • Barry Fogarty 493 posts 1129 karma points
    Jun 29, 2011 @ 23:42
    Barry Fogarty
    0

    Yes indeed.  Thanks Eran.  I will suggest it, in the meantime I will make my own datatype for the backoffice based on your control.

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Jun 30, 2011 @ 00:25
    Lee Kelleher
    0

    Hi Barry,

    Not sure what is causing the issue you're getting with uComponents Country Picker ... tried to reproduce it, but no luck.

    uComponents Country Picker isn't using hard-coded values, nor dictionary items, the country list is generated from .NET's System.Globalization classes - which isn't the best, as it actually misses off some countries (e.g. Sudan). But still the list it comprehensive for most needs.

    I do like the idea of a DictionaryItem DropDownList data-type ... surely it's been done before?! If not, it's absolutely a candidate for uComponents. Fancy developing it?

    Cheers, Lee.

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Jun 30, 2011 @ 18:07
    Lee Kelleher
    0

    Had a look to see if there was an existing Dictionary data-type out there... then I found the Dictionary Picker that comes with Umbraco. It's not set-up as a data-type, but it's in the dropdown list of other render-controls.

    As far as I can tell, if you enter the dictionary's key in the PrevalueEditor, then it "should" render out a CheckBoxList of all the child-dictionary items. But I couldn't get this to work properly... but it's a start!

    Anyway, my offer is still open for uComponents - if you wanna develop one, we'll include it! :-)

    Cheers, Lee.

  • Barry Fogarty 493 posts 1129 karma points
    Jun 30, 2011 @ 18:35
    Barry Fogarty
    1

    Absolutely!  I'm on it.

  • Barry Fogarty 493 posts 1129 karma points
    Jun 30, 2011 @ 20:33
    Barry Fogarty
    0

    @Lee I have got something basic going as a custom datatype (via the usercontrolwrapper) - but it works!

    I could do with a pointer on how to create config/settings part though - i.e. when a user creates their datatype based on Dictionary Picker, they should get a dropdown to select the dictionary item to bind to. 

  • Barry Fogarty 493 posts 1129 karma points
    Jul 01, 2011 @ 00:53
    Barry Fogarty
    1

    Just to let anyone else know, this was not to do with the RV or uComponents packages in any way - a sample bit of code that loops through all the available cultures turned up an invalid culture on my system {tl-PH-Nokia} that seemed to have been installed with the Nokia PC Suite.

    Finally tracked the bugger down in C:\Windows\Globalization\tl-PH-Nokia.nlp

    After much uninstalling, registry hacking and hair-pulling, simply deleting this file fixed the issue.  It may help someone else one day.  Anyway thanks Lee for helping out - you rock!

  • 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