Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Mar 18, 2012 @ 10:56
    Anthony Candaele
    0

    implement a jobs property to a membertype

    Hi,

    For a jobs website I'm currently working on, I want to implement the scenario where a jobcandidate can apply for a job in a list of jobs.

    If the jobseeker applies for a job, the job should be added to his member profile.

    Therefore I want to extend the jobseeker membertype with a jobs property that holds all jobs the jobseeker has applied for.

    Should I develop a custom data type for this, or can this be accomplished with the default data types in Umbraco?

    Thanks for your advise,

    Anthony

  • Anthony Candaele 1197 posts 2049 karma points
    Mar 18, 2012 @ 14:51
    Anthony Candaele
    0

    now that start to think about it, I guess my jobs property on the jobseeker member type should hold a list of jobid's. Is there a data type that can be used for this?

  • Mike Chambers 621 posts 1203 karma points c-trib
    Mar 19, 2012 @ 10:16
    Mike Chambers
    1

    CheckboxList? or DropdownMultiple?

     

    [http://our.umbraco.org/wiki/reference/default-datatypes]

  • Anthony Candaele 1197 posts 2049 karma points
    Mar 19, 2012 @ 13:38
    Anthony Candaele
    0

    Hi Mike,

    I gave it some further thought, and basically, I just need a datatype that holds a list of jobid's, like '21,25,85,...'

    Is their a datatype that is fit for this?

    Thanks for your help,

    Anthony

  • Mike Chambers 621 posts 1203 karma points c-trib
    Mar 19, 2012 @ 13:49
    Mike Chambers
    0

    Just my thoughts....

    From an admin point of view how are you looking up titles if all you have is a list of id's? Also how would you admin adding a new job title?

    Whilst it may make sense to you looking at a member's properties and seeing id's that you recognise, for anyone else it's just numbers?

    if all you want is to be able to have a comma separated list of values, then not sure why a simple textstring input won't suffice?

     

    Saying that maybe you might look at uComponents and the TextstringArray datatype? (although as lee says its best used for key/value pairs and tuples etc)

    http://ucomponents.codeplex.com/wikipage?title=TextstringArray&referringTitle=Documentation

     

  • Anthony Candaele 1197 posts 2049 karma points
    Mar 19, 2012 @ 14:23
    Anthony Candaele
    0

    Hi Mike,

    thanks for the advice. I have created a user control to let employers add a job. These jobs are then added to the back office content tree:

    With the umbraco.NodeFactory api I can access every jobnode using it's id. Later on I would like to enable a jobseeker to access a webpage with a list of all the jobs he applied for. Therefore I want to add a 'Jobs' property to the Jobseeker membertype. This Jobs-property needs to hold all the jobnode id's that the jobseeker applied for.

    Thanks for the uComponents reference, I definitly have a look at this.

    greetings,

    Anthony

  • Mike Chambers 621 posts 1203 karma points c-trib
    Mar 19, 2012 @ 15:14
    Mike Chambers
    0

    As it's in the content tree you could also use the "ultimate content picker" deafult datatype?

    http://leekelleher.com/2009/09/08/umbraco-ultimate-picker-xslt-example/ as a coded example.

     

    FYI you do know that umbraco.NodeFactory will only give you the published nodes datasource.... :-)

  • Anthony Candaele 1197 posts 2049 karma points
    Mar 19, 2012 @ 16:03
    Anthony Candaele
    0

    Thanks for the information Mike.

    Yes I do know that. The jobseeker will only see published jobs as job posts by an employer need to be approved (and published) by the site admin.

    greetings,

    Anthony

  • Anthony Candaele 1197 posts 2049 karma points
    Mar 24, 2012 @ 14:01
    Anthony Candaele
    0

    Hi Mike,

    Just to let you know that I implemented this using the uComponents TextString Array data type.:

    The only thing I needed to solve was how to add a selected job to the uComponents TextString Array data type programmaticaly from a user control. Mr uComponents himself helped me out with this:

    http://our.umbraco.org/forum/using/ui-questions/30170-setting-values-for-uComponents-TextString-Array?p=0#comment112097

    Thanks for your help,

    Anthony

  • 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