Title: Concept: Modular Content
Section: Planning your Site
File name: planning-modular.txt
Covers: Prereq: Types of Content. Talk about relationships between content and how the Views module allows you to make generalized lists of content (called "views"), including tables, calendars, grids, and simple lists. So you want to think about how to make your content modular and automate the listings. One item can be displayed in multiple places on the site.
Attribution
See https://userguide_new-drupal.dev.devdrupal.org/guidelines/guidelines.htm...
Written by https://www.drupal.org/u/jhodgdon[Jennifer Hodgdon].
Checklist for this phase
- Does it follow the template?
- Have the comments and placeholder text been removed from the template?
- Is everything the topic was supposed to cover included, and nothing extra?
- If there are @todo notes, are they clear?
- If there are images included, do they include instructions for how to redo them in a comment? (Note: Screenshots do not need to be perfect. Just make a rough cut.)
- Is attribution provided?
Comment | File | Size | Author |
---|---|---|---|
#18 | planning-modular.txt | 2.22 KB | jhodgdon |
Comments
Comment #1
Sree CreditAttribution: Sree as a volunteer and at Sogeti, Capgemini commentedWould work on this issue in next week
Comment #2
Sree CreditAttribution: Sree commentedComment #3
jhodgdonAdding checklist to issue summary.
Comment #4
jhodgdon@Sree - Do you still plan to write this topic? If so, do you have a time frame? If not, please unassign the issue so that someone else can work on it. Thanks!
Comment #5
Sree CreditAttribution: Sree commentedI am unassigning the task for now so that if someone else would like to pick this can move ahead!
Comment #6
ifrikComment #7
jfmacdonald CreditAttribution: jfmacdonald as a volunteer commentedwill work on this issue
Comment #8
jhodgdonComment #9
jhodgdon@jfmacdonald - do you still plan to work on this? Normally we like to have issues assigned when they will be worked on in the next two weeks. Thanks!
Comment #10
jhodgdonI'll go ahead and unassign this for now. Sree or jfmacdonald: If you still want to work on this, and plan to finish it within two weeks, go ahead and assign it to yourself again. Thanks!
Comment #11
batigolixJennifer, Joe: you have a particular d.o. docs page or external blog post or tutorial in mind that could serve as basis for this topic??
Comment #12
jhodgdonI don't have one in mind... this is probably new documentation to write. I could definitely take this one on if you don't want to write it.
Comment #13
jhodgdonOK, I'll write this one.
Comment #14
batigolixYes please ;)
Comment #15
jhodgdonI think this will do it, given the other topics we have.
Comment #16
jhodgdonOops, forgot index entries.
Comment #17
eojthebraveNice. This seems like a pretty challenging topic to get right, and we're on the right track for sure. Here are my thoughts after reading it over a couple of times.
I think it would be good to include a reference to structure-view-modes.txt here. View modes + views module are a super powerful way of implementing this idea of "modular" pages.
Another example of this idea that I feel like we could illustrate better here is the whole edit once, update in many places automatically. So for example in our use-case we've got a vendor content type, and a recipe content type (see also structure-adding-reference.txt). Using this, you could create a block/view that displays the vendor's information on every recipe page. Since it's dynamically pulling that content in, you can update it in one place, and the phone number (or maybe more appropriate would be market stall number) is updated everywhere right away. Which, might actually be covered by structure-reference-fields.txt, in which case maybe we should just include a link to that, and maybe add an item to the examples list on this topic that says something like, "Display information about the vendor who submitted the recipe being viewed."
Maybe this chunk could be adjusted a bit to reflect this idea:
I think the gist of it is there, it just wasn't immediately obvious to me. My first time reading this I was sort of like, how is this any different than views-concept.txt? So I think maybe we can do a better job of explaining that we're talking about using content entities, blocks, views, and maybe other elements to compose dynamic pages. Or something like that.
Is that helpful feedback? If not, I can try and think through this a bit more.
This definitely seems like a "tie all your existing knowledge together" topic.
Comment #18
jhodgdonGreat feedback!
Here's a second pass. I took out the list of what you can do with views, and replaced that with a link to the views-concept topic. I also added links to the reference fields and view modes topics. And I liked your idea of making the example be about linking vendors and recipes and how that enables edit-once-display-everywhere... hopefully this is more clear now (especially since I started a paragraph "The key idea..." :) ).
Thoughts?
Comment #19
eojthebraveContent looks good. Needs an attribution and then I can go ahead and get it committed. Thanks.
Comment #20
jhodgdonDoh.
Comment #22
jhodgdonActually, since you OKd the content, I went ahead and committed it, just to get it done since I was doing another commit anyway.