Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promoted Items - how it should work, and what is there now #5

Open
left23 opened this issue Aug 25, 2017 · 0 comments
Open

Promoted Items - how it should work, and what is there now #5

left23 opened this issue Aug 25, 2017 · 0 comments

Comments

@left23
Copy link
Member

left23 commented Aug 25, 2017

Hi everyone,

Again on @e0ipso's prompt, I am adding this issue here so we can have a wider discussion, as this might be applicable to all consumers.

See https://www.drupal.org/files/issues/1%20-%20Umami%20Front%20wirefame%20v4.png
and http://umami.emc23.com (contenta_ember demo - WIP)

Note the first element: the Promoted Items. The first item has "Our recipe pick", and then "type" on the second and third item.

*In order to test this properly in your consumer, you can use http://contenta.eclecticmeme.com source. Only a few nodes are set as promoted here, whereas http://live-contentacms.pantheonsite.io has most nodes promoted. Both data sources are subject to change.

What we have now:

Currently http://live-contentacms.pantheonsite.io has only Recipe and Article (with only one piece of content) content types. I am assuming article is the same as feature, for now.

Contenta_ember-specific details:
More here: contentacms/contenta_ember#4

  1. This element is the index.hbs, meaning it is in the content outlet area of the app i.e. It is the frontpage content
  2. For the items loops, I use .firstObject and assign it a different component (just for the template file, because it's only markup) so I can achieve a different layout (title above image and 50% width).
  3. FilterByPromoted action is currently limited to recipes content type.

This is how I think that area should work:

  1. Need to access articles, recipes, and maybe other (or all) content types. Depends whether the criteria is type-specific, or only that a node has the promoted flag. More info here: https://github.com/contentacms/contenta_jsonapi/blob/8.x-1.x/docs/demos-consumers-implementation-guidelines.md#front-page
  2. Nice to have - This should be a feature that can be added anywhere i.e. not limited to the frontpage content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant