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?
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)
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.
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:
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
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?
CheckboxList? or DropdownMultiple?
[http://our.umbraco.org/wiki/reference/default-datatypes]
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
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
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
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.... :-)
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
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
is working on a reply...
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.