Hi

We are currently working on a tutorial which also shows what you are asking 
for. Unfortunately it has not yet published.
However, the example code is already available.
Beside other things, i have created a component which renders a list of items 
of "My first content app". The component is called "content-items-list".
When adding the component, you can select a folder from "My first content app" 
(latest version!) - it will render all the items of the folder.

So ... here are the links:


Template definition:
=> 
https://git.magnolia-cms.com/projects/DOCUMENTATION/repos/my-first-website-tutorial/browse/light-modules/one-pager-module/templates/components/content-items-list.yaml

Template script:
https://git.magnolia-cms.com/projects/DOCUMENTATION/repos/my-first-website-tutorial/browse/light-modules/one-pager-module/templates/components/content-items-list.ftl

Dialog definition:
https://git.magnolia-cms.com/projects/DOCUMENTATION/repos/my-first-website-tutorial/browse/light-modules/one-pager-module/dialogs/components/content-items-list.yaml

(You also may want to download the complete light module which includes a page 
template and some components; => 
https://git.magnolia-cms.com/projects/DOCUMENTATION/repos/my-first-website-tutorial/browse/downloads)


Please do not expect me to answer questions concerning the tutorial here before 
it is public ... however the mentioned files may help you. Selecting and 
rendering just one item (instead of a list) is similar, actually more easy.

So to summarize the strategy:
Create a dialog to select an item.
In the template script search the appropriate content node and render it. 
That's all :-)

I hope that helps a bit,
cheers,
 Christoph

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=90b09d3d-af2a-4758-9dbc-cf3c16a3ac79


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to