Created
December 12, 2013 22:00
-
-
Save iso100/7936342 to your computer and use it in GitHub Desktop.
Revisions
-
iso100 created this gist
Dec 12, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,49 @@ quote.yaml ~~~ fields: quote_body: type: redactor display: Quote Body required: true quote_cite: type: text display: Citation content: type: hidden ~~~ Relevant section of page.yaml where quotes are referenced: ~~~ quote: display: Related Quote type: suggest instructions: Select a quote to assign to this page. max_items: 1 allow_blank: true placeholder: "Choose a quote..." content: folder: quotes label: title value: url type: entries ~~~ Template code for rendering the quote: ~~~ {{ if quote }} {{ get_content from="{ quote }" }} <div class="portlet quote-content"> <h3>Quotes</h3> <blockquote> {{ quote_body }} <cite>{{ quote_cite }}</cite> </blockquote> </div> {{ /get_content }} {{ endif }} ~~~