From ea15ccff9d7b58568b479f454f85cae30cbc2fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20M=C3=BCller?= Date: Mon, 16 Jun 2014 18:34:25 +0200 Subject: [PATCH] Update README.md --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 86b2a85..36cd554 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,29 @@ zenpage_macros =============== A Zenphoto plugin to provide various content macros for Zenpage CMS items. -See file header for documentation. +For content/extra content of a Zenpage page or news article: + +``` +[PAGECONTENT <header string>] +[PAGEEXTRACONTENT <titlelink> <publish true|false>] +[NEWSCONTENT <titlelink> <publish true|false> <title true|false> <header string>] +[NEWSEXTRACONTENT <titlelink> <publish true|false>] +``` + +Excerpts of the direct subpages (1 level) of the current Zenpage page: + +``` +[SUBPAGES <headline> <excerpt length> <readmore text> <shortenindicator text>] +``` + +All are optional, set to empty quotes ('') if you only want to set the last one for example. + +This generates the following html: + +```html +<div class='pageexcerpt'> + <h3>page title</h3> + <p>page content excerpt</p> + <p>read more</p> +</div> +```