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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sree’s picture

Would work on this issue in next week

Sree’s picture

Assigned: Unassigned » Sree
jhodgdon’s picture

Issue summary: View changes

Adding checklist to issue summary.

jhodgdon’s picture

@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!

Sree’s picture

Assigned: Sree » Unassigned

I am unassigning the task for now so that if someone else would like to pick this can move ahead!

ifrik’s picture

Issue tags: +Barcelona2015
jfmacdonald’s picture

Assigned: Unassigned » jfmacdonald

will work on this issue

jhodgdon’s picture

Issue summary: View changes
jhodgdon’s picture

Version: » 8.x-0.x-dev

@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!

jhodgdon’s picture

Assigned: jfmacdonald » Unassigned

I'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!

batigolix’s picture

Jennifer, 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??

jhodgdon’s picture

I 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.

jhodgdon’s picture

Assigned: Unassigned » jhodgdon

OK, I'll write this one.

batigolix’s picture

Yes please ;)

jhodgdon’s picture

Status: Active » Needs review
FileSize
1.81 KB

I think this will do it, given the other topics we have.

jhodgdon’s picture

FileSize
1.91 KB

Oops, forgot index entries.

eojthebrave’s picture

Status: Needs review » Needs work

Nice. 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."

Smaller sections of pages can also be generated as composites. For instance,
your site could display a list of the most recently added recipes in a
sidebar. Once that is set up, the list would automatically be updated whenever a
new recipe is added to the site, without having to go edit another page to keep
the list current.

Maybe this chunk could be adjusted a bit to reflect this idea:

Smaller sections of pages can also be generated as composites. For instance,
your site might display a vendor profile page with two columns, one contains the information
from the vendor content entity, and the other contains a list of the recipes that the vender has added.
Once that is set up, the list would automatically be updated whenever a vendor adds a new recipe to the site,
without having to go and edit the vendor's profile page to keep the list current.

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.

jhodgdon’s picture

Status: Needs work » Needs review
Issue tags: -Barcelona2015
FileSize
2.22 KB

Great 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?

eojthebrave’s picture

Status: Needs review » Needs work

Content looks good. Needs an attribution and then I can go ahead and get it committed. Thanks.

jhodgdon’s picture

Issue summary: View changes
Status: Needs work » Reviewed & tested by the community

Doh.

Written by https://www.drupal.org/u/jhodgdon[Jennifer Hodgdon].

  • jhodgdon committed 3d8aa9a on 8.x-0.x
    Issue #2541612 by jhodgdon: Write planning-modular.txt
    
jhodgdon’s picture

Status: Reviewed & tested by the community » Fixed

Actually, since you OKd the content, I went ahead and committed it, just to get it done since I was doing another commit anyway.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.