ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How To Set This Up In Backend? Channel Fields?

October 17, 2012 8:53pm

Subscribe [2]
  • #1 / Oct 17, 2012 8:53pm

    nyc

    66 posts

    A bit confused with this one, maybe because of how it’s laid out but here is an image: http://d.pr/i/69SE

    Only part I can think of how to do would be the notes section, but for the others its a little confusing for me since the content is laid out like a table.

    How would I deal with something like that?

  • #2 / Oct 18, 2012 3:51pm

    Robin Sowell

    13255 posts

    Hrm.  Just brainstorming:

    1. Relationships.  Each ‘Day’ is in a ‘day’ channel.  The notes go there.  Each exercise in a ‘exercise’ channel- has fields for number of reps, alternatives, etc.  Each exercise then relates to a single day- show the table using reverse related tag.
    2.  Matrix third party offering- you pretty much put them in a table.  Easier to see than explain.  So- all of it goes in a single entry.

    If there always the same number of exercises, could just do it with a custom field for each bit of data.  Pretty much same as if you did it via Matrix field- except the number of fields/rows would be static.

    Which one I’d go with would depend a lot on whether exercises work best independent of a particular day.

    And how you’d do the table design is going to vary a bit with which option you go with.  Hope that sparks some ideas for you.

  • #3 / Oct 22, 2012 2:40pm

    nyc

    66 posts

    Thanks for the reply robin!

    One thing that I did forget to mention is there will be 30 Days in each guide.. so what this actually is are workout routines and it will have Day 1, Day 2, Day 3, etc all the way up to Day 30.  So I’m not sure if it would work to set it up as individual channels that way, but what I thought could maybe work after reading your idea is creating a workout routine channel and then the channel fields for each day.. so would be something like:

    day1_title

    day1_exercise_1
    day1_sets_1
    day1_reps_1
    day1_alt_1

    day1_exercise_2
    day1_sets_2
    day1_reps_2
    day1_alt_2

    day1_exercise_3
    day1_sets_3
    day1_reps_3
    day1_alt_3

    day1_exercise_4
    day1_sets_4
    day1_reps_4
    day1_alt_4

    day1_notes

    So it would be like this for each day going all the way down to day30.  I’m not sure if this is the best way to do this though or if there is an easier way.. any thoughts?

  • #4 / Oct 23, 2012 4:50pm

    Dan Decker

    7338 posts

    Hi nyc,

    I’d like to chime in here, too.

    Given the broader run-down, I think the Matrix option would provide you the best long term flexibility.

    That way, each day (1 - 30) would be a channel entry and the list of day to day exercises would be rows in the Matrix.

    That way you can manage each day independently, and modify the options if needed.

    Just some thoughts.

    Cheers!

  • #5 / Oct 23, 2012 7:22pm

    nyc

    66 posts

    ill look into matrix thakns dan!

  • #6 / Oct 23, 2012 11:32pm

    Roi Agneta

    352 posts

    Matrix is absolutely the way to go on this!

  • #7 / Oct 24, 2012 9:06pm

    Dan Decker

    7338 posts

    Hi nyc,

    Excellent!

    Is there anything else I can assist you with?

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases