Copied to clipboard

Flag this post as spam?

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


  • Simon 692 posts 1068 karma points
    Jul 01, 2016 @ 09:39
    Simon
    0

    Umbraco CMS - Fields according content picked

    Hi guys,

    Hope you're fine.

    The title might be mislead but I didn't know exactly how I was going to place text to describe my query.

    Basically, I have this type of scenario to tackle:

    enter image description here

    Basically, when a user add a new job, there is a content picker which will choose clients associated with the job.

    Then,, user can add multiple Job Instructions for the job. Now, Job instruction need to have a list of Job Split, which means that for each client selected in the Job Node need to set a number (percentage).

    So if selects 3 clients, for each job instruction, I need to have three places, text-strings, where I can set the percentage value for each client.

    I would appreciate any help or enlightenment regarding my query.

    Thank you in advance.

  • David Peck 690 posts 1896 karma points c-trib
    Jul 01, 2016 @ 11:51
    David Peck
    0

    I'm not sure on what your query is. I'm guessing it is, "How the hell do I model this in Umbraco?"

    You could just create a custom property editor and store all the data as JSON in the db.

    Alternatively you could just save all this data in your own custom DB tables and keep it out of Umbraco all together. If you write a dashboard widget then you can still have your UI for editing this within the back office.

  • Simon 692 posts 1068 karma points
    Jul 01, 2016 @ 11:55
    Simon
    0

    Hi David,

    I have already implement it the tables as document types in umbraco, but when comes to thing where I would need fields according to the clients chosen from the content picker, I'm stucked.

  • David Peck 690 posts 1896 karma points c-trib
    Jul 01, 2016 @ 11:59
    David Peck
    0

    You might be able to get away with using nuPickers and one of the DotNet data sources. That passes a context id (which I'm guessing is the page id) to your IDotNetDataSource class and you could then do the relevant work in C# in order to return the correct value.

  • 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