{page_desc}
To add these macros on your web pages, we recommend you to read the article "Macro Language To Create Dynamic Web Pages". This article show you the concept and implementation of macro language used on ChakraWeb environment. We welcome to receive critique and comment about these macro, or you may have idea about new macros to be added here. Please send your feedback to chakraweb@quick4all.com.
Table Of Content | : | ChakraWeb Information, Homepage
Information, Page Attribute, Visitor
Information, Menu, List, Images,
Advertising Text, Form, Miscellanuous. |
MACRO | DESCRIPTION | EXAMPLE |
ChakraWeb Information | ||
{~powered_by_chakraweb} | Image "Powered by Chakraweb" | {powered_by_chakraweb} |
{~made_by_chakraweb} | Quick4All Information about this product | {made_by_chakraweb} |
Homepage Information | ||
You can change several values of the macros below from Control Panel. | ||
{~hp_name} | Homepage Name | {hp_name} |
{~hp_url} | Homepage URL | {hp_url} |
{~hp_slogan} | Homepage Slogan | {hp_slogan} |
{~hp_desc} | Homepage description | {hp_desc} |
{~hp_keywords} | Homepage keywords | {hp_keywords} |
{~hp_visitors} | Count of total visitors of this website | {hp_visitors} |
{~hp_hits} | Count of total hits of this website | {hp_hits} |
{~hp_visited_since} | Visited dated | {hp_visited_since} |
{~hp_intvar:keyword} | Show the content of table sysvarint with the keyword | {~hp_intvar:hp_hits} {hp_intvar:hp_hits} |
Page Attribute | ||
{~page_title} | Title of page | {page_title} |
{~page_desc} | Page description | {page_desc} |
{~page_keywords} | Page keywords | {page_keywords} |
{~page_author} | Author of the page | {page_author} |
{~page_source} | Source information of the page | {page_source} |
{~author_profile} | Show author profile | {author_profile} |
{~author_profile:right} | Show author profile on the right side | {author_profile:right} |
{~see_also} | Show "See Also" section | {see_also} |
{~see_also:right} | Show "See Also" section on the right side | {see_also:right} |
Visitor Information | ||
{~member_fullname} | Full name of visitor with salutation | {member_fullname} |
{~member_name} | Name of visitor with salutation | {member_name} |
{~m_fullname} | Full name of visitor | {m_fullname} |
{~m_name} | Name of visitor | {m_name} |
Menu | ||
{~subfolder_menu} | Show the sub-folder list as menu | {subfolder_menu} |
{~subfolder_menu:url_path:title} | Show the sub-folder list of url_path as menu with title | {~subfolder_menu:/:Example} {subfolder_menu:/:Example} |
{~file_menu} | Show all files on the current folder as menu | {file_menu} |
{~file_menu:url_path:title} | Show all files on the folder url_path as menu | {~file_menu:/:Example} {file_menu:/:Example} |
{~article_menu} | Same as {~file_menu} | See the example above. |
{~article_menu:url_path:title} | Same as {~file_menu:url_path:title} | See the example above. |
{~mgmt_menu} | Show web management menu. (Only shown if the visitor have right to write on this website). | {mgmt_menu} |
List | ||
{~subfolder_list} | Show sub-folder list of the current folder | {subfolder_list} |
{~subfolder_list:url_path:title} | Show sub-folder list of folder url_path | {~subfolder_list:/:Example} {subfolder_list:/:Example} |
{~file_list} | Show file list of this folder | {file_list} |
{~file_list:url_path:title} | Show file list from other folder | {~file_list:/:Example} {file_list:/:Example} |
{~file_list2} | Show file list of this folder (the title only) | {file_list2} |
{~file_list2:url_path:title} | Show file list from other folder (the title only) | {~file_list2:/:Example} {file_list2:/:Example} |
{~article_list} | Show file list of this folder as an article form. | {article_list} |
{~article_list:url_path:title} | Show file list from other folder as an article form. | {~article_list:/:Example} {article_list:/:Example} |
{~faq_list} | Show file list of this folder as a faq. form. | {faq_list} |
{~faq_list:url_path:title} | Show file list from other folder as a faq form. | {~faq_list:/:Example} {faq_list:/:Example} |
{~link_list} | Show link list of this folder ini. | {link_list} |
{~link_list:url_path:title} | Show link list of other folder. | {~link_list:/Links/PHP/:Example} {link_list:/Links/PHP/:Example} |
{~comment_list:start:count:title} | Show visitor comment to this page. | {~comment_list:0:2:Example} {comment_list:0:2:Example} |
{~news_list:start:count} | Show news on this website. | {~news_list:0:2} {news_list:0:2} |
{~news_list2:start:count} | Show news on this website (title only) | {~news_list2:0:2} {news_list2:0:2} |
{~news_box:max:title:url} | Show news on this website on the box. | {~news_box:2:Example:/News/index.html} {news_box:2:Example:/News/index.html} |
{~feedback_list:start:count} | Show visitor feedbacks. | {~feedback_list:0:2} {feedback_list:0:2} |
{~feedback_box:max:title:url} | Show visitor feedbacks on the box. | {~feedback_box:2:Example:/Feedback/index.html} {feedback_box:2:Example:/Feedback/index.html} |
Images | ||
{~img:image_url} | Show image on the center of the page. | {~img:/images/logo.gif} {img:/images/logo.gif} |
{~img:image_url:label:url_target} | Show image on the center of the page with label and target url. | {~img:/images/logo.gif:Company
Logo:/index.html} {img:/images/logo.gif:Company Logo:/index.html} |
{~img_center:image_url} | Show image on the center of the page. | {~img_center:/images/logo.gif} {img_center:/images/logo.gif} |
{~img_center:image_url:label:url_target} | Show image on the center of the page with label and target url. | {~img_center:/images/logo.gif:Company
Logo:/index.html} {img_center:/images/logo.gif:Company Logo:/index.html} |
{~img_left:image_url} | Show image on the left side of the page. | {~img_left:/images/logo.gif} {img_left:/images/logo.gif} |
{~img_left:image_url:label:url_target} | Show image on the left side of the page with label and target url. | {~img_left:/images/logo.gif:Company
Logo:/index.html} {img_left:/images/logo.gif:Company Logo:/index.html} |
{~img_right:image_url} | Show image on the left side of the page. | {~img_right:/images/logo.gif} {img_right:/images/logo.gif} |
{~img_right:image_url:label:url_target} | Show image on the left side of the page with label and target url. | {~img_right:/images/logo.gif:Company
Logo:/index.html} {img_right:/images/logo.gif:Company Logo:/index.html} |
Advertising Text | ||
{~advtext:keywords} | Show advertising text with keyword as parameter. You can manage the list by Control Panel | {~advtext:example} {advtext:example} |
{~advrnd:keywords} | Show random advertising text with keyword as parameter. You can manage the list by Control Panel | {~advrnd:example} {advrnd:example} |
Form | ||
{~login_form} | Show login form | {login_form} |
{~search_form} | Show search form | {search_form} |
{~redirect_form} | Show form to add redirect page | --no example-- |
{~comment_form} | Show visitor comment form. (Only active when they login to this website) | --no example-- |
{~news_form} | Show add new news form. (For administrator only) | --no example-- |
{~feedback_form} | Show feedback form. | --no example-- |
{~link_form} | Show add link form. | --no example-- |
{~rating_form} | Show rating form. | {rating_form} |
Miscellanuous | ||
{~style:style_name:text} | Show text with CSS style | {~style:quote:Example Quote} {style:quote:Example Quote} |
{~style:style_name:$makro_lain} | Show other macro with CSS style. | {~style:info:$page_desc} {style:info:$page_desc} |
{~file_include:file_name} | Include file content from direktori /_lang/en/ | {~file_include:ztest.htm} {file_include:ztest.htm} |
{~redirect_table} | Show all redirect pages from current folder | --no example-- |
{~macro:keywords} | Show macro text. You can maintain the list by Control Panel. | {~macro:feedback} {macro:feedback} |