Outputting Channel Entries within a Channel Categories tag

Aperta
#55 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
php
Ambito
documentation

Direzione di ricerca

Start with docs/channels/categories.html, the page linked in the issue, and check how it documents the {exp:channel:categories} loop and nested {exp:channel:entries} tags. Add an example showing entries grouped by category, then confirm the page explains the result and the example follows the guide’s conventions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Suggested Change
It would be nice to have an example of how to output Channel Entries data, within a Channel Categories loop, on this page https://docs.expressionengine.com/latest/channels/categories.html

Reasoning
I've done this before for a couple of sites (and have just done it again) but I'm not sure it's a well known (or documented) method.

Additional context
I use this method to display all the Entries within the Categories contained in a specific Channel. eg. All the cars, vans and minibuses contained in a rental vehicles channel.
This method allows me to group all the vehicles on the page, by their category. ie. All the vans first, then all the cars and then all the minibuses.

{exp:channel:categories channel="vehicle" style="linear"}
{exp:channel:entries channel="vehicle" category="{category_id}" dynamic="no"}
vehicle data
{/exp:channel:entries}
{/exp:channel:categories}

Lingua principale
CSS
Stelle
22
Fork
79
Merge medio
2g 1h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ExpressionEngine/ExpressionEngine-User-Guide

Tutte le issue di ExpressionEngine/ExpressionEngine-User-Guide

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.