content_block
function content_block($code, $name)
Inserts editable content block into a page. Use it for creating on a page editable areas which other users can edit in WYSIWYG mode.
Parameters
- $code - string. Specifies a content block code. This parameter used by LemonStand for identifying code blocks. Content block codes can contain only didgits, Latin letters and underscore characters.
- $name - string. Specifies a content block name. Name is used as a title for WYSIWYG editor on the Edit Page Content page.
Return value
This function has no return value. It outputs block content to the browser.
Examples
The following code creates two content blocks on a page.
<? content_block('our_goals', 'Our goals') ?>
<? content_block('our_contacts', 'Our contacts') ?>If LemonStand finds that page contains content blocks, it displays Edit Content menu item in the page popup menu in page list.

The Edit Content link opens the page content editor:

Next: global_content_block
Previous: checkbox_state
Return to Reference


Comments
No comments posted so far.
Add your comment
Loading form...