Managing your business with anyPiece/WYSIWYG Web editor/Tag

From Wikibooks, open books for an open world
Jump to: navigation, search

List of tag[edit]

As we can't really remember all the tag, we will try our best to update that tag that available for usage over here.

Master page only[edit]

Content tag[edit]

<!--ap type='content'/-->
  • Use by master page to replace the content with sub page

General[edit]

Web site title[edit]

<!--ap type='website_title'/-->

Page title[edit]

<!--ap type='page_title'/-->

Comment/remark[edit]

<!--ap type='comment'-->


<!--/ap:comment-->
  • This syntax is usually used by the developer to remark unwanted code during editing. Some of the most common area would be loading the jquery. As in anyPiece platform, jQuery is loaded up by default. If its double load, it will crash and kill the system. Please refer to the sample below.
<!--ap:comment--> 

<script type='text/javascript'>
    var ap_APIURL = "<!--ap type='api_serviceurl' /-->";
    var ap_APITOKEN = "<!--ap type='api_token' /-->";
    var ap_APIKEY = "<!--ap type='api_publickey' /-->";
    var ap_LOGINNAME = "<!--ap type='login_name' /-->";
    var ap_COMPANYID = "<!--ap type='companyid' /-->";
</script>

<script 
src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
<script 
src="http://cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.js">
</script>
<script 
src="http://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.2/jquery.cookie.min.js">
</script>

<script src="<!--ap type='weburl'/-->/script/ap_request.js"></script>
<script src="<!--ap type='weburl'/-->/script/ap_loginout.js"></script>
<script src="<!--ap type='weburl'/-->/script/ap_control.js"></script>

<!--/ap:comment-->