<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ToolBox &#187; Scripting</title>
	<atom:link href="http://schindlwick.com/toolbox/tag/scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://schindlwick.com/toolbox</link>
	<description>Accelerate Casewise Software Components</description>
	<lastBuildDate>Sun, 25 Jul 2010 10:42:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Scripting in Corporate Publisher &#8211; Basic Knowledge</title>
		<link>http://schindlwick.com/toolbox/2010/01/scripting-in-corporate-publisher-basic-knowledge/</link>
		<comments>http://schindlwick.com/toolbox/2010/01/scripting-in-corporate-publisher-basic-knowledge/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 13:00:05 +0000</pubDate>
		<dc:creator>Schindlwick</dc:creator>
				<category><![CDATA[CP Scripting]]></category>
		<category><![CDATA[Corporate Publisher]]></category>
		<category><![CDATA[ToolBox]]></category>
		<category><![CDATA[Casewise]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://schindlwick.com/toolbox/?p=85</guid>
		<description><![CDATA[orporate Publisher allows you add automatically  "variable information" to output the content of Corporate Exchange (underlying database).

The purpose of this functionality is to automatically add some text to the output HTML when the HTML pages are published. Corporate Publisher users add a "variable" to their textual content which is then replaced in the HTML with the value it represents at the time of publication.

This functionality helps the Corporate Publisher user in a number of ways, allowing them to add one piece of text to multiple documents, control where that text is output, replace that text with "current values" in the model, and choose whether or not to represent that text based on conditions.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fschindlwick.com%2Ftoolbox%2F2010%2F01%2Fscripting-in-corporate-publisher-basic-knowledge%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fschindlwick.com%2Ftoolbox%2F2010%2F01%2Fscripting-in-corporate-publisher-basic-knowledge%2F" height="61" width="51" /></a></div><p>Corporate Publisher allows you add automatically  &#8221;variable information&#8221; to output the content of Corporate Exchange (underlying database).</p>
<p>The purpose of this functionality is to automatically add some text to the output HTML  when the HTML pages are published. Corporate Publisher users add a &#8220;variable&#8221; to  their textual content which is then replaced in the HTML with the value it  represents at the time of publication.</p>
<p>This functionality helps the Corporate Publisher user in a number of ways,  allowing them to add one piece of text to multiple documents, control where that  text is output, replace that text with &#8220;current values&#8221; in the model, and choose  whether or not to represent that text based on conditions.<br />
</p>
<h1>Where to add CP Scripting?</h1>
<div id="attachment_144" class="wp-caption alignright" style="width: 160px">Please <a href="http://schindlwick.com/toolbox/wp-login.php?redirect_to=/toolbox/tag/scripting/feed/">Login</a> or <a href="http://schindlwick.com/toolbox/wp-login.php?action=register">Register</a> to see the link.<p class="wp-caption-text">Corporate Publisher Editor</p></div>
<div id="_mcePaste">Corporate Publisher will ‘parse’ embedded HTML output for defined scripting ommands. ‘Embedded HTML output’ is considered any of the following:</div>
<div id="_mcePaste">
<ul>
<li>Contents of the ‘<strong>Global HTML</strong>’ Publication Set Property</li>
<li>Contents of the ‘<strong>HTML Header</strong>’ Publication Set Property</li>
<li>Contents of the ‘<strong>HTML Footer</strong>’ Publication Set Property</li>
<li>Contents of multi-line text properties of any published object.</li>
</ul>
</div>
<h1>What is the Format of CP Scripting Commands?</h1>
<h2>As part of Global HTML, HTML Header or HTML Footer</h2>
<p>The command is written as a HTML comment using the following format:</p>
<p><strong><span style="color: #0000ff;">&lt;!&#8211; #CP_START# {HTML} #CP_END# &#8211;&gt;</span></strong></p>
<p>Where:</p>
<p><strong><span style="color: #0000ff;">&lt;!&#8211;</span></strong> Start of HTML Comment Tag</p>
<p><strong><span style="color: #0000ff;">#CP_START#</span> </strong>Required Tag denoting beginning of HTML code block to be checked for CP Scripting commands</p>
<p><strong><span style="color: #0000ff;">{HTML}</span></strong> <span style="color: #000000;">The HTML code block to be checked and then written</span></p>
<p><span style="color: #000000;"><span style="color: #0000ff;"><strong>#CP_END#</strong></span> Required Tag denoting end of HTML code block to be checked</span></p>
<p><span style="color: #000000;"><strong><span style="color: #0000ff;">&#8211;&gt;</span></strong> End of HTML Comment Tag</span></p>
<p><strong><span style="color: #000000;"> </span></strong></p>
<p></p>
<h2>As part of multi-line text property</h2>
<p><span style="font-weight: normal;">Important differences:</span></p>
<p><span style="font-weight: normal;">1. As each line of a multi line text field is parsed separately the entire </span><span style="color: #0000ff;">&lt;!&#8211; #CP_START# {i}{HTML}{i} #CP_END# &#8211;&gt;</span><span style="font-weight: normal;"> meta command must be specified on one line.</span></p>
<p><span style="font-weight: normal;">2. As the meta-command itself and the <span style="color: #0000ff;"><strong>{HTML}</strong></span> section is HTML code you must enclose the meta-command within [HTML On] and [HTML Off] blocks otherwise the command will be convereted to displayable text before it can be actioned.</span></p>
<p><span style="font-weight: normal;">Please <a href="http://schindlwick.com/toolbox/wp-login.php?redirect_to=/toolbox/tag/scripting/feed/">Login</a> or <a href="http://schindlwick.com/toolbox/wp-login.php?action=register">Register</a> to read the rest of this content.</p>
<h2>Other posts of the serie</h2><ol class="eg-series-posts"><li class="eg-series-posts-item "><span class="eg-series-post-title"><a href="http://schindlwick.com/toolbox/2010/01/create-a-html-publication-with-tabs/" title="Create a HTML Publication with tabs">Create a HTML Publication with tabs</a></span>  - <span class="eg-series-post-date date">12.January 2010</span></li><li class="eg-series-posts-item current"><span class="eg-series-post-title">Scripting in Corporate Publisher - Basic Knowledge</span> <span class="eg-series-post-this">(This post)</span> - <span class="eg-series-post-date date">15.January 2010</span></li><li class="eg-series-posts-item "><span class="eg-series-post-title"><a href="http://schindlwick.com/toolbox/2010/01/corporate-publisher-scripting-example/" title="Corporate Publisher Scripting - Example">Corporate Publisher Scripting - Example</a></span>  - <span class="eg-series-post-date date">20.January 2010</span></li><li class="eg-series-posts-item "><span class="eg-series-post-title"><a href="http://schindlwick.com/toolbox/2010/01/corporate-publisher-and-google-technology/" title="Corporate Publisher and Google Technology ">Corporate Publisher and Google Technology </a></span>  - <span class="eg-series-post-date date">22.January 2010</span></li><li class="eg-series-posts-item "><span class="eg-series-post-title"><a href="http://schindlwick.com/toolbox/2010/02/corporate-publisher-scripting-the-conclusion/" title="Corporate Publisher Scripting - The Conclusion">Corporate Publisher Scripting - The Conclusion</a></span>  - <span class="eg-series-post-date date">12.February 2010</span></li></ol>]]></content:encoded>
			<wfw:commentRss>http://schindlwick.com/toolbox/2010/01/scripting-in-corporate-publisher-basic-knowledge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.352 seconds -->
