diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-06 17:31:22 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-06 17:31:22 -0700 |
commit | ec1dcb8f2eccfd1a0dfc9c7eccea788a4b385e41 (patch) | |
tree | 23b11b256e942ce408d305b509bc1c0ddaaed4ce /doc | |
parent | 7cbc5048743bc5976e48cd3f81801550c0b7f52f (diff) | |
parent | f5e439236c91134efab7bc04c2c98c23a81dc03d (diff) | |
download | volse-hubzilla-ec1dcb8f2eccfd1a0dfc9c7eccea788a4b385e41.tar.gz volse-hubzilla-ec1dcb8f2eccfd1a0dfc9c7eccea788a4b385e41.tar.bz2 volse-hubzilla-ec1dcb8f2eccfd1a0dfc9c7eccea788a4b385e41.zip |
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts:
util/messages.po
Diffstat (limited to 'doc')
-rw-r--r-- | doc/webpages.bb | 80 |
1 files changed, 78 insertions, 2 deletions
diff --git a/doc/webpages.bb b/doc/webpages.bb index 780bde45c..040ad0c5c 100644 --- a/doc/webpages.bb +++ b/doc/webpages.bb @@ -2,13 +2,89 @@ Red enables users to create static webpages. To activate this feature, enable the web pages feature in your Additional Features section.
-Once enabled, a new tab will appear on your channel page labelled "Webpages". Clicking this link will take you to the webpage editor. Here you can create a post using either BBCode or the rich text editor.
-
+Once enabled, a new tab will appear on your channel page labelled "Webpages". Clicking this link will take you to the webpage editor.
Pages will be accessible at mydomain/page/username/pagelinktitle
The "page link title" box allows a user to specify the "pagelinktitle" of this URL. If no page link title is set, we will set one for you automatically, using the message ID of the item.
Beneath the page creation box, a list of existing pages will appear with an "edit" link. Clicking this will take you to an editor, similar to that of the post editor, where you can make changes to your webpages.
+
+[b]Using Blocks[/b]
+
+Blocks can be parts of webpages. The basic HTML of a block looks like this
+[code]
+ <div>
+ Block Content
+ </div>
+
+[/code]
+
+If a block has text/html content type it can also contain menu elements. Sample content of
+[code]
+ <p>HTML block content</p>
+ [menu]menuname[/menu]
+
+[/code]
+will produce HTML like this
+[code]
+ <div>
+ <p>HTML block content</p>
+ <div>
+ <ul>
+ <li><a href="#">Link 1</a></li>
+ <li><a href="#">Link 2</a></li>
+ <li><a href="#">Link 3</a></li>
+ </ul>
+ </div>
+ </div>
+
+[/code]
+
+Via the $content macro a block can also contain the actual webpage content. For this create a block with only
+[code]
+ $content
+
+[/code]as content.
+
+To make a block appear in the webpage it must be defined in the page layout inside a region.
+[code]
+ [region=aside]
+ [block]blockname[/block]
+ [/region]
+
+[/code]
+
+The block appearance can be manipulated in the page layout.
+
+Custom classes can be assigned
+[code]
+ [region=aside]
+ [block=myclass]blockname[/block]
+ [/region]
+
+[/code]
+will produce this HTML
+[code]
+ <div class="myclass">
+ Block Content
+ </div>
+
+[/code]
+
+Via the wrap variable a block can be stripped off its wrapping <div></div> tag
+[code]
+ [region=aside]
+ [block][var=wrap]none[/var]blockname[/block]
+ [/region]
+
+[/code]
+will produce this HTML
+[code]
+ Block Content
+
+[/code]
+
+
#include doc/macros/main_footer.bb;
|