• Resolved s1dekick223

    (@s1dekick223)


    Hey Guys,

    hey have a short and hopefully simple question.

    I wanna make a site where i can enter a recipe a day so i want to output the recipe for the day but i want to ouput a weekly shopping list as well, so is there a way to add ‘Eggs, 4’ on Monday with ‘Eggs 6’ on Friday so that the weekly shopping list outputs 10 Eggs?

    Thank you :)!

    Sincerly

    s1de

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    No functionality like that built into the plugin specifically, but maybe a setup of 2 fields. 1 for total amount, 1 for product. Then you could do some math on the total amount fields and echo out the end results.

    Thread Starter s1dekick223

    (@s1dekick223)

    You’re damn right yes thank you.

    But in this opinion i think in my case i need a nested group is there a feat. or a upcoming feat. for this or is the only way to do this a group with repeatable entrys?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    not necessarily, though probably ideally. Should be technically able to get something working, it just wouldn’t necessarily all be in one metabox. More spread out among a handful.

    Thread Starter s1dekick223

    (@s1dekick223)

    You say it’s technically possible in which context?
    i can do nested groups now? or cmb2 have the technical aspect to do this in the future?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’m saying you can create repeatable groups of fields. They won’t be nested repeating groups, which I’m aware is a desired feature by many, but at a top level point of view, that much can be done now.

    Repeated groups, closed: https://cloudup.com/crh5m_uZ08t

    Multiple fields for each group: https://cloudup.com/cbhXiltlA6X

    What’s not really possible at the current state of CMB2 is having a repeater field inside each group there. However, with 2 text inputs inside the top-most group, you’d be fine

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to calculate with Inputs’ is closed to new replies.