All new articles on eZpedia
https://ezpedia.org/
All new articles on eZpediafr-FR[email protected] (Administrator User)Sun, 27 Mar 2016 18:26:24 +0000Sun, 27 Mar 2016 18:26:22 +0000eZ Components Feed dev (https://ezcomponents.org/docs/tutorials/Feed)https://www.rssboard.org/rss-specificationHow to use undocumented sort_by clause modified_subnode
https://ezpedia.org/solution/how_to_use_undocumented_sort_by_clause_modified_subnode
<a name="eztoc1287250_1" id="eztoc1287250_1"></a><h2>Question</h2><p>Have you ever wanted to sort a standard content fetch (say 'list') using the node object's modified_subnode field? Well .. you can!</p><a name="eztoc1287250_2" id="eztoc1287250_2"></a><h2>Example</h2><p>Here is a code example of how to use this undocumented sort_by clause.</p> <pre class="eztemplate" style="font-family:monospace;"><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/def"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$root_node</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'node'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'node_id'</span>, <span style="color: #0000bb;">$pagedata.path_array</span><span style="color: #66cc66;">[</span><span style="color: #0000bb;">$left_menu_depth</span><span style="color: #66cc66;">]</span>.node_id <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$left_menu_items</span> <span style="color: #66cc66;">=</span><span style="color: #dd0000;"> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #0000bb;">$root_node.node_id</span>,
<span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'modified_subnode'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'load_data_map'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'class_filter_type'</span>, <span style="color: #dd0000;">'include'</span>,
<span style="color: #dd0000;">'class_filter_array'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/ezini"><span style="color: #0600FF;">ezini</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'MenuContentSettings'</span>, <span style="color: #dd0000;">'LeftIdentifierList'</span>, <span style="color: #dd0000;">'menu.ini'</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
</pre><p>Worth mentioning 'modified_subnode' is not a perfect sort order, at times it may leave somethings to be desired in terms of accuracy, but for me today on eZecosystem.org it was better that using 'modified' or 'published'!</p>[email protected] (Heath )b4578ce01a2664ea6f67c989c6aa9729Sat, 06 Sep 2014 17:47:31 +0000How to add view parameter support to your custom module view
https://ezpedia.org/solution/how_to_add_view_parameter_support_to_your_custom_module_view
<p>Have you ever wanted to add view parameter support to your custom module view templates?</p><a name="eztoc1280050_1" id="eztoc1280050_1"></a><h2>Example Solution #1</h2><p>Here is a quicker way to add view parameters. Simply add this snippet of php into your custom module view.</p> <pre class="php-brief" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Set the view parameters</span>
<span style="color: #0000ff;">$tpl</span><span style="color: #339933;">-></span><span style="color: #004000;">setVariable</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">'view_parameters'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$Params</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'UserParameters'</span><span style="color: #009900;">]</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span></pre><p>Place the above PHP snippet code before you include your primary module view template within $Result['content'].</p> <pre class="php-brief" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/**
* Prepare module view content results for display to user
*/</span>
<span style="color: #0000ff;">$Result</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'content'</span><span style="color: #009900;">]</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$tpl</span><span style="color: #339933;">-></span><span style="color: #004000;">fetch</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">'design:custom-module/create.tpl'</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
</pre><a name="eztoc1280050_2" id="eztoc1280050_2"></a><h2>Example Solution #2</h2><p>Here is a longer form way to view parameters. Simply add this snippet of php into your custom module view.</p> <pre class="php-brief" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Set the view parameters</span>
<span style="color: #0000ff;">$viewParameters</span> <span style="color: #339933;">=</span> <a href="https://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$uri</span> <span style="color: #339933;">=</span> eZURI<span style="color: #339933;">::</span><span style="color: #004000;">instance</span><span style="color: #009900;">(</span> eZSys<span style="color: #339933;">::</span><span style="color: #004000;">requestURI</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$uriUserParameters</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$uri</span><span style="color: #339933;">-></span><span style="color: #004000;">userParameters</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">$uriUserParameters</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$key</span> <span style="color: #339933;">=></span> <span style="color: #0000ff;">$param</span> <span style="color: #009900;">)</span>
<span style="color: #009900;">{</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">$param</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">)</span>
<span style="color: #009900;">{</span>
<span style="color: #0000ff;">$viewParameters</span> <span style="color: #339933;">=</span> <a href="https://www.php.net/array_merge"><span style="color: #990000;">array_merge</span></a><span style="color: #009900;">(</span> <span style="color: #0000ff;">$viewParameters</span><span style="color: #339933;">,</span> <a href="https://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span> <span style="color: #0000ff;">$key</span> <span style="color: #339933;">=></span> <span style="color: #0000ff;">$param</span> <span style="color: #009900;">)</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #009900;">}</span>
<span style="color: #009900;">}</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">$tpl</span><span style="color: #339933;">-></span><span style="color: #004000;">hasVariable</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">'view_parameters'</span> <span style="color: #009900;">)</span> <span style="color: #009900;">)</span>
<span style="color: #009900;">{</span>
<span style="color: #0000ff;">$viewParameters</span> <span style="color: #339933;">=</span> <a href="https://www.php.net/array_merge"><span style="color: #990000;">array_merge</span></a><span style="color: #009900;">(</span> <span style="color: #0000ff;">$tpl</span><span style="color: #339933;">-></span><span style="color: #004000;">variable</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">'view_parameters'</span> <span style="color: #009900;">)</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$viewParameters</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #009900;">}</span>
<span style="color: #0000ff;">$tpl</span><span style="color: #339933;">-></span><span style="color: #004000;">setVariable</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">'view_parameters'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$viewParameters</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
</pre><p>Place the above PHP snippet code before you include your primary module view template within $Result['content'].</p> <pre class="php-brief" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/**
* Prepare module view content results for display to user
*/</span>
<span style="color: #0000ff;">$Result</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'content'</span><span style="color: #009900;">]</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$tpl</span><span style="color: #339933;">-></span><span style="color: #004000;">fetch</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">'design:custom-module/create.tpl'</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
</pre>[email protected] (kracker )3deb5ea14eeaeb48d27d042658d75de3Thu, 28 Aug 2014 16:02:57 +0000How to disable features within ezoe the online editor
https://ezpedia.org/solution/how_to_disable_features_within_ezoe_the_online_editor
<a name="eztoc1278506_1" id="eztoc1278506_1"></a><h2>Question</h2><p>How can I disable the table border, table class and table caption fields from displaying?</p><a name="eztoc1278506_2" id="eztoc1278506_2"></a><h2>Answer</h2><p>These features are built-in to eZ OE by default and must be disabled via custom settings overrides and custom template overrides within your user siteaccess.</p><a name="eztoc1278506_2_1" id="eztoc1278506_2_1"></a><h3>Example #1 Disable the table caption feature</h3><p>To hide the table caption field in your user siteaccess only then edit or create the file in settings/siteaccess/user-siteaccess-directory/content.ini.append.php and It should look like this:</p> <pre class="ezini" style="font-family:monospace;"><span><span style="">[</span></span>table<span style="">]</span>
<span style="color: #000099;">CustomAttributes</span><span style="">[</span><span style="">]</span>
<span style="color: #000099;">CustomAttributes</span><span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">summary</span>
<span style="color: #666666; font-style: italic;">#CustomAttributes<span style="">[</span><span style="">]</span>=caption</span>
</pre><p>Save the settings override file changes and clear ini caches!</p><a name="eztoc1278506_2_2" id="eztoc1278506_2_2"></a><h3>Example #2 Disable the table border and class feature</h3><p>To hide the table border and class fields:</p>
<ul>
<li>Create a template override of this file: extension/ezoe/design/standard/templates/ezoe/tag_table.tpl</li>
<li>Edit your template override file: extension/custom-design-extension/design/custom-user-siteacces-design/templates/ezoe/tag_table.tpl</li>
<li>Look for this content in the file:</li>
</ul>
<pre class="eztemplate" style="font-family:monospace;"><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/miscellaneous/include"><span style="color: #0600FF;">include</span></a> <span style="color: #007700;">uri</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">"design:ezoe/generalattributes.tpl"</span>
<span style="color: #007700;">tag_name </span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"> <span style="color: #0000bb;">$tag_name</span>
</span> <span style="color: #007700;">attributes </span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span></span><span style="color: #dd0000;">'width'</span>, <span style="color: #dd0000;">'htmlsize'</span>,
<span style="color: #dd0000;">'border'</span>, <span style="color: #dd0000;">'htmlsize'</span>,
<span style="color: #dd0000;">'class'</span>, <span style="color: #0000bb;">$class_list</span>
<span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">}</span>
</pre>
<ul>
<li>Change the above content to look like this:</li>
</ul>
<pre class="eztemplate" style="font-family:monospace;"><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/miscellaneous/include"><span style="color: #0600FF;">include</span></a> <span style="color: #007700;">uri</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">"design:ezoe/generalattributes.tpl"</span>
<span style="color: #007700;">tag_name </span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"> <span style="color: #0000bb;">$tag_name</span>
</span> <span style="color: #007700;">attributes </span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span></span><span style="color: #dd0000;">'width'</span>, <span style="color: #dd0000;">'htmlsize'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></pre><p>Save the template override file changes and clear all template caches!</p><a name="eztoc1278506_3" id="eztoc1278506_3"></a><h2>Closing</h2><p>And your done! These changes have been tested and work well with eZ Publish Community Project 2014.07+. You should have no problems with the example instructions provided above.</p><p>It is worth noting that if you make a template override of the above template in the user siteaccess design only then the admin siteaccess can still use these fields and retain full control and flexibility.</p><p>This also applies to the setting file change. That can be made in the user siteaccess only as well and retain admin full control.</p><a name="eztoc1278506_4" id="eztoc1278506_4"></a><h2>References</h2>
<ul>
<li>Forum: <a href="https://share.ez.no/forums/extensions/ezoe-disable-features" target="_blank">ezoe disable features</a></li>
</ul>
[email protected] (Heath )10499ee0736029b69b35123d9628cfb6Mon, 25 Aug 2014 23:08:49 +0000phpStorm
https://ezpedia.org/ez/phpstorm
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc1276778_0_1" id="eztoc1276778_0_1"></a><h3>About</h3><p>A word on the popular php code editor, <a href="https://www.jetbrains.com/phpstorm/" target="_blank">phpStorm</a>.</p><a name="eztoc1276778_0_2" id="eztoc1276778_0_2"></a><h3>CodeStyle</h3><p>One of the most desired features of working with phpStorm is it's code style feature which allows you to program a style of coding standards to work with.</p><p>You can setup a code style to help you program code more efficiently and effectively to a specific code standard.</p><p>eZ Systems has provided a php code style and detailed installation instructions for all users of phpStorm! <a href="https://github.com/ezsystems/ezcs/tree/master/editors/phpstorm" target="_blank">Download here</a>!</p><a name="eztoc1276778_0_3" id="eztoc1276778_0_3"></a><h3>References</h3>
<ul>
<li><a href="https://www.ezpedia.org/fr/platform/code_standards" target="_self">New Stack: Code Standards</a></li>
</ul>
<a name="eztoc1276778_0_4" id="eztoc1276778_0_4"></a><h3>External references</h3>
<ul>
<li>Download: <a href="https://github.com/ezsystems/ezcs/tree/master/editors/phpstorm" target="_blank">CodeStyle for eZ Publish PHP</a></li>
<li>Editor: <a href="https://www.jetbrains.com/phpstorm/" target="_blank">phpStorm</a></li>
<li>Forum: <a href="https://share.ez.no/forums/developer/phpstorm-code-standards-configuration-package-for-ez-publish-php" target="_blank">phpStorm Code Standards Configuration Package (for eZ Publish PHP)</a></li>
<li>Forum: <a href="https://share.ez.no/forums/developer/developing-ez-templates-with-phpstorm" target="_blank">Developing eZ Templates with PHPStorm</a></li>
</ul>
[email protected] (Heath )c0eecf627dedea90c4d38298437e7c3cSat, 23 Aug 2014 21:35:51 +0000memcache
https://ezpedia.org/ez/memcache
<div class=""> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc738198_1" id="eztoc738198_1"></a><h2>About</h2><p>Several different people have documented the use of eZ Publish with memcache / memcached with great success at improving eZ Publish performance</p><a name="eztoc738198_2" id="eztoc738198_2"></a><h2>External reference</h2>
<ol>
<li> Forum: (Example Solution Howto) <a href="https://share.ez.no/forums/discussions/ez-session-using-memcached-performance/comment73149" target="_self">eZ session using memcached....Performance</a></li>
</ol>
<ul>
<li>Forum: xxx</li>
<li>Forum: <a href="https://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fez.no%2Fcommunity%2Fforum%2Fsuggestions%2Fmemcache&ei=OQfzRYmUNIvqwQKT0ax8&usg=__kLVrnkLP2WJD4WbLh9jCjby_Jm4=&sig2=dQsZE4VIB7_tZ9ioW_p0Ng" target="_self">Memcache / Suggestions / Forum</a> </li>
<li>Doc: <a href="https://www.ezpedia.org/fr/ez/lighthttpd" title="Permanent Link: Setup eZ Publish with lighttpd" target="_self">lighttpd</a></li>
</ul>
[email protected] (Graham Brookins)e234715484b634c844d302cf8a3793aeSun, 22 Jan 2012 22:32:37 +0000Versions
https://ezpedia.org/ez/versions
<a name="eztoc737378_1" id="eztoc737378_1"></a><h2>About</h2><p>There are many versions of eZ Publish each is rarely the same as the last so pay close attention to what consists of each version, each community build and each release. </p><a name="eztoc737378_2" id="eztoc737378_2"></a><h2>Version Chart</h2><p>Here is an interesting <a href="https://pubsvn.ez.no/ezpublish_version_history/" target="_self">version chart</a> to read and learn more about the history / version(s) of eZ Publish and <a href="https://pubsvn.ez.no/ezpublish_version_history/index.php?4_x=trueThere" target="_self">eZ Publish 4.x</a>. </p><a name="eztoc737378_3" id="eztoc737378_3"></a><h2>Releases Chart</h2><p>Here is an interesting release history <a href="https://doc.ez.no/eZ-Publish/Upgrading/Releases" target="_self">version chart</a></p><a name="eztoc737378_4" id="eztoc737378_4"></a><h2>Features</h2><p><a href="https://github.com/ezsystems/ezpublish/tree/master/doc/features" target="_self">Feature documentation</a> is available by version from the eZ Publish GitHub repository.</p><a name="eztoc737378_5" id="eztoc737378_5"></a><h2>Backwards Compatibility</h2><p><a href="https://github.com/ezsystems/ezpublish/tree/master/doc/bc" target="_self">Backwards compatibility documentation</a> is available by version from the eZ Publish GitHub repository.</p><a name="eztoc737378_6" id="eztoc737378_6"></a><h2>Changelogs</h2><p><a href="https://github.com/ezsystems/ezpublish/tree/master/doc/changelogs" target="_self">Changelog documentation</a> is available by version from the eZ Publish GitHub repository.</p><a name="eztoc737378_7" id="eztoc737378_7"></a><h2>Specifications</h2><p><a href="https://github.com/ezsystems/ezpublish/tree/master/doc/specifications" target="_self">Specification documentation</a> is available by version from the eZ Publish GitHub repository.</p><a name="eztoc737378_8" id="eztoc737378_8"></a><h2>References</h2>
<ul>
<li>PubSVN: <a href="https://pubsvn.ez.no/ezpublish_version_history" target="_self">Version Chart</a> for <a href="https://pubsvn.ez.no/ezpublish_version_history/index.php?4_x=trueThere" target="_self">eZ Publish 4.x</a></li>
<li>Doc: <a href="https://doc.ez.no/eZ-Publish/Upgrading/Releases" target="_self">Release version chart</a></li>
<li>Doc: <a href="https://github.com/ezsystems/ezpublish/tree/master/doc/features" target="_self">Feature documentation</a></li>
<li>Doc: <a href="https://github.com/ezsystems/ezpublish/tree/master/doc/bc" target="_self">Backwards compatibility documentation</a></li>
<li>Doc: <a href="https://github.com/ezsystems/ezpublish/tree/master/doc/changelogs" target="_self">Changelog documentation</a></li>
<li>Doc: <a href="https://github.com/ezsystems/ezpublish/tree/master/doc/specifications" target="_self">Specification documentation</a></li>
</ul>
[email protected] (Graham Brookins)10eb1840dfc91c3a6e45f8a94a28e698Fri, 20 Jan 2012 09:53:12 +0000Twitter
https://ezpedia.org/ez/twitter
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><p>You can learn much by listening and following the eZ Community sharing on Twitter!</p><a name="eztoc736040_1" id="eztoc736040_1"></a><h2>eZ Publish Twitter Content</h2>
<ul>
<li><i><i><i>Search Twitter for <a href="https://twitter.com/search?q=ezpublish+OR+eZ+Publish+OR+ezp+OR+ezconf" target="_self">eZ Publish related tweets</a>!</i></i></i></li>
</ul>
<a name="eztoc736040_2" id="eztoc736040_2"></a><h2>eZ Publish Community related Twitter accounts </h2><p>The feeds available breakdown to the following primary Twitter accounts :</p><table class="renderedtable" cellpadding="2" cellspacing="0" width="100%" style="width: 100%">
<tr>
<td valign="top" style="vertical-align: top"> <p><a href="https://twitter.com/ezcommits" title="eZ Publish and extensions commit log" target="_blank">@ezcommits</a></p>
</td>
<td valign="top" style="vertical-align: top"> <p>eZ Publish & extensions (eZ's, hosted on github) commits,</p>
</td>
</tr>
<tr>
<td valign="top" style="vertical-align: top"> <p><a href="https://twitter.com/ezpublishevents" title="eZ Publish Events twitter feed" target="_blank">@ezpublishevents</a></p>
</td>
<td valign="top" style="vertical-align: top"> <p>eZ Community-related events, proposed on the brand new Event Planner</p>
</td>
</tr>
<tr>
<td valign="top" style="vertical-align: top"> <p><a href="https://twitter.com/ezpublish_jobs" title="eZ Publish Jobs - twitter account" target="_blank">@ezpublish_jobs</a></p>
</td>
<td valign="top" style="vertical-align: top"> <p>Job offers coming-out of the soon-to-come Job Board (Review the in-progress RFC <a href="https://share.ez.no/forums/discussions/job-board-information" title="Job Board : information" target="_self">here</a>),</p>
</td>
</tr>
<tr>
<td valign="top" style="vertical-align: top"> <p><a href="https://twitter.com/ezcommunity" title="eZ Publish Community - main Twitter account" target="_blank">@ezcommunity</a></p>
</td>
<td valign="top" style="vertical-align: top"> <p>Notifying the social sphere of new forum topics, new blog posts, new tutorials, and also used by yours truly for manual message.</p>
</td>
</tr>
</table>
<p>On top of the above more social channels, you also still have the more traditional, yet very useful <a href="https://share.ez.no/get-involved/exchange#RSS" title="eZ Publish Community RSS feeds" target="_self">eZ Community RSS feeds</a>.</p><a name="eztoc736040_3" id="eztoc736040_3"></a><h2>References</h2>
<ul>
<li>Blog: <a href="https://share.ez.no/blogs/ez/more-twitter-accounts-for-ez-community-more-relevancy-more-choice/(language)/eng-GB" target="_self">More Twitter accounts for eZ Community : more relevancy, more choice</a></li>
<li>Blog: <a href="https://share.ez.no/blogs/share.ez.no-team/follow-ezcommunity-to-stay-in-touch/(language)/eng-GB" target="_self">Follow @ezcommunity to stay in touch</a></li>
</ul>
[email protected] (Graham Brookins)1360c1531769be91c291c6dbf654d0f8Mon, 16 Jan 2012 11:44:20 +0000Persistent template variables
https://ezpedia.org/ez/persistent_template_variables
<a name="eztoc735864_1" id="eztoc735864_1"></a><h2>About</h2><p>You usually require a persistent_variable when you need to pass a value from a (module result) template context into the pagelayout template context (outside of module result context).</p><a name="eztoc735864_2" id="eztoc735864_2"></a><h2>Checking to ensure your persistent variable name is not already in use</h2><p>Remember that another extension may already use the variable name you wish to use, so it may be important to search your templates to ensure the variable name is not already used previously as this helps ensure you do not overwrite existing variables.</p><a name="eztoc735864_3" id="eztoc735864_3"></a><h2>Background</h2><p>It can take a user of eZ Publish quite some time of learning before finding out how to use the persistent_variable template variables.</p><p>This article should help even the average user quickly understand how to work with the persistent_variable within the contexts of templates and even within the context of PHP!</p><p>This documentation was inspired by another user who shared in the forum thread, "<a href="https://share.ez.no/forums/developer/persistent_variable-unveiled" target="_self">Persistent variable unveiled</a>"</p><a name="eztoc735864_4" id="eztoc735864_4"></a><h2>Use case</h2><p>You need to pass a variable from a module result template context into a pagelayout template context.</p><a name="eztoc735864_5" id="eztoc735864_5"></a><h2>Examples</h2><a name="eztoc735864_5_1" id="eztoc735864_5_1"></a><h3>Modifying a variable in a module result template context (TPL)</h3><p>When the 'persistent_variable' is of variable type 'hash' it is simple to modify it's contents within a module result template context using the <a href="https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-functions/Variables/set" target="_self">set</a> template function and the merge operator.</p> <pre class="eztemplate" style="font-family:monospace;"><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/set"><span style="color: #0600FF;">set</span></a> <span style="color: #007700;">scope</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">global</span> <span style="color: #0000bb;">$persistent_variable</span><span style="color: #66cc66;">=</span>$#persistent_variable<span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/merge"><span style="color: #0600FF;">merge</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'key'</span>, <span style="color: #dd0000;">'value'</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></pre><p>The above template code merges into the hash a new key/value pair.</p><p>Remember it is very important to use the set parameter 'scope=global' and '$#' to access the existing value within the in <b>global template variable scope</b>.</p><p>Also note the quotes around the examples are not actually part of the examples in the last sentence containing 'scope=global' and '$#'.</p><a name="eztoc735864_5_2" id="eztoc735864_5_2"></a><h3>Accessing a variable in a pagelayout template context (TPL)</h3><p>Now that you are modifying the persistent variable and adding a new key/value pair you can try to use this information within the pagelayout context (cache issues aside *)</p> <pre class="eztemplate" style="font-family:monospace;"><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$module_result.content_info.persistent_variable.key</span><span style="color: #66cc66;">}</span></pre><a name="eztoc735864_5_3" id="eztoc735864_5_3"></a><h3>Accessing a variable in a template operator context (PHP)</h3><p>If you are creating an eZ Publish template operator in PHP code you can also access and modify this persistent variable within a module result template context.</p> <pre class="php" style="font-family:monospace;"><span style="color: #000088;">$persistent_variable</span> <span style="color: #339933;">=</span> <a href="https://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">(</span> <span style="color: #000088;">$tpl</span><span style="color: #339933;">-></span><span style="color: #004000;">hasVariable</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">'persistent_variable'</span> <span style="color: #009900;">)</span> <span style="color: #009900;">)</span>
<span style="color: #009900;">{</span>
<span style="color: #000088;">$persistent_variable</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tpl</span><span style="color: #339933;">-></span><span style="color: #004000;">variable</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">'persistent_variable'</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$persistent_variable</span><span style="color: #009900;">[</span> <span style="color: #0000ff;">'key'</span> <span style="color: #009900;">]</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'value'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$tpl</span><span style="color: #339933;">-></span><span style="color: #004000;">setVariable</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">'persistent_variable'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$persistent_variable</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #009900;">}</span></pre><a name="eztoc735864_5_4" id="eztoc735864_5_4"></a><h3>Accessing a variable in a pagelayout template context from module result template context (TPL)</h3><p>Now that you are modifying the persistent variable and adding a new key/value pair you can try to use this information within the pagelayout context</p> <pre class="php" style="font-family:monospace;"><span style="color: #000088;">$module_result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tpl</span><span style="color: #339933;">-></span><span style="color: #004000;">variable</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">'module_result'</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$persistent_variable</span> <span style="color: #339933;">=</span> <a href="https://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">(</span> <a href="https://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">(</span> <span style="color: #000088;">$module_result</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'content_info'</span><span style="color: #009900;">]</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'persistent_variable'</span><span style="color: #009900;">]</span> <span style="color: #009900;">)</span> <span style="color: #009900;">)</span>
<span style="color: #009900;">{</span>
<span style="color: #000088;">$persistent_variable</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$module_result</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'content_info'</span><span style="color: #009900;">]</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'persistent_variable'</span><span style="color: #009900;">]</span><span style="color: #339933;">;</span>
<span style="color: #009900;">}</span></pre><a name="eztoc735864_6" id="eztoc735864_6"></a><h2>Closing</h2><p>If you wish to learn more please read this excellent blog on the subject, "<a href="https://www.netgen.hr/eng/Blog/eZ-Publish-CMS-persistent-variables" target="_self">eZ-Publish CMS persistent variables</a>"</p><a name="eztoc735864_7" id="eztoc735864_7"></a><h2>References</h2>
<ul>
<li>Blog: <a href="https://www.netgen.hr/eng/Blog/eZ-Publish-CMS-persistent-variables" target="_self">eZ-Publish CMS persistent variables</a></li>
<li>Doc: Template function <a href="https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-functions/Variables/set" target="_self">set</a></li>
<li>Doc: <a href="https://www.ezpedia.org/fr/snippet/template_variable_scope_passing_variables_to_template" target="_self">Snippet: Template Variable Scope / Passing Variables to Template</a></li>
<li>Forum: <a href="https://share.ez.no/forums/developer/persistent_variable-unveiled" target="_self">Persistent variable unveiled</a></li>
</ul>
[email protected] (Graham Brookins)9975c42becc651dfbfea252512f4f66aSun, 15 Jan 2012 20:37:08 +0000The eZ Song
https://ezpedia.org/ez/the_ez_song
<a name="eztoc735260_1" id="eztoc735260_1"></a><h2>About</h2><p>The eZ Song is a song shared and sung within the community of eZ Publish a PHP/CMS/CMF.</p><p>The original song title is "The Sharing Song" and the original song author is <a href="https://en.wikipedia.org/wiki/Jack_Johnson_(musician)" target="_self">Jack Johnson</a></p><a name="eztoc735260_2" id="eztoc735260_2"></a><h2>Alternate names the song is also known</h2>
<ul>
<li>The eZ Song</li>
<li>The eZ Publish Song</li>
<li>The eZ Sharing Song</li>
<li>The eZ Publish Sharing Song</li>
<li>Sharing Song</li>
<li>The Sharing Song</li>
<li>Jack Johnson - The Sharing Song</li>
<li>It's Always More Fun</li>
<li>It's Always More Fun to Share</li>
<li>It's Always More Fun to Share with Everyone</li>
</ul>
<a name="eztoc735260_3" id="eztoc735260_3"></a><h2>History</h2><p>The song has been with us for a long time so far ...</p><p>It is shared among the ecosystem and community</p><p>The song is seemingly not advertised per-say or referenced so much on the internet itself.</p><p>When it is mentioned it is often in passing and in text form alone.</p><p>Any search engine will surely bring these references to your attention and understanding should your seek them out after learning of this wonderful song and hearing it for the first time.</p><a name="eztoc735260_4" id="eztoc735260_4"></a><h2>Trends</h2>
<ul>
<li>The song is often sung in groups</li>
<li>The song has a special meaning for us all</li>
<li>The song is an enjoyable reminder of our lives</li>
</ul>
<a name="eztoc735260_5" id="eztoc735260_5"></a><h2>Experiencing the song for yourself</h2><p>Some have trouble finding a copy of the song to listen to so we did a few searches and wrote this article to help improve this situation for our friends in the community looking to learn more about The eZ Song and to hear it (perhaps for the first time privately).</p><a name="eztoc735260_5_1" id="eztoc735260_5_1"></a><h3>Listening to the song</h3><p>Some people really enjoy listening to the song (and we would not be surprised to learn of many people singing the song to themselves privately at the same time).</p>
<ul>
<li>Random Youtube Mirror (2:45): <a href="https://www.youtube.com/watch?v=0hgiVfHIPxc" target="_self">https://www.youtube.com/watch?v=0hgiVfHIPxc</a></li>
<li>Random Youtube Mirror (Longer picture slideshow; 3:58): <a href="https://www.youtube.com/watch?v=bfSpsnLyo18" target="_self">https://www.youtube.com/watch?v=bfSpsnLyo18</a></li>
<li>Uk Previously Shared Mirror: <a href="https://www.deezer.com/listen-2247842" target="_self">https://www.deezer.com/listen-2247842</a></li>
</ul>
<a name="eztoc735260_5_2" id="eztoc735260_5_2"></a><h3>Lyrics of the song</h3><p>Some people enjoy reading the lyrics while they listen to the song.</p>
<ul>
<li>Random Copy of Lyrics: <a href="https://www.azlyrics.com/lyrics/jackjohnson/thesharingsong.html" target="_self">https://www.azlyrics.com/lyrics/jackjohnson/thesharingsong.html</a></li>
<li>Random Copy of Lyrics: <a href="https://www.sing365.com/music/lyric.nsf/The-Sharing-Song-lyrics-Jack-Johnson/9057EF11C2140E9A48257115000DC36D" target="_self">https://www.sing365.com/music/lyric.nsf/The-Sharing-Song-lyrics-Jack-Johnson/9057EF11C2140E9A48257115000DC36D</a></li>
</ul>
<a name="eztoc735260_6" id="eztoc735260_6"></a><h2>References</h2>
<ul>
<li>Wikipedia: <a href="https://en.wikipedia.org/wiki/Jack_Johnson_(musician)" target="_self">Jack Johnson</a></li>
<li>Mention: <a href="https://www.visionwt.com/News/eZ-Conference-set-for-London" target="_self">https://www.visionwt.com/News/eZ-Conference-set-for-London</a></li>
<li>Mention: <a href="https://visionwt.podhoster.com/index.php?sid=2938&m=05&y=2011" target="_self">https://visionwt.podhoster.com/index.php?sid=2938&m=05&y=2011</a></li>
<li>Mention(s): <a href="https://share.ez.no/forums/discussions/ez-future-15-ez-publish-4.5-matterhorn-ahoy" target="_self">https://share.ez.no/forums/discussions/ez-future-15-ez-publish-4.5-matterhorn-ahoy</a></li>
<li>Mention: <a href="https://twitter.com/#!/zurgutt/status/81458057095282688" target="_self">https://twitter.com/#!/zurgutt/status/81458057095282688</a></li>
<li>Mention: <a href="https://www.meetup.com/eZ-Publish-Users-Developers/messages/boards/thread/19408082/#64253782" target="_self">https://www.meetup.com/eZ-Publish-Users-Developers/messages/boards/thread/19408082/#64253782</a></li>
</ul>
[email protected] (Heath )d6764a44beeec8761eebf8846858a295Sat, 14 Jan 2012 03:13:12 +0000Chat with other eZ Publish Developers LIVE from around the World
https://ezpedia.org/about/chat_with_other_ez_publish_developers_live_from_around_the_world
<p>
<a name="ezpublish" id="ezpublish"></a>Get support for your eZ Publish problems in real time chat with other eZ Publish users, developers and masters from your web browser in our live chat room, the #ezpublish channel on Freenode.net <a href="https://www.ezpedia.org/fr/ez/irc" target="_self">IRC</a> via your web browser, simply follow the link, sign-in to the <a href="https://www.ezpedia.org/fr/ez/irc" target="_self">IRC</a> service, remember to join the #ezpublish channel specifically! <a href="https://webchat.freenode.net/" target="_self">https://webchat.freenode.net/</a></p>[email protected] (Graham Brookins)f10fc0a26b5e5f81c44ae611ea8a2dddSun, 08 Jan 2012 00:15:13 +0000Creating file upload feedback forms using information collection system and the enhanced ezbinaryfile extension
https://ezpedia.org/ez/creating_file_upload_feedback_forms_using_information_collection_system_and_the_enhanced_ezbinaryfile_extension
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc733536_0_1" id="eztoc733536_0_1"></a><h3>About</h3><p>Often users are looking for a way to create an information collection form (for feedback, resumes, etc) which allowed binary files like pdfs to be uploaded.</p><p>This features is specifically not supported by the default eZBinaryFile datatype provided with every copy of eZ Publish.</p><a name="eztoc733536_0_2" id="eztoc733536_0_2"></a><h3>Example solution: Enhanced eZBinaryFile extension for eZ Publish</h3><a name="eztoc733536_0_2_1" id="eztoc733536_0_2_1"></a><h4>About: Enhanced eZBinaryFile extension</h4><p>This datatype was developed to make it possible to send binary files collected from forms as multipart MIME emails. For example, the enhanced eZBinaryfile datatype can be used to allow people to attach documents to information collection forms / feedback forms.</p><a name="eztoc733536_0_3" id="eztoc733536_0_3"></a><h3>Example solution: Enhanced eZBinaryFile extension for eZ Publish 4.x+</h3><p>This extension is available for download on <a href="https://projects.ez.no/enhancedezbinaryfile" target="_self">projects.ez.no/enhancedezbinaryfile</a></p><p>Please note that this specific project for the extension hosted on projects.ez.no is not compatible with eZ Publish 3.x instead it is only compatible with eZ Publish 4.x+ and PHP 5.x+. See the following section for the eZ Publish 3.x compatible solution available (older versions available).</p><a name="eztoc733536_0_4" id="eztoc733536_0_4"></a><h3>Example solution: Enhanced eZBinaryFile extension for eZ Publish 3.x</h3><p>This extension is available for download on <a href="https://projects.ez.no/enhanced_ezbinaryfile" target="_self">pro</a><a href="https://projects.ez.no/enhanced_ezbinaryfile" target="_self">jects.ez.no/enhanced_ezbinaryfile</a></p><p>Note: This specific project for the extension hosted on projects.ez.no is not compatible with eZ Publish 4.x+ instead it is only compatible with eZ Publish 3.x <= 3.10.x and PHP 4.x.</p><a name="eztoc733536_0_5" id="eztoc733536_0_5"></a><h3>External Reference</h3>
<ul>
<li>Project: <a href="https://projects.ez.no/enhancedezbinaryfile" target="_self">enhancedezbinaryfile</a> (eZ Publish 4.x+ Compatible)</li>
<li>Project: <a href="https://projects.ez.no/enhanced_ezbinaryfile" target="_self">enhanced_ezbinaryfile</a> (eZ Publish 3.x Compatible)</li>
<li>Forum: <a href="https://share.ez.no/forums/developer/how-to-use-file-uploads-in-a-contact-form#comment49270" target="_self">How to use file uploads in a contact form?</a></li>
<li>Forum: <a href="https://share.ez.no/forums/developer/how-to-use-file-uploads-in-a-contact-form#comment49283" target="_self">How to use file uploads in a contact form?</a> (Changes required to make this extension compatible with eZ Publish 4!)</li>
<li>Forum: <a href="https://share.ez.no/forums/general/files-and-collected-informations" target="_self">Files and collected informations</a></li>
</ul>
[email protected] (Graham Brookins)eb5c22a6215f984f09508f34b5684769Sat, 07 Jan 2012 14:46:06 +0000eZ Publish 5.0
https://ezpedia.org/ez/ez_publish_5_0
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc731694_1" id="eztoc731694_1"></a><h2>About</h2><p>eZ Publish Platform 5 is a dual kernel CMS based upon Symfony + eZ Publish 4.x (aka Legacy)</p><a name="eztoc731694_2" id="eztoc731694_2"></a><h2>Preview</h2><p>A preview release of eZ Publish 5.0 has been hinted to be in the works for March 2012 </p><a name="eztoc731694_3" id="eztoc731694_3"></a><h2>References</h2>
<ul>
<li>Forum: First public mention on share.ez.no, "<a href="https://share.ez.no/forums/discussions/2012-it-s-going-to-be-a-great-year" target="_self">2012 - It's going to be a great year!</a>"</li>
</ul>
[email protected] (Graham Brookins)9a2e5dcea6a849662f5971284b9e27a1Mon, 02 Jan 2012 09:47:52 +0000Creating image alias image variations in PHP
https://ezpedia.org/solution/creating_image_alias_image_variations_in_php
<div class="object-center"><p class="version_info">This is compatible with <a href="https://www.ezpedia.org/fr/ez/ez_publish_4" target="_self">eZ Publish 4</a>.</p></div>
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc709482_0_1" id="eztoc709482_0_1"></a><h3>About</h3><p>This is an example solution to generate or remove content object image datatype image alias image variations which do not yet exist within the system.</p><a name="eztoc709482_0_2" id="eztoc709482_0_2"></a><h3>Example solution: bcimagealias extension</h3><p>The solution bcimagealias extension is available for download on <a href="https://projects.ez.no/bcimagealias" target="_self">projects.ez.no/bcimagealias</a></p><a name="eztoc709482_0_2_1" id="eztoc709482_0_2_1"></a><h4>Calling example script</h4><p>This script generates or removes all image alias image variation image files in the system per siteaccess. Here is an example of how to call the script.</p> <pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>ezpublish<span style="color: #000000; font-weight: bold;">/</span>;
.<span style="color: #000000; font-weight: bold;">/</span>extension<span style="color: #000000; font-weight: bold;">/</span>ezimagealias<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>bcimagealiases.php <span style="color: #660033;">--siteacess</span> ezwebin_site_user <span style="color: #660033;">--generate</span></pre> <pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>ezpublish<span style="color: #000000; font-weight: bold;">/</span>;
.<span style="color: #000000; font-weight: bold;">/</span>extension<span style="color: #000000; font-weight: bold;">/</span>ezimagealias<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>bcimagealiases.php <span style="color: #660033;">--siteacess</span> ezwebin_site_user <span style="color: #660033;">--remove</span></pre><p>This extension also provides a workflow event and cronjob part to generate all image alias variation images in the system each time called. See INSTALL documentation within the extension.</p><a name="eztoc709482_0_3" id="eztoc709482_0_3"></a><h3>External Reference</h3>
<ul>
<li>Project: <a href="https://projects.ez.no/bcimagealias" target="_self">bcimagealias</a></li>
<li>Doc: <a href="https://pubsvn.ez.no/doxygen/trunk/html/classeZPersistentObject.html#a60ecfe0273a8131a8b5e36c11edf0c15" target="_self">eZPersistentObject::fetchObjectList</a></li>
<li>Doc: <a href="https://pubsvn.ez.no/doxygen/trunk/html/classeZImageAliasHandler.html" target="_self">eZImageAliasHandler</a></li>
<li>Forum: <a href="https://share.ez.no/forums/developer/creating-image-alias-in-php" target="_self">Creating image alias image variations in PHP</a></li>
<li>Forum: <a href="https://share.ez.no/forums/developer/how-to-fetch-class-objects-in-php" target="_self">How to fetch class objects in PHP</a></li>
</ul>
<a name="eztoc709482_0_4" id="eztoc709482_0_4"></a><h3>Reference</h3>
<ul>
<li><a href="https://www.ezpedia.org/fr/ez/image_alias_handler" target="_self">ezimagealiashandler</a></li>
</ul>
[email protected] (Heath )9e9ac24bcfe9fc7b17e070966b7d255cMon, 24 Oct 2011 03:40:58 +0000eZ Webin ezpagedata template operator
https://ezpedia.org/ez/ez_webin_ezpagedata_template_operator
<a name="eztoc684720_1" id="eztoc684720_1"></a><h2>Background</h2><p>In the early releases of the eZ Website Interface extension (eZ Webin), the pagelayout.tpl file was packed with calculations on which blocks to include where etc. This made quite a messy and suboptimal pagelayout.tpl.</p><p>To rectify this, eZ Systems moved a lot of this logic into a new general purpose template operator. This operator combines parameters from the view template, the ini system and the Template Look object, and returns an array of information the pagelayout.tpl template can use.</p><p>Unfortunately, they forgot to document it...</p><a name="eztoc684720_2" id="eztoc684720_2"></a><h2>eZ Webin template operators</h2><p>List of template operators included in eZ Webin:</p>
<ul>
<li>ezpagedata( array $params ) - returns general page parameters to be used in pagelayout.tpl</li>
<li>ezpagedata_set( string $key, mixed $value ) - set persistent value for pagelayout, to be used in view templates</li>
<li>ezpagedata_append( string $key, mixed $value ) - append persistent value to array for pagelayout, to be used in view templates</li>
</ul>
<p>The persistent_variable is originally only supported in the content view full module/view (the rationale is that the view cache takes effect only here). These template operators extends the support to other modules/views as well.</p><a name="eztoc684720_3" id="eztoc684720_3"></a><h2>ezpagedata() template operator</h2><p>Note: The parameter $params of this operator is an array that is merged with persistent_variable to produce the resulting hash. So if needed you can influence the results directly from pagelayout.tpl.</p><p>The return value is a hash that may currently contain the following elements:</p>
<ul>
<li>persistent_variable - standard persistent variable from $module_result.content_info.persistent_variable</li>
<li>show_path - indicates if path should be shown</li>
<li>website_toolbar - indicates if website toolbar should be shown</li>
<li>node_id - specifies current node id</li>
<li>is_edit - indicates if we are in edit mode</li>
<li>page_root_depth - specifies the depth of the root node</li>
<li>page_depth - specifies the depth of the current node</li>
<li>root_node - specifies the node id of the root node</li>
<li>template_look - the template look content object</li>
<li>class_identifier - specifies the class identifier of the current node, same as $module_result.content_info.class_identifer</li>
<li>top_menu - template name for the top menu</li>
<li>left_menu - template name for the left menu</li>
<li>current_menu - identifier of the current menu</li>
<li>extra_menu - indicates whether extra column (right column) should be shown</li>
<li>extra_menu_node_id - indicates node id of node to use in extra column, default is current node</li>
<li>extra_menu_subitems - indicates number of sub items in extra column</li>
<li>extra_menu_class_list - list of classes to be used in extra column</li>
<li>path_array - list of nodes to be used in path</li>
<li>path_id_array - list of node ids to be used in path</li>
<li>path_normalized - normalized string of path identifiers</li>
<li>css_classes - string of CSS classes to be set in the <div id="page"> tag</li>
</ul>
<p>Disclaimer: Note that there may be differences between different versions of eZ Webin. This list is based on an eZ Webin v.1.7 codebase.</p><a name="eztoc684720_3_1" id="eztoc684720_3_1"></a><h3>Values of hash elements</h3><p>The criterias for the values of the different pagedata() hash elements can be quite complex. The following is a partial list of the elements and the order in which the different values are set for each element. In this illustration line 1 is default value, line 2 takes precedence over line 1 if specified, etc.</p><a name="eztoc684720_3_1_1" id="eztoc684720_3_1_1"></a><h4>Template look</h4><p>pagedata.template_look</p>
<ol>
<li>$persistent_variable['template_look']</li>
<li>Fetch first object of class identifier specified in $persistent_variable['template_look_class'] (by default it is the string 'template_look')</li>
</ol>
<a name="eztoc684720_3_1_2" id="eztoc684720_3_1_2"></a><h4>Current menu</h4><p>pagedata.current_menu</p>
<ol>
<li>menu.ini [SelectedMenu] CurrentMenu=<menu_name></li>
</ol>
<a name="eztoc684720_3_1_3" id="eztoc684720_3_1_3"></a><h4>Top menu</h4><p>pagedata.top_menu</p>
<ol>
<li>menu.ini [SelectedMenu] TopMenu=<template_name></li>
<li>$persistent_variable['top_menu']</li>
</ol>
<a name="eztoc684720_3_1_4" id="eztoc684720_3_1_4"></a><h4>Left column/menu</h4><p>pagedata.left_menu</p>
<ol>
<li>menu.ini [SelectedMenu] LeftMenu=<template_name></li>
<li>$persistent_variable['left_menu']</li>
<li>$hideMenuClasses != false</li>
<li>menu.ini [MenuSettings] AlwaysAvailable == false && (.is_edit || 'content/versionview' || current_node_id == false || uicontext 'browse')</li>
</ol>
<p>Note: .left_menu specify if .css_classes contains 'sidemenu' or 'nosidemenu'</p><a name="eztoc684720_3_1_5" id="eztoc684720_3_1_5"></a><h4>Extra column/menu</h4><p>pagedata.extra_menu</p>
<ol>
<li>'extra_info'</li>
<li>$persistent_variable['extra_menu']</li>
<li>$hideMenuClasses != false</li>
</ol>
<p>pagedata.extra_menu_node_id</p>
<ol>
<li>current_node_id</li>
<li>$persistent_variable['extra_menu_node_id']</li>
</ol>
<p>pagedata.extra_menu_class_list</p>
<ol>
<li>array( 'infobox' )</li>
<li>$persistent_variable['extra_menu_class_list']</li>
<li>menu.ini [MenuContentSettings] ExtraIdentifierList=<class_identifier_list></li>
</ol>
<p>pagedata.extra_menu_subitems</p>
<ol>
<li>0</li>
<li>$persistent_variable['extra_menu_subitems']</li>
<li>Count of number of sub items in top level of content tree, based on .extra_menu_node_id and .extra_menu_class_list?</li>
</ol>
<p>
Note: If .extra_menu_subitems is false, .extra_menu will also be set to false.<br />Note: .extra_menu specify if .css_classes contains 'extrainfo' or 'noextrainfo'</p>[email protected] (Arne B.)e8e75b9023a931ade5f20daa42353b48Tue, 02 Aug 2011 13:58:49 +0000Adding related object programmatic
https://ezpedia.org/solution/adding_related_object_programmatic
<a name="eztoc659452_1" id="eztoc659452_1"></a><h2>Question</h2><p>How to add related object programmatically ...</p><a name="eztoc659452_2" id="eztoc659452_2"></a><h2>Answer</h2><p>To add a list of object as an object relation through CLI, this code is not perfect and may remove any existing object relations you have.</p><a name="eztoc659452_3" id="eztoc659452_3"></a><h2>Example</h2><p>Here is an example eZ Publish PHP CLI Script which shows how to use this feature.</p> <pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;"><?php</span>
<span style="color: #009933; font-style: italic;">/**
* tmp
*
* @package tmp
* @author Olav Frengstad <[email protected]>
*/</span>
<span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'autoload.php'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cli</span> <span style="color: #339933;">=</span> eZCLI<span style="color: #339933;">::</span><span style="color: #004000;">instance</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$script</span> <span style="color: #339933;">=</span> eZScript<span style="color: #339933;">::</span><span style="color: #004000;">instance</span><span style="color: #009900;">(</span> <a href="https://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span>
<span style="color: #0000ff;">'description'</span> <span style="color: #339933;">=></span> <span style="color: #0000ff;">'test script'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'use-modules'</span> <span style="color: #339933;">=></span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'use-extensions'</span> <span style="color: #339933;">=></span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
<span style="color: #009900;">)</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$script</span><span style="color: #339933;">-></span><span style="color: #004000;">startup</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$config</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$argumentConfig</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$optionHelp</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$arguments</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$useStandardOptions</span> <span style="color: #339933;">=</span> <a href="https://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span>
<span style="color: #0000ff;">'user'</span> <span style="color: #339933;">=></span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'siteaccess'</span> <span style="color: #339933;">=></span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
<span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$options</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$script</span><span style="color: #339933;">-></span><span style="color: #004000;">getOptions</span><span style="color: #009900;">(</span>
<span style="color: #000088;">$config</span><span style="color: #339933;">,</span>
<span style="color: #000088;">$argumentConfig</span><span style="color: #339933;">,</span>
<span style="color: #000088;">$optionHelp</span><span style="color: #339933;">,</span>
<span style="color: #000088;">$arguments</span><span style="color: #339933;">,</span>
<span style="color: #000088;">$useStandardOptions</span>
<span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$script</span><span style="color: #339933;">-></span><span style="color: #004000;">initialize</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$user</span> <span style="color: #339933;">=</span> eZUser<span style="color: #339933;">::</span><span style="color: #004000;">fetchByName</span><span style="color: #009900;">(</span><span style="color: #0000ff;">'admin'</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span> <span style="color: #339933;">!</span><span style="color: #000088;">$user</span> <span style="color: #009900;">)</span>
<span style="color: #009900;">{</span>
<span style="color: #000088;">$user</span> <span style="color: #339933;">=</span> eZUser<span style="color: #339933;">::</span><span style="color: #004000;">currentUser</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #009900;">}</span>
<span style="color: #000088;">$rel</span> <span style="color: #339933;">=</span> <a href="https://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span><span style="color: #cc66cc;">153</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$object</span> <span style="color: #339933;">=</span> eZContentObject<span style="color: #339933;">::</span><span style="color: #004000;">fetch</span><span style="color: #009900;">(</span> <span style="color: #cc66cc;">154</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$object</span><span style="color: #339933;">-></span><span style="color: #004000;">appendInputRelationList</span><span style="color: #009900;">(</span> <span style="color: #000088;">$rel</span><span style="color: #339933;">,</span>eZContentObject<span style="color: #339933;">::</span><span style="color: #004000;">RELATION_LINK</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$object</span><span style="color: #339933;">-></span><span style="color: #004000;">commitInputRelations</span><span style="color: #009900;">(</span><span style="color: #000088;">$object</span><span style="color: #339933;">-></span><span style="color: #004000;">CurrentVersion</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$object</span><span style="color: #339933;">-></span><span style="color: #004000;">store</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$script</span><span style="color: #339933;">-></span><span style="color: #004000;">shutdown</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
</pre><p>To run it save the file in your ez directory (preferably put it in an extension) and call it:</p><p><i>$ php relation.php --siteaccess <your-siteaccess-name></i></p>[email protected] (Olav Frengstad)2decfb79de4ac5e93a43747419ac67a1Thu, 28 Apr 2011 12:42:53 +0000Venkataraman Jeyakumar
https://ezpedia.org/people/venkataraman_jeyakumar
<p>
Venkataraman Jeyakumar , popularly known as Dr.Venkataraman Jeyakumar who is aged 16 a young Distinguished Scientist from INDIA serving as RESEARCH AREA SCIENTIST at Microsoft Research with groups focusing on principles and applications of machine learning and reasoning, human-computer interaction, search and retrieval, probability theory. One among Junior Scientists in Microsoft Corporation, Venkataraman is an Extraordinary Creative Performer, who has a passion on Software development from the age of 12. Started his career by 10 in programming tools and soon, completed his degree at the age of 14, when his batch mates were in high school. Made a Record Breaking History of Inventing Answering Tools from CRM - CSO Based Applications, which not every Kid and even adult can do. Recipient WWW.Society Recognized Person, Business, 2008 by AAAI .His research interests and activities span theoretical and practical challenges with developing computational systems that perceive, learn and reason. Venkat's contributions include advances in principles of machine artificial intelligence and human-computer interaction. His efforts have led to the fielding of applications in multiple realms including healthcare, information retrieval, human-computer interaction, operating systems, aerospace. <br />
Venkataraman has been elected Fellow of the Association for the Advancement of Artificial Intelligence (AAAI) and of the American Association for the Advancement of Science. <br />
He has served as Council Administrator of the AAAI and is now the immediate past Advisor of the organization. He is a member of the NSF Computer and Information Science and Engineering Advisory Board and the Computing Community Consortium council. He has also served on the DARPA Information Science and Technology Study Group and on the Naval Research Advisory Committee. <br />
Venkat is associate editor of the Decisions, Uncertainty, and Computation Area of the Journal of the ACM and is active on several other editorial boards.<br />
<br />Dr.Venkataraman Jeyakumar's Experience in ( VENKATARAMAN'S SOFTWARE SYSTEM RESEARCH CENTRE )</p><p>
Vice-President<br />
V's Software System Research Centre and Academy<br />
Computer Software industry<br />February 2010 – Present (2 year 1 month)</p><p>Mission</p><p>The mission of the V's Software System Research Centre is to:</p><p>Advance software and information technology through research partnerships.</p><p>V's SSRCA is dedicated to:</p><p>
* fostering innovative basic and applied research in software and information technologies;<br />
* working with established companies, start-ups, government agencies, and standards bodies to develop and transition the technologies to widespread and practical application;<br />
* educating the next generation of software researchers and practitioners in advanced software technologies; and<br />* supporting the public service mission of the University of California in developing the economic basis of the State of California.</p><p>Research Emphases</p><p>V's SSRC&A research emphases include:</p><p>Software, Software Architecture, Interactive and Collaborative Technologies, Design, Ubiquitous Computing, Web Technologies, Game Culture and Technologies</p>[email protected] (Puja Natrajan)00808f7d5dd098728c772b600edbb281Sat, 19 Feb 2011 13:09:00 +0000Creating custom rss feeds using the layout/set module view
https://ezpedia.org/solution/creating_custom_rss_feeds_using_the_layout_set_module_view
<div class=""> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><p>This article which describes in detail using the layout/set module view in various ways.</p><a name="eztoc601420_1" id="eztoc601420_1"></a><h2>Example Settings</h2><p>These are the example settings of an average <i>layout.ini.append.php</i></p> <pre class="ezini" style="font-family:monospace;"><span><span style="">[</span></span>podcast<span style="">]</span>
<span style="color: #000099;">PageLayout</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">podcast_rss_pagelayout.tpl</span>
<span style="color: #000099;">ContentType</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">application/rss+xml</span>
<span style="color: #666666; font-style: italic;"># Related issue, https://issues.ez.no/12677</span>
<span style="color: #666666; font-style: italic;"># If you remove this line, URLs that are built using url_alias_list will have the following prepended, '/layout/set/json/'.</span>
<span style="color: #000099;">UseAccessPass</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">false</span>
<span style="color: #000099;">UseFullUrl</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">true</span>
<span style="color: #000066; font-weight:bold;"><span style="">[</span>podcast_episode<span style="">]</span></span>
<span style="color: #000099;">PageLayout</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">podcast_episode_pagelayout.tpl</span>
<span style="color: #000099;">ContentType</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">text/html</span>
<span style="color: #666666; font-style: italic;"># Related issue, https://issues.ez.no/12677</span>
<span style="color: #000099;">UseAccessPass</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">false</span>
<span style="color: #000099;">UseFullUrl</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">true</span>
<span style="color: #000066; font-weight:bold;"><span style="">[</span>discussions<span style="">]</span></span>
<span style="color: #000099;">PageLayout</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">discussions_pagelayout.tpl</span>
<span style="color: #000099;">ContentType</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">application/rss+xml</span>
<span style="color: #000066; font-weight:bold;"><span style="">[</span>author<span style="">]</span></span>
<span style="color: #000099;">PageLayout</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">author_rss_pagelayout.tpl</span>
<span style="color: #000099;">ContentType</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">application/rss+xml</span>
<span style="color: #666666; font-style: italic;"># ContentType=text/xml</span>
<span style="color: #000066; font-weight:bold;"><span style="">[</span>comments<span style="">]</span></span>
<span style="color: #000099;">PageLayout</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">comment_rss_pagelayout.tpl</span>
<span style="color: #000099;">ContentType</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">application/rss+xml</span>
<span style="color: #666666; font-style: italic;"># ContentType=text/xml</span>
<span style="color: #000066; font-weight:bold;"><span style="">[</span>article_statistics.csv<span style="">]</span></span>
<span style="color: #000099;">PageLayout</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">article_statistics_pagelayout.tpl</span>
<span style="color: #000099;">ContentType</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">text/csv</span>
<span style="color: #666666; font-style: italic;"># ContentType=text/txt</span></pre><a name="eztoc601420_2" id="eztoc601420_2"></a><h2>Templates</h2><p>Example template overrides for layout/set view.</p><a name="eztoc601420_2_1" id="eztoc601420_2_1"></a><h3>Author Article RSS Feed</h3><p>Example uri, '/layout/set/author?user=938'</p> <pre class="eztemplate" style="font-family:monospace;">
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/set-block"><span style="color: #0600FF;">set-block</span></a> <span style="color: #007700;">scope</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">root</span> <span style="color: #007700;">variable</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">cache_ttl<span style="color: #66cc66;">}</span></span>0<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/set-block"><span style="color: #0600FF;">set-block</span></a><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/def"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$user_id</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/ezhttp"><span style="color: #0600FF;">ezhttp</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'user'</span>, <span style="color: #dd0000;">'get'</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="https://www.w3.org/2005/Atom">
<channel>
<atom:link href="https://example.com/rss/feed/user/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$user_id</span><span style="color: #66cc66;">}</span>" rel="self" type="application/rss+xml"/>
<title>Example User Feed</title>
<link>https://example.com</link>
<description>A feed of the articles being started at example.com!</description>
<language>en-US</language>
<image>
<url>https://example.com/var/ezwebin_site/storage/images/media/images/example_logo_rss.png</url>
<title>example BETA User Feed</title>
<link>https://example.com</link>
</image>
<span style="color: #808080; font-style: italic;">{* ezhttp( 'user', 'get' )}</span> |-- <b><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$view_parameters.user</span><span style="color: #66cc66;">}</span></b> <span style="color: #66cc66;">{</span><span style="color: #0000bb;">$view_parameters</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/miscellaneous/attribute"><span style="color: #0600FF;">attribute</span></a><span style="color: #66cc66;">(</span>show,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">)</span> *<span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/ezhttp_hasvariable"><span style="color: #0600FF;">ezhttp_hasvariable</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'user'</span>, <span style="color: #dd0000;">'get'</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/def"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$topics</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>,
<a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #cc66cc;">42</span>,
<span style="color: #dd0000;">'limit'</span>, <span style="color: #cc66cc;">30</span>,
<span style="color: #dd0000;">'depth'</span>, <span style="color: #cc66cc;">3</span>,
<span style="color: #dd0000;">'class_filter_type'</span>, <span style="color: #dd0000;">'include'</span>,
<span style="color: #dd0000;">'class_filter_array'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'article'</span>,<span style="color: #dd0000;">'comment'</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'attribute_filter'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'owner'</span>,
<span style="color: #dd0000;">'='</span>,
<span style="color: #0000bb;">$user_id</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/looping/foreach"><span style="color: #0600FF;">foreach</span></a> <span style="color: #0000bb;">$topics</span> <span style="color: #0600FF;">as</span> <span style="color: #0000bb;">$t</span><span style="color: #66cc66;">}</span>
<item>
<title><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t.object.owner.data_map.pen_name.has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.object.owner.data_map.pen_name.content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.data_map.author.data_text</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t.object.class_identifier</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/eq"><span style="color: #0600FF;">eq</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'article'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span> : <span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.name</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">|</span>htmlentities<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span> on <span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.parent.name</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">|</span>htmlentities<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span></title>
<author><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.object.owner.data_map.user_account.content.email</span><span style="color: #66cc66;">}</span> (<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t.object.owner.data_map.pen_name.has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.object.owner.data_map.pen_name.content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.data_map.author.data_text</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span>)</author>
<link>https://example.com/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.url_alias</span><span style="color: #66cc66;">}</span></link>
<guid>https://example.com/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.url_alias</span><span style="color: #66cc66;">}</span></guid>
<description><![CDATA[<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.data_map.body.content.output.output_text</span><span style="color: #66cc66;">}</span>]]></description>
<pubDate><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.object.published</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/formatting_and_internationalization/datetime"><span style="color: #0600FF;">datetime</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'custom'</span>, <span style="color: #dd0000;">'%D, %d %M %Y %H:%i:%s PDT'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></pubDate><span style="color: #808080; font-style: italic;">{*
<pubDate>Sat, 04 Jul 2010 13:54:12 GMT</pubDate> *}</span>
</item>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/looping/foreach"><span style="color: #0600FF;">foreach</span></a><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span>
</channel>
</rss>
</pre><a name="eztoc601420_2_2" id="eztoc601420_2_2"></a><h3>Article RSS Feed</h3><p>Example uri, '/layout/set/articles'</p> <pre class="eztemplate" style="font-family:monospace;">
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="https://www.w3.org/2005/Atom">
<channel>
<atom:link href="https://example.com/rss/feed/articles" rel="self" type="application/rss+xml"/> <title>example BETA article Feed</title>
<link>https://example.com</link>
<description>A feed of the articles from example.com</description>
<language>en-US</language>
<image>
<url>https://example.com/var/ezwebin_site/storage/images/media/images/example-block-logo_rss.png</u
rl>
<title>Example article Feed</title>
<link>https://example.com</link>
</image>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/def"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$topics</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>,
<a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #cc66cc;">77</span>,
<span style="color: #dd0000;">'limit'</span>, <span style="color: #cc66cc;">30</span>, <span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/looping/foreach"><span style="color: #0600FF;">foreach</span></a> <span style="color: #0000bb;">$topics</span> <span style="color: #0600FF;">as</span> <span style="color: #0000bb;">$t</span><span style="color: #66cc66;">}</span>
<item>
<title><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t.object.owner.data_map.pen_name.has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.object.owner.data_map.pen_name.content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.data_map.author.data_text</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span>: <span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.name</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">|</span>was
h<span style="color: #66cc66;">}</span></title>
<author>[email protected] (<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t.object.owner.data_map.pen_name.has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.object.owner.data_map.pen_name.content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.data_map.author.data_text</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a>
<span style="color: #66cc66;">}</span>)</author>
<link>https://example.com/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.url_alias</span><span style="color: #66cc66;">}</span></link>
<guid>https://example.com/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.url_alias</span><span style="color: #66cc66;">}</span></guid>
<description><![CDATA[<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.data_map.body.content.output.output_text</span><span style="color: #66cc66;">}</span>]]></description>
<pubDate><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.object.published</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/formatting_and_internationalization/datetime"><span style="color: #0600FF;">datetime</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'custom'</span>, <span style="color: #dd0000;">'%D, %d %M %Y %H:%i:%s PDT'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></pubDate><span style="color: #808080; font-style: italic;">{*
<pubDate>Sat, 04 Jul 2010 13:54:12 GMT</pubDate> *}</span>
</item>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/looping/foreach"><span style="color: #0600FF;">foreach</span></a><span style="color: #66cc66;">}</span>
</channel>
</rss>
</pre><a name="eztoc601420_2_3" id="eztoc601420_2_3"></a><h3>Podcast RSS Feed</h3><p>Example uri, '/layout/set/podcast'</p> <pre class="eztemplate" style="font-family:monospace;">
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/def"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$podcast_node_id</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">4200
</span> <span style="color: #0000bb;">$max_episodes</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">50
</span> <span style="color: #0000bb;">$podcast</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'node'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'node_id'</span>, <span style="color: #0000bb;">$podcast_node_id</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$episodes</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #0000bb;">$podcast_node_id</span>,
<span style="color: #dd0000;">'limit'</span>, <span style="color: #0000bb;">$max_episodes</span>,
<span style="color: #dd0000;">'class_filter_type'</span>, <span style="color: #dd0000;">'include'</span>,
<span style="color: #dd0000;">'class_filter_array'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'podcast_episode'</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$podcastDescription</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">'Example.com: The home of ...'</span>
<span style="color: #0000bb;">$podcastItunesSubtitle</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">'Example subtitle'</span>
<span style="color: #0000bb;">$podcastItunesSummary</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">'Example summary'</span>
<span style="color: #0000bb;">$podcastItunesKeywords</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">'Example, keywords'</span>
<span style="color: #0000bb;">$podcastItunesCategory</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">'News &amp; Opinion'</span>
<span style="color: #0000bb;">$podcastImageUrl</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/concat"><span style="color: #0600FF;">concat</span></a><span style="color: #66cc66;">(</span></span><span style="color: #dd0000;">'https://'</span>,<a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/ezsys"><span style="color: #0600FF;">ezsys</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'hostname'</span><span style="color: #66cc66;">)</span>,<span style="color: #dd0000;">'/extension/example/design/ezwebin/images/podcast/blocklogo144.jpg'</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$podcastItunesImageUrl</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/concat"><span style="color: #0600FF;">concat</span></a><span style="color: #66cc66;">(</span></span><span style="color: #dd0000;">'https://'</span>,<a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/ezsys"><span style="color: #0600FF;">ezsys</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'hostname'</span><span style="color: #66cc66;">)</span>,<span style="color: #dd0000;">'/extension/example/design/ezwebin/images/podcast/ituneslogo.jpg'</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$podcastTitle</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><span style="color: #0000bb;">$podcast.data_map.title.content</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/wash"><span style="color: #0600FF;">wash</span></a>
</span> <span style="color: #0000bb;">$siteUrl</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">'https://example.com'</span>
<span style="color: #0000bb;">$podcastUrl</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/concat"><span style="color: #0600FF;">concat</span></a><span style="color: #66cc66;">(</span><span style="color: #0000bb;">$siteUrl</span>,</span><span style="color: #dd0000;">'/rss/feed/podcast'</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$podcastPageUrl</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/concat"><span style="color: #0600FF;">concat</span></a><span style="color: #66cc66;">(</span><span style="color: #0000bb;">$siteUrl</span>,</span><span style="color: #dd0000;">'/podcast'</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$podcastItunesEmail</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">'[email protected]'</span>
<span style="color: #0000bb;">$audioFileUrl</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">''</span>
<span style="color: #0000bb;">$audioFileLength</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">''</span>
<span style="color: #0000bb;">$episodeDatamap</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">''</span>
<span style="color: #66cc66;">}</span><?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:itunes="https://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel>
<title><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastTitle</span><span style="color: #66cc66;">}</span></title>
<link><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$siteUrl</span><span style="color: #66cc66;">}</span></link>
<description><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastDescription</span><span style="color: #66cc66;">}</span></description>
<language>en-US</language>
<copyright>(C) example.com <span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/currentdate"><span style="color: #0600FF;">currentdate</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/formatting_and_internationalization/datetime"><span style="color: #0600FF;">datetime</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'custom'</span>, <span style="color: #dd0000;">'%Y'</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></copyright>
<image>
<url><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastImageUrl</span><span style="color: #66cc66;">}</span></url>
<title><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastTitle</span><span style="color: #66cc66;">}</span></title>
<link><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$siteUrl</span><span style="color: #66cc66;">}</span></link>
<width>144</width>
<height>144</height>
</image>
<atom:link href="<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastUrl</span><span style="color: #66cc66;">}</span>" rel="self" type="application/rss+xml"/>
<category><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastItunesCategory</span><span style="color: #66cc66;">}</span></category>
<itunes:image href="<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastItunesImageUrl</span><span style="color: #66cc66;">}</span>" /> <itunes:author>example.com</itunes:author>
<itunes:subtitle><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastItunesSubtitle</span><span style="color: #66cc66;">}</span></itunes:subtitle>
<itunes:summary><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastItunesSummary</span><span style="color: #66cc66;">}</span></itunes:summary>
<itunes:keywords><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastItunesKeywords</span><span style="color: #66cc66;">}</span></itunes:keywords>
<itunes:explicit>no</itunes:explicit>
<itunes:owner>
<itunes:name>example.com</itunes:name>
<itunes:email><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastItunesEmail</span><span style="color: #66cc66;">}</span></itunes:email>
</itunes:owner>
<itunes:block>no</itunes:block>
<itunes:category text="<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastItunesCategory</span><span style="color: #66cc66;">}</span>"/>
<pubDate><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$episodes</span><span style="color: #66cc66;">[</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">]</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$episodes</span><span style="color: #66cc66;">[</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">]</span>.data_map.published.has_content<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodes</span><span style="color: #66cc66;">[</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">]</span>.data_map.published.content.timestamp<span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/formatting_and_internationalization/datetime"><span style="color: #0600FF;">datetime</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'custom'</span>, <span style="color: #dd0000;">'%D, %d %M %Y %H:%
i:%s -0700'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodes</span><span style="color: #66cc66;">[</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">]</span>.object.published<span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/formatting_and_internationalization/datetime"><span style="color: #0600FF;">datetime</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'custom'</span>, <span style="color: #dd0000;">'%D, %d %M %Y %H:%i:%s -0700'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span></pubDate>
<lastBuildDate><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/currentdate"><span style="color: #0600FF;">currentdate</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/formatting_and_internationalization/datetime"><span style="color: #0600FF;">datetime</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'custom'</span>, <span style="color: #dd0000;">'%D, %d %M %Y %H:%i:%s -0700'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></lastBuildDate>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/looping/foreach"><span style="color: #0600FF;">foreach</span></a> <span style="color: #0000bb;">$episodes</span> <span style="color: #0600FF;">as</span> <span style="color: #0000bb;">$episode</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/set"><span style="color: #0600FF;">set</span></a> <span style="color: #0000bb;">$episodeDatamap</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><span style="color: #0000bb;">$episode.data_map</span>
</span> <span style="color: #0000bb;">$audioFileUrl</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><span style="color: #0000bb;">$episodeDatamap.audio.content</span>
</span> <span style="color: #0000bb;">$audioFileLength</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><span style="color: #0000bb;">$episodeDatamap.audio_length.content</span>
<span style="color: #66cc66;">}</span></span>
<item>
<title><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episode.name</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/wash"><span style="color: #0600FF;">wash</span></a><span style="color: #66cc66;">}</span></title>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$episodeDatamap.audio.has_content</span><span style="color: #66cc66;">}</span>
<link><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$audioFileUrl</span><span style="color: #66cc66;">}</span></link>
<span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span>
<link><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$podcastPageUrl</span><span style="color: #66cc66;">}</span></link>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span>
<description><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap.description.content</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/wash"><span style="color: #0600FF;">wash</span></a><span style="color: #66cc66;">}</span></description>
<pubDate><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$episodeDatamap.published.has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap.published.content.timestamp</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/formatting_and_internationalization/datetime"><span style="color: #0600FF;">datetime</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'custom'</span>, <span style="color: #dd0000;">'%D, %d %M %Y %H:%i:%s -0700'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episode.object.published</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/formatting_and_internationalization/datetime"><span style="color: #0600FF;">datetime</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'custom'</span>, <span style="color: #dd0000;">'%D, %d %M %Y %H:%i:%s -0700'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span></pubDate>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$episodeDatamap.audio.has_content</span><span style="color: #66cc66;">}</span>
<enclosure url="<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$audioFileUrl</span><span style="color: #66cc66;">}</span>" length="<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$audioFileLength</span><span style="color: #66cc66;">}</span>" type="audio/mpeg"/>
<guid isPermaLink="false"><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$audioFileUrl</span><span style="color: #66cc66;">}</span></guid>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span>
<category><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap.category.content</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/wash"><span style="color: #0600FF;">wash</span></a><span style="color: #66cc66;">}</span></category>
<itunes:author>example.com</itunes:author>
<itunes:subtitle><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap.subtitle.content</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/wash"><span style="color: #0600FF;">wash</span></a><span style="color: #66cc66;">}</span></itunes:subtitle>
<itunes:summary><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap.description.content</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/wash"><span style="color: #0600FF;">wash</span></a><span style="color: #66cc66;">}</span></itunes:summary>
<itunes:keywords><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap.keywords.content.keyword_string</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/wash"><span style="color: #0600FF;">wash</span></a><span style="color: #66cc66;">}</span></itunes:keywords>
<itunes:explicit><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$episodeDatamap.explicit.content</span><span style="color: #66cc66;">}</span>yes<span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span>no<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span></itunes:explicit>
<itunes:duration><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap.duration.content</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">}</span></itunes:duration>
</item>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/looping/foreach"><span style="color: #0600FF;">foreach</span></a><span style="color: #66cc66;">}</span>
</channel>
</rss>
</pre><a name="eztoc601420_2_4" id="eztoc601420_2_4"></a><h3>Comment RSS Feed</h3><p>Example uri, '/layout/set/comment'</p> <pre class="eztemplate" style="font-family:monospace;">
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/set-block"><span style="color: #0600FF;">set-block</span></a> <span style="color: #007700;">scope</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">root</span> <span style="color: #007700;">variable</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">cache_ttl<span style="color: #66cc66;">}</span></span>0<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/set-block"><span style="color: #0600FF;">set-block</span></a><span style="color: #66cc66;">}</span>
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="https://www.w3.org/2005/Atom">
<channel>
<atom:link href="https://example.com/rss/feed/comments" rel="self" type="application/rss+xml"/>
<title>Example Comment Feed</title>
<link>https://example.com</link>
<description>A feed of the comments from example.com.</description>
<language>en-US</language>
<image>
<url>https://example.com/var/ezwebin_site/storage/images/media/images/example-block-logo-rss.png</url>
<title>example BETA Comment Feed</title>
<link>https://example.com</link>
</image>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/def"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$topics</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>,
<a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #cc66cc;">77</span>,
<span style="color: #dd0000;">'limit'</span>, <span style="color: #cc66cc;">30</span>, <span style="color: #dd0000;">'depth'</span>, <span style="color: #cc66cc;">3</span>,
<span style="color: #dd0000;">'class_filter_type'</span>, <span style="color: #dd0000;">'include'</span>, <span style="color: #dd0000;">'class_filter_array'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'comment'</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$topics</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/variable_and_type_handling/count"><span style="color: #0600FF;">count</span></a><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/gt"><span style="color: #0600FF;">gt</span></a><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/looping/foreach"><span style="color: #0600FF;">foreach</span></a> <span style="color: #0000bb;">$topics</span> <span style="color: #0600FF;">as</span> <span style="color: #0000bb;">$t</span><span style="color: #66cc66;">}</span>
<item>
<title><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t.object.owner.data_map.pen_name.has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.object.owner.data_map.pen_name.content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.data_map.author.data_text</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t.object.class</span>
_identifier<span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/eq"><span style="color: #0600FF;">eq</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'article'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span> : <span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.name</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">|</span>htmlentities<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span> on <span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.parent.name</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/trim"><span style="color: #0600FF;">trim</span></a><span style="color: #66cc66;">|</span>htmlentities<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span></title>
<author><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.object.owner.data_map.user_account.content.email</span><span style="color: #66cc66;">}</span> (<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t.object.owner.data_map.pen_name.has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.object.owner.data_map.pen_name.content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.data_map.author.data_text</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span>)</author>
<link>https://example.com/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.parent.url_alias</span><span style="color: #66cc66;">}</span>/(comment)/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.node_id</span><span style="color: #66cc66;">}</span>#comment-<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.node_id</span><span style="color: #66cc66;">}</span></link>
<guid>https://example.com/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.parent.url_alias</span><span style="color: #66cc66;">}</span>/(comment)/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.node_id</span><span style="color: #66cc66;">}</span>#comment-<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.node_id</span><span style="color: #66cc66;">}</span></guid>
<description><![CDATA[<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.data_map.body.content.output.output_text</span><span style="color: #66cc66;">}</span>]]></description>
<pubDate><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t.object.published</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/formatting_and_internationalization/datetime"><span style="color: #0600FF;">datetime</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'custom'</span>, <span style="color: #dd0000;">'%D, %d %M %Y %H:%i:%s PDT'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></pubDate><span style="color: #808080; font-style: italic;">{*
<pubDate>Sat, 04 Jul 2010 13:54:12 GMT</pubDate> *}</span>
</item>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/looping/foreach"><span style="color: #0600FF;">foreach</span></a><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span>
</channel>
</rss>
</pre><a name="eztoc601420_2_5" id="eztoc601420_2_5"></a><h3>Article Statistics CSV Export</h3><p>Example uri, '/layout/set/article_statistics.csv?startDate=2010-07-14&endDate=2010-07-19'</p> <pre class="eztemplate" style="font-family:monospace;">
<span style="color: #808080; font-style: italic;">{* Example: https://example.com/layout/set/article_statistics.csv?startDate=2010-07-14&endDate=2010-07-19 *}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/def"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$articles</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$commentCount</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleTitle</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleOwner</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleDate</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleTime</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleWordCount</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleFollowCount</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleShareCount</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/and"><span style="color: #0600FF;">and</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/ezhttp_hasvariable"><span style="color: #0600FF;">ezhttp_hasvariable</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'startDate'</span>, <span style="color: #dd0000;">'get'</span> <span style="color: #66cc66;">)</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/ezhttp_hasvariable"><span style="color: #0600FF;">ezhttp_hasvariable</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'endDate'</span>, <span style="color: #dd0000;">'get'</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/def"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$startDate</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/ezhttp"><span style="color: #0600FF;">ezhttp</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'startDate'</span>, <span style="color: #dd0000;">'get'</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/explode"><span style="color: #0600FF;">explode</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">"-"</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$endDate</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/ezhttp"><span style="color: #0600FF;">ezhttp</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'endDate'</span>, <span style="color: #dd0000;">'get'</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/explode"><span style="color: #0600FF;">explode</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">"-"</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/def"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$startDateTimestamp</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/miscellaneous/maketime"><span style="color: #0600FF;">maketime</span></a><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #0000bb;">$startDate.1</span>,<span style="color: #0000bb;">$startDate.2</span>,<span style="color: #0000bb;">$startDate.0</span><span style="color: #66cc66;">)</span>
</span> <span style="color: #0000bb;">$endDateTimestamp</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/miscellaneous/maketime"><span style="color: #0600FF;">maketime</span></a><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">23</span>,<span style="color: #cc66cc;">59</span>,<span style="color: #cc66cc;">59</span>,<span style="color: #0000bb;">$endDate.1</span>,<span style="color: #0000bb;">$endDate.2</span>,<span style="color: #0000bb;">$endDate.0</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/set"><span style="color: #0600FF;">set</span></a> <span style="color: #0000bb;">$articles</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span>
<span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #cc66cc;">77</span>,
<span style="color: #dd0000;">'class_filter_type'</span>, <span style="color: #dd0000;">'include'</span>,
<span style="color: #dd0000;">'class_filter_array'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'article'</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'attribute_filter'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <span style="color: #dd0000;">'>='</span>, <span style="color: #0000bb;">$startDateTimestamp</span> <span style="color: #66cc66;">)</span>,
<a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <span style="color: #dd0000;">'<'</span>, <span style="color: #0000bb;">$endDateTimestamp</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/set"><span style="color: #0600FF;">set</span></a> <span style="color: #0000bb;">$articles</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span>
<span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #cc66cc;">77</span>,
<span style="color: #dd0000;">'class_filter_type'</span>, <span style="color: #dd0000;">'include'</span>,
<span style="color: #dd0000;">'class_filter_array'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'article'</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'limit'</span>, <span style="color: #cc66cc;">10000</span>
<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span>"Date","Time","Title","Who","Words","Comments","Followers","Shared","Post or Comment","Url"
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/looping/foreach"><span style="color: #0600FF;">foreach</span></a> <span style="color: #0000bb;">$articles</span> <span style="color: #0600FF;">as</span> <span style="color: #0000bb;">$con</span><span style="color: #66cc66;">}</span><span style="color: #808080; font-style: italic;">{* article variables count etc. Counts the words in the body xml string *}</span><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/set"><span style="color: #0600FF;">set</span></a>
<span style="color: #0000bb;">$commentCount</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'tree_count'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span>
<span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #0000bb;">$con.object.main_node_id</span>,
<span style="color: #dd0000;">'class_filter_type'</span>, <span style="color: #dd0000;">'include'</span>,
<span style="color: #dd0000;">'class_filter_array'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'comment'</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleTitle</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><span style="color: #0000bb;">$con.object.name</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/explode"><span style="color: #0600FF;">explode</span></a><span style="color: #66cc66;">(</span></span><span style="color: #dd0000;">'"'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/implode"><span style="color: #0600FF;">implode</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">""</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleOwner</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><span style="color: #0000bb;">$con.object.owner.name</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/explode"><span style="color: #0600FF;">explode</span></a><span style="color: #66cc66;">(</span></span><span style="color: #dd0000;">'"'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/implode"><span style="color: #0600FF;">implode</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">""</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleWordCount</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><span style="color: #0000bb;">$con.data_map.body.content.output.output_text</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/explode"><span style="color: #0600FF;">explode</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'>'</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/implode"><span style="color: #0600FF;">implode</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'> '</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span>strip_tags<span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/simplify"><span style="color: #0600FF;">simplify</span></a><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/explode"><span style="color: #0600FF;">explode</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">' '</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/variable_and_type_handling/count"><span style="color: #0600FF;">count</span></a>
<span style="color: #0000bb;">$articleFollowCount</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'example'</span>, <span style="color: #dd0000;">'getfollowerscount'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'id'</span>, <span style="color: #0000bb;">$con.node_id</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleShareCount</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'example'</span>, <span style="color: #dd0000;">'getsharecounts'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'id'</span>, <span style="color: #0000bb;">$con.node_id</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleDate</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><span style="color: #0000bb;">$con.object.published</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/formatting_and_internationalization/datetime"><span style="color: #0600FF;">datetime</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'custom'</span>, <span style="color: #dd0000;">'%d-%M'</span> <span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$articleTime</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><span style="color: #0000bb;">$con.object.published</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/formatting_and_internationalization/datetime"><span style="color: #0600FF;">datetime</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'custom'</span>, <span style="color: #dd0000;">'%h:%i:%s %A'</span> <span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">}</span>
"<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$articleDate</span><span style="color: #66cc66;">}</span>",<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$articleTime</span><span style="color: #66cc66;">}</span>,"<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$articleTitle</span><span style="color: #66cc66;">}</span>","<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$articleOwner</span><span style="color: #66cc66;">}</span>",<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$articleWordCount</span><span style="color: #66cc66;">}</span>,<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$commentCount</span><span style="color: #66cc66;">}</span>,<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$articleFollowCount</span><span style="color: #66cc66;">}</span>,<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$articleShareCount</span><span style="color: #66cc66;">}</span>,"P","https://example.com/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$con.url_alias</span><span style="color: #66cc66;">}</span>"
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/looping/foreach"><span style="color: #0600FF;">foreach</span></a><span style="color: #66cc66;">}</span>
</pre><a name="eztoc601420_3" id="eztoc601420_3"></a><h2>References</h2>
<ul>
<li>Doc: <a href="https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Modules/layout" target="_self">Offical layout module documentation</a></li>
<li>Doc: <a href="https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Modules/layout/As-promised/%28language%29/eng-GB" target="_self">A word about using layout.ini for printer friendly pagelayout.</a></li>
<li>Doc: <a href="https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-operators/URLs/ezurl/Layout/%28language%29/eng-GB" target="_self">A comment about layout.ini settings</a></li>
<li>Forum: <a href="https://share.ez.no/forums/developer/pagelayout-icalendar" target="_self">custom icalendar pagelayout example</a></li>
<li>Forum: <a href="https://share.ez.no/forums/developer/disable-debug-for-custom-layouts-layout-set-xyz" target="_self">disable debug for custom layout/set layouts</a></li>
<li>Forum: <a href="https://share.ez.no/forums/setup-design/solved-no-viewcache-with-layout-set" target="_self">view cache with layout/set</a></li>
<li>Search: <a href="https://www.google.com/cse?cx=016925729212334848828:gr8yusdgz9g&cof=FORID:0&q=layout/set&sa=GooZee+Search" target="_self">layout/set</a></li>
</ul>
[email protected] (Heath )f6fe2780bd13cd5ddda1537962f306daThu, 21 Oct 2010 09:25:13 +0000Albin Spreizer
https://ezpedia.org/people/albin_spreizer
<p>Hallo Welt</p>[email protected] (Albin Spreizer)cb575c6ebfc0269b359565f5bb7322abFri, 15 Oct 2010 08:48:16 +0000How to fetch content based on view parameter date range
https://ezpedia.org/solution/how_to_fetch_content_based_on_view_parameter_date_range
<a name="eztoc555061_1" id="eztoc555061_1"></a><h2>Summary</h2><p>This solution is template based and very simple.</p><p>It optionally relies on view parameters to provide a date range with which to limit the fetch results.</p> <pre class="eztemplate" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">{* Example: https://example/layout/set/content_statistics.csv/(startDate)/2010-07-14/(endDate)/2010-07-19/ *}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/def"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$articles</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/and"><span style="color: #0600FF;">and</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/variable_and_type_handling/is_set"><span style="color: #0600FF;">is_set</span></a><span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$view_parameters.startDate</span> <span style="color: #66cc66;">)</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/variable_and_type_handling/is_set"><span style="color: #0600FF;">is_set</span></a><span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$view_parameters.endDate</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/def"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$startDate</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><span style="color: #0000bb;">$view_parameters.startDate</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/explode"><span style="color: #0600FF;">explode</span></a><span style="color: #66cc66;">(</span></span><span style="color: #dd0000;">"-"</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$endDate</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><span style="color: #0000bb;">$view_parameters.endDate</span><span style="color: #66cc66;">|</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/explode"><span style="color: #0600FF;">explode</span></a><span style="color: #66cc66;">(</span></span><span style="color: #dd0000;">"-"</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/def"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$startDateTimestamp</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/miscellaneous/maketime"><span style="color: #0600FF;">maketime</span></a><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #0000bb;">$startDate.1</span>,<span style="color: #0000bb;">$startDate.2</span>,<span style="color: #0000bb;">$startDate.0</span><span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$endDateTimestamp</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/miscellaneous/maketime"><span style="color: #0600FF;">maketime</span></a><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">23</span>,<span style="color: #cc66cc;">59</span>,<span style="color: #cc66cc;">59</span>,<span style="color: #0000bb;">$endDate.1</span>,<span style="color: #0000bb;">$endDate.2</span>,<span style="color: #0000bb;">$endDate.0</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/set"><span style="color: #0600FF;">set</span></a> <span style="color: #0000bb;">$articles</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span>
<span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #cc66cc;">77</span>,
<span style="color: #dd0000;">'class_filter_type'</span>, <span style="color: #dd0000;">'include'</span>,
<span style="color: #dd0000;">'class_filter_array'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'article'</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'attribute_filter'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <span style="color: #dd0000;">'>='</span>, <span style="color: #0000bb;">$startDateTimestamp</span> <span style="color: #66cc66;">)</span>,
<a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <span style="color: #dd0000;">'<'</span>, <span style="color: #0000bb;">$endDateTimestamp</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span>else<span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/variables/set"><span style="color: #0600FF;">set</span></a> <span style="color: #0000bb;">$articles</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span>
<span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #cc66cc;">77</span>,
<span style="color: #dd0000;">'class_filter_type'</span>, <span style="color: #dd0000;">'include'</span>,
<span style="color: #dd0000;">'class_filter_array'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'article'</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/false"><span style="color: #0600FF;">false</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'limit'</span>, <span style="color: #cc66cc;">10000</span>
<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_control_structures/conditional_control/if"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span></pre><a name="eztoc555061_2" id="eztoc555061_2"></a><h2>References</h2><p>These forum threads were the basis for this solution. Thanks to the contributors for the hints and tips.</p>
<ul>
<li><a href="https://share.ez.no/forums/setup-design/fetch-by-published-date" target="_self">Forum: Fetch by published date</a></li>
<li><a href="https://share.ez.no/forums/setup-design/a-news-archive-by-month-problem-filtering-by-date#comment15719" target="_self">Forum: a-news-archive-by-month-problem-filtering-by-date</a></li>
<li><a href="https://share.ez.no/forums/setup-design/news-section-only-in-the-first-page#comment15234" target="_self">Forum: news-section-only-in-the-first-page</a></li>
</ul>
[email protected] (Graham Brookins)158338e78ca27ce49bbd322bae8df61aWed, 21 Jul 2010 17:48:13 +0000Google Webmaster Tools
https://ezpedia.org/solution/google_webmaster_tools
<p>In order to register your eZ Publish website in <a href="https://www.google.com/webmasters/tools/home" target="_self">Google Webmaster Tools</a>, you need to verify you are the owner of the site. One possibility, and in case of eZ Publish the easiest, is adding an additional HTML meta header to your web pages.</p><p>You can add the verification code you get from Google Webmaster tools, In the site.ini.append.php file</p>
<ul>
<li>either as a global override (settings/override/site.ini.append.php)</li>
<li>or just for specific site accesses (settings/siteaccess/[yoursiteaccessname]/site.ini.append.php)</li>
</ul>
<pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">[</span>SiteSettings<span style="">]</span></span>
MetaDataArray<span style="color: #000066; font-weight:bold;"><span style="">[</span>verify-v1<span style="">]</span></span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">yourgooglewebmastertoolscode</span>
</pre>[email protected] (Kristof Coomans)c325a551460234d9f44f38a1e5cb2677Thu, 08 Jul 2010 18:04:20 +0000Simple fromString and toString interface for attributes
https://ezpedia.org/ez/simple_fromstring_and_tostring_interface_for_attributes
<a name="eztoc452471_1" id="eztoc452471_1"></a><h2>Simple fromString and toString interface for attributes</h2><p>This is a copy of only document available that describes the <b>extremely useful</b> toString and fromString functions of datatypes, which greatly simplify storing and retrieving attributes in php.</p><p>This is a design document, so there may be some inaccuracies but it seems to work ok into the 4.2 series. It is recommended to verify the format of not-trivial datatypes by doing toString on attribute of that type with data in it and examining output.</p><p>Source: <a href="https://pubsvn.ez.no/nextgen/trunk/doc/features/3.9/to_from_string_datatype_functionality.txt" target="_self">https://pubsvn.ez.no/nextgen/trunk/doc/features/3.9/to_from_string_datatype_functionality.txt</a></p><p>To simplify writing of import export scripts we have added two functions to the ezcontentobjectattribute class. Also related functions with the same name have been added to the datype interfase and to all datatypes in standard eZ Publish distribution exept of ezenum which is now deprecated and ezpackage which is not used.</p><p>
To show possibilities of these functionality two scripts have been added under bin/php/. These scripts are very simple CSV import/export scripts:<br />
- ezcsvimport.php<br />
- ezcsvexport.php<br />
They are very basic and do not pretend to be fully functional CSV import/export for ezpublish though you can use them to do real import/export. Here is a description of formats which are accepted by the datatypes for <br />fromString( &$contentObjectAttribute, $string ), and generated by toString( $contentObjectAttribute ) methods.</p><p>
<b>ezauthor:</b><br />
To separate one author from another '&' char is used, to separate parts of author data '|' is used. The system escapes '|','&','\' with the '\' char.<br />Example of toString result:</p><p>Administrator User|[email protected]|0&Sergiy|[email protected]|1&SP|[email protected]|2</p><p>
To make it easy to parse such kind of strings the class ezstringutils is added under lib/ezutils. It has to functions as a members.<br />explodeStr( $str, $delimiter = '|' ) and implodeStr( $str, $delimiter = '|' ). The first one explodes string to an array with delimiter char, the difference from PHP explode/implode is that these functions do propper escaping/unescaping of all values.</p><p>
<b>ezbinaryfile:</b><br />
toString function of this datatype return string of format:<br />
filepath|original_filename<br />
filepath is to a file in filesystem so you can make copy of the file.<br />
original_filename is the original filename of uploaded file as string.<br />
To import binary file to the attribute you need to supply it with full path <br />to the source file, which will be copied into system.</p><p>
<b>ezboolean:</b><br />Returns and accepts 1 or 0 for true and false accordingly.</p><p>
<b>ezcountry:</b><br />
Returns comma-separated list of selected countries locale strings, ex.:<br />rus-RU,eng-GB,nor-NO</p><p>
<b>ezdate:</b><br />Returns and accepts unix timestamp of the date.</p><p>
<b>ezdatetime:</b><br />Returns and accepts unix timestamp of the date.</p><p>
<b>ezemail</b>:<br />Returns and accepts email address.</p><p>
<b>ezenum:</b><br />Not supported (deprecated)</p><p>
<b>ezfloat:</b><br />Returns and accepts float number.</p><p>
<b>ezimage:</b><br />Returns path to file containing original alias (size) of the image, so it can be copied. Accepts full path to original image you want to import, it will be copied into system.</p><p>
<b>ezinisetting:</b><br />Returns and accepts value of an inisetting.</p><p>
<b>ezinteger:</b><br />Returns and accepts integer value.</p><p>
<b>ezisbn:</b><br />Returns and accepts ISBN number as string</p><p>
<b>ezkeyword:</b><br />Returns and accepts comma separated list of keywords.</p><p>
<b>ezmatrix:</b><br />Identical to ezauthor datatype. The columns are sparated with '|' and rows are separated with '&'</p><p>
<b>ezmedia:</b><br />
toString function of this datatype return string of format:<br />
filepath|original_filename<br />
filepath is to a file in filesystem so you can make copy of the file.<br />
original_filename is the original filename of uploaded file as string.<br />
To import binary file to the attribute you need to supply it with full path <br />to the source file, which will be copied into system.</p><p>
<b>ezmultioption:</b><br />
The first '&' separated value is the name of multioption set, then each '&' separated string represents <br />
each option in multioption set. This string it self is '|' separated value, that consist of, in this order:<br />
_name_ of the option and the _id_ of option item which should be selected by default. After these two <br />values we have option_value and additional price for the option item.</p><p>
<b>ezmultiprice:</b><br />
The structure of a data handled by this data type is<br />
currency_name_1|value_1|type_of_price_1|currency_name_2|value_2|type_of_price_2|......currency_name_n|value_n|type_of_price_n|<br />
Where currency_name is thre char currency name like EUR,USD and so on,<br />
value is the price in this currency, <br />
and type can be AUTO or CUSTOM dependin on if the price in this currency <br />has been inserted by user or calculated automaticaly.</p><p>
<b>ezobjectrelation:</b><br />Returns and accepts ID of related object.</p><p>
<b>ezobjectrelationlist:</b><br />'-' separated list of related object ID's.</p><p>
<b>ezoption:</b><br />'|' separated list of name of the option and then | sparated list of option_item|additional item price values.</p><p>
<b>ezprice:</b><br />'|' separated list of price, VAT id, and flag wether VAT is included to the price or not.</p><p>
ezproductcategory:<br />
Returns '|' separated string with product category name and category id. Accepts just category <br />name as a papameter.</p><p>
<b>ezrangeoption:</b><br />'|' separated string contains name of the option, start,stop and step values for the option.</p><p>
<b>ezselection:</b><br />'|' separated list of selected item names.</p><p>
<b>ezstring:</b><br />Returns and accepts the string value.</p><p>
<b>eztext:</b><br />Returns and accepts the string value of eztext field.</p><p>
<b>eztime:</b><br />String with the time of the day in HH:MM , 24h format</p><p>
<b>ezurl:</b><br />string containing the url or a url|text</p><p>
<b>ezuser:</b><br />'|' separated string with user login, email, password hash, and password hash type.</p><p>
<b>ezxmltext:</b><br />Returns valid ez publish xml, and expects the same as input.</p>[email protected] (Charles-Edouard Coste)a2919ebac91b3452e15b043617d03ac7Fri, 29 Jan 2010 18:23:15 +0000Extended sort
https://ezpedia.org/ez/extended_sort
<a name="eztoc433795_1" id="eztoc433795_1"></a><h2>Requirements</h2><p>For taking proper advantage of this feature you should know something about:</p>
<ul>
<li>writing an extended_attribute_filter (<a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/modules/content/fetch_functions/list" target="_blank">fetch content list</a>)</li>
<li>SQL</li>
<li>the eZ Publish <a href="https://ez.no/ezpublish/documentation/reference/database_diagram" target="_blank">database layout</a></li>
</ul>
<a name="eztoc433795_2" id="eztoc433795_2"></a><h2>Function</h2><p>There is an undocumented feature in the eZ Publish <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/modules/content/fetch_functions/list" target="_self">fetch content list</a> function for sorting on arbitrary sql statements. On regular fetches this feature is not available. However, when including an extended_attribute_filter parameter in the fetch, eZ Publish allows the user to sort on any arbitrary sql clause.</p><a name="eztoc433795_3" id="eztoc433795_3"></a><h2>Use</h2><p>Add an empty 'extended_attribute_filter' parameter in the fetch like this: <i>'extended_attribute_filter', hash()</i>. Then add a 'sort_by' parameter, like this: <i>'sort_by', $sql_statement</i>.</p><p>The sql string in the $sql_statement variable is inserted directly in the ORDER BY sql clause. Tables included by a regular <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/modules/content/fetch_functions/list" target="_self">fetch content list</a> are:</p>
<ul>
<li>ezcontentobject_tree</li>
<li>ezcontentobject</li>
<li>ezcontentobject_name</li>
<li>ezcontentclass</li>
</ul>
<p>which means that any fields within these tables can be used in the $sql_statement string. If a <i>sort_by attribute</i> is involved, the ezcontentobject_attribute table are also included.</p><p>Furthermore, if required one can add other tables in an extended_attribute_filter's code, giving you access to sort on any field or combination of fields in the database.</p><a name="eztoc433795_4" id="eztoc433795_4"></a><h2>Examples</h2> <pre class="eztemplate" style="font-family:monospace;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #cc66cc;">2</span>,
<span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'ezcontentclass.identifier '</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/true"><span style="color: #0600FF;">true</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'extended_attribute_filter'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
</pre><p>This example will sort the resulting node list by the class identifier string. Note that this will not work if the extended_attribute_filter parameter is not included.</p> <pre class="eztemplate" style="font-family:monospace;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #cc66cc;">2</span>,
<span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">' RAND() '</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/true"><span style="color: #0600FF;">true</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'extended_attribute_filter'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
</pre><p>This example will give a randomized list of nodes. This is not possible to do without the extended sort feature.</p> <pre class="eztemplate" style="font-family:monospace;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #cc66cc;">2</span>,
<span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'cast( a0.data_text as unsigned )'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/true"><span style="color: #0600FF;">true</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>,
<a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'attribute'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/true"><span style="color: #0600FF;">true</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>, <span style="color: #dd0000;">'article/select_attribute'</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'extended_attribute_filter'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
</pre><p>This sorts an attribute of the selection datatype in the article class by the selection id as a number (and not by selection id as a string, as is default for this datatype, which makes the sort fail on id's above 9). The second sort element tricks the fetch into including the ezcontentobject_attribute table in the sql, named as a0, but will not have any effect on the actual sorting.</p> <pre class="eztemplate" style="font-family:monospace;"><a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/fetch"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'list'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'parent_node_id'</span>, <span style="color: #cc66cc;">2</span>,
<span style="color: #dd0000;">'sort_by'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'obj.name '</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/logical_operations/true"><span style="color: #0600FF;">true</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>,
<span style="color: #dd0000;">'extended_attribute_filter'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'id'</span>, <span style="color: #dd0000;">'ObjectRelationSortFilter'</span>,
<span style="color: #dd0000;">'params'</span>, <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/hash"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'relation_attribute_id'</span>, <span style="color: #cc66cc;">337</span>,
<span style="color: #dd0000;">'related_class_attribute_id'</span>, <span style="color: #cc66cc;">343</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span></pre><p>Here is an example on how to sort the nodes by an attribute of the related objects in an object relations attribute.</p><p>This example requires an extended_attribute_filter to include the right tables, the main function of the code for this follows...see the extended_attribute_filter documentation for setting up this.</p> <pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> sqlObjectRelationSort<span style="color: #009900;">(</span><span style="color: #000088;">$params</span><span style="color: #009900;">)</span>
<span style="color: #009900;">{</span>
<span style="color: #000088;">$sqlTables</span><span style="color: #339933;">=</span> <span style="color: #0000ff;">", ezcontentobject_tree AS node
LEFT JOIN ( ezcontentobject_link AS link, ezcontentobject AS obj, ezcontentobject_attribute AS attr )
ON ( node.contentobject_id = link.from_contentobject_id AND
node.contentobject_version = link.from_contentobject_version AND
link.contentclassattribute_id = <span style="color: #006699; font-weight: bold;">{$params['relation_attribute_id']}</span> AND
link.to_contentobject_id = obj.id AND
obj.id = attr.contentobject_id AND
obj.current_version = attr.version AND
attr.contentclassattribute_id = <span style="color: #006699; font-weight: bold;">{$params['related_class_attribute_id']}</span> )"</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sqlJoins</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">' ezcontentobject_tree.node_id = node.node_id AND '</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> <a href="https://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span> <span style="color: #0000ff;">'tables'</span> <span style="color: #339933;">=></span> <span style="color: #000088;">$sqlTables</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'joins'</span> <span style="color: #339933;">=></span> <span style="color: #000088;">$sqlJoins</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'columns'</span> <span style="color: #339933;">=></span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #009900;">}</span>
</pre><p>As you see, this filter requires two parameters. relation_attribute_id is used to specify the attribute id of the object relation. related_class_attribute_id is used to specify the attribute id of the related object that is to be sorted on. This function requires that all nodes are of the same class, and all related objects in the specified object relation attribute are of the same class.</p><p>This can potentially be further expanded to sort on the attributes of the children of the nodes. This is left as an excercise for the reader.</p><a name="eztoc433795_5" id="eztoc433795_5"></a><h2>Debugging</h2><p>Whenever developing extended_attribute_filters or extended sorting, switch on the SQL output in the debug in settings/override/site.ini.append.php:</p> <pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">[</span>DatabaseSettings<span style="">]</span></span>
<span style="color: #000099;">SQLOutput</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">enabled</span>
<span style="color: #000066; font-weight:bold;"><span style="">[</span>DebugSettings<span style="">]</span></span>
<span style="color: #000099;">DebugOutput</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">enabled</span>
</pre><p>If you can't immediately see what is wrong, copy the complete sql statement from debug and paste it into your favourite SQL program. It is a lot easier to make the sql work there than to test it against eZ Publish.</p>[email protected] (Arne B.)97c39d702f96acb104718012d5d3c74aTue, 01 Dec 2009 16:00:35 +0000indexing/searching pdf files with accented chars
https://ezpedia.org/solution/indexing_searching_pdf_files_with_accented_chars
<p>eZpublish needs external tools for pdf file indexing. Path to that tool is set in binaryfile.ini</p><p>Originally i was using the pstotext too, but it does not work well and often gives garbage as output. Better tool is pdftotext from xpdf project, as suggested in <a href="https://ez.no/ezpublish/documentation/configuration/optimization/speeding_up_acrobat_pdf_document_indexing_" target="_self">this article.</a> </p><p>In my case the above was not enough, as pdf files apparently are in iso-8859-1 but eZpublish expects UTF-8 as input.</p><p>So, the contents of ezpdftotext should be:</p> <pre class="" style="font-family:monospace;">#!/bin/sh
pdftotext $1 -|iconv -f ISO-<span style="">8859</span>-<span style="">1</span> -t UTF-<span style="">8</span></pre>[email protected] (zurgutt -)cfa071318c69caddd7780b3fd168bbadThu, 24 Sep 2009 13:53:57 +0000What to do if ez publish loads a blank page or error?
https://ezpedia.org/solution/what_to_do_if_ez_publish_loads_a_blank_page_or_error
<p>Clear the caches using a shell command (in sites root folder):</p><p>php bin/php/ezcache.php --clear-all --purge</p><p>Check var/log/error.log and php error log for more information. </p>[email protected] (mvp mvp)4ca2ca2d924e6eb1473107be135d19a4Mon, 31 Aug 2009 10:10:16 +0000Heath
https://ezpedia.org/people/heath
<a name="eztoc386282_1" id="eztoc386282_1"></a><h2>About</h2><p>I develop php web applications using eZ Publish</p><p>I also help others by answering questions on the ez.no <a href="https://ez.no/developer/forum" target="_blank">forums</a></p><p>I am interested in contributing to your documentation project.</p><p>I'm not certain where I will start writing perhaps within your discussions answering questions.</p><a name="eztoc386282_2" id="eztoc386282_2"></a><h2>Links</h2>
<ul>
<li>Google search of ez.no <a href="https://www.google.com/search?q=Heath&as_sitesearch=ez.no/developer/forum" target="_blank">forums</a> for my support of the eZ Community. </li>
<li>I try to answer as many questions and help as many people as possible with eZ Publish.</li>
</ul>
[email protected] (Heath )108c95a768fdbbd07c7aee39fb856dc5Sat, 22 Aug 2009 10:59:01 +0000Install
https://ezpedia.org/ez/install
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc386242_1" id="eztoc386242_1"></a><h2>About</h2><p>Helpful information about installing the eZ Publish CMS</p><a name="eztoc386242_2" id="eztoc386242_2"></a><h2>Articles</h2>
<ul>
<li><a href="https://www.howtoforge.com/installing-ez-publish-on-ubuntu-7.10" target="_blank">https://www.howtoforge.com/installing-ez-publish-on-ubuntu-7.10</a></li>
<li><a href="https://wiki.gandi.net/en/hosting/using-linux/tutorials/gandiai/ezpublish" target="_blank">https://wiki.gandi.net/en/hosting/using-linux/tutorials/gandiai/ezpublish</a></li>
<li><a href="https://www.installationwiki.org/Installing_eZ_publish" target="_blank">https://www.installationwiki.org/Installing_eZ_publish</a></li>
<li><a href="https://www.ezsystems.ca/blog/setting_up_an_efficient_environment_for_working_with_ez_publish" target="_blank">https://www.ezsystems.ca/blog/setting_up_an_efficient_environment_for_working_with_ez_publish</a></li>
<li><a href="https://www.siteground.com/tutorials/ezpublish/ezpublish_installation.htm" target="_blank">https://www.siteground.com/tutorials/ezpublish/ezpublish_installation.htm</a></li>
</ul>
<a name="eztoc386242_3" id="eztoc386242_3"></a><h2>References</h2>
<ul>
<li>N/A</li>
</ul>
[email protected] (Xiongjie Chen)298b0acc1a1b87aa58b75ad50605c961Sat, 22 Aug 2009 09:45:07 +0000Performance Tuning eZ Publish 4
https://ezpedia.org/solution/performance_tuning_ez_publish_4
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc385882_1" id="eztoc385882_1"></a><h2>About</h2><p>Recommended eZ Publish 4 Apache configuration improvements for best possible production web server performance.</p><a name="eztoc385882_2" id="eztoc385882_2"></a><h2>Topics</h2><a name="eztoc385882_2_1" id="eztoc385882_2_1"></a><h3>Application / Web Server</h3><a name="eztoc385882_2_1_1" id="eztoc385882_2_1_1"></a><h4>Apache</h4><p>The basis of Apache PHP application server configuration requires virtual host configuration be stored within Apache solely.</p><a name="eztoc385882_2_1_1_1" id="eztoc385882_2_1_1_1"></a><h5>The htacess Problem</h5><p>The basis of Apache PHP application server configuration best practices for performance is preventing the use of <a href="https://www.ezpedia.org/fr/ez/htaccess" target="_self">htaccess</a> configuration usage as not-possible as it prevents best practices and reasonable performance.</p><p>This is because .htaccess files are check per http request, ie: per file included on webserver from browser within html page (including html page) ie many many times per requested page to set any required httpd / php application configuration variables / conditions / etc (ie: loading the web server configuration) from direct disk access each time (not cached).</p><p>This represents a tremendous systemic performance problem that can only be resolved by relocating all configuration changes to the Apache virtual host configuration file and disabling .htaccess file access completely.</p><p>Remember htacess files configuration syntax is almost always different than the same applicable syntax within an apche virtual host configuration file.</p><a name="eztoc385882_2_1_1_1_1" id="eztoc385882_2_1_1_1_1"></a><h6>Disable htaccess</h6><p>Here is an example of how to disable htacess file access using the AllowOverride None setting. This example would be added within your virtual host configuration file for your we eZ Publish installation within Apache.</p> <pre class="apache" style="font-family:monospace;"><<span style="color: #000000; font-weight:bold;">Directory</span> /var/www/path/to/ezpublish>
<span style="color: #00007f;">Options</span> <span style="color: #0000ff;">Indexes</span> <span style="color: #0000ff;">FollowSymLinks</span> MultiViews
<span style="color: #00007f;">AllowOverride</span> <span style="color: #0000ff;">None</span>
<span style="color: #00007f;">Order</span> <span style="color: #00007f;">allow</span>,<span style="color: #00007f;">deny</span>
<span style="color: #00007f;">allow</span> from <span style="color: #0000ff;">all</span>
</<span style="color: #000000; font-weight:bold;">Directory</span>>
</pre><a name="eztoc385882_2_1_1_2" id="eztoc385882_2_1_1_2"></a><h5>Recommended Apache Modules</h5>
<ul>
<li>mod_expire - Greatly improves performance</li>
<li>mod_rewrite - Greatly improves application server flexibility and provides for clean user friendly aka nice urls.</li>
</ul>
<a name="eztoc385882_2_1_2" id="eztoc385882_2_1_2"></a><h4>PHP</h4><p>I recommend increasing the following default php.ini variables to increase default limits to prevent future performance and upload limits from being reached as the default configuration is insufficient.</p>
<ul>
<li>memory_limit</li>
<li>max_input_time</li>
<li>upload_max_filesize</li>
<li>post_max_size</li>
</ul>
<a name="eztoc385882_2_2" id="eztoc385882_2_2"></a><h3>Database Server</h3><p>A word on database performance improvements.</p>
<ul>
<li>MYSQL</li>
<li>PGSQL</li>
<li>ORACLE</li>
<li>MSSQL</li>
</ul>
<a name="eztoc385882_3" id="eztoc385882_3"></a><h2>References</h2>
<ul>
<li>Doc: x</li>
<li>Article: x</li>
<li>Forum: x</li>
<li>Forum: x</li>
</ul>
[email protected] (Graham Brookins)352e4b052d5d7f24e982a37754b0625fThu, 20 Aug 2009 23:24:01 +0000Coding standards
https://ezpedia.org/ez/coding_standards
<div class="object-right"> <p class="editor_motivation">What follows is based on certified results and has been tested and proven in practice. Please discuss any corrections and additionally needed information before making changes.</p></div><a name="eztoc385874_1" id="eztoc385874_1"></a><h2>About</h2><p>About software coding standards</p><a name="eztoc385874_2" id="eztoc385874_2"></a><h2>General</h2><p>Enforcing a software coding convention is a recommended best prance</p><a name="eztoc385874_3" id="eztoc385874_3"></a><h2>What convention should I use?</h2><p>The answer is simple. It's your choice. Your free to choose.</p><p>Yet it is strongly recommended that you follow the recommended convention.</p><p>If you are creating an ezpublish extension / site use the ezpublish conventions as they are directly applicable.</p><p>However if you are creating an zetacomponent ezcomponent itself you will want to use the zetacomponents / ezcomponents conventions as they are directly applicable.</p><a name="eztoc385874_4" id="eztoc385874_4"></a><h2>eZ Publish</h2><p>eZ publish has it's own coding standard convention. This convention has evolved over time but the documentation regarding these improved methodologies.</p><p>Please note that eZ Publish coding standards were created before the introduction of the PSR / PSR2 code conventions for PHP and should be used instead of PSR.</p><a name="eztoc385874_5" id="eztoc385874_5"></a><h2>Zeta Components</h2><p>Zeta Components also has it's own coding standard convention </p><a name="eztoc385874_6" id="eztoc385874_6"></a><h2>eZ Components</h2><p>eZ Components also has it's own coding standard convention</p><a name="eztoc385874_7" id="eztoc385874_7"></a><h2>External references</h2>
<ul>
<li>Forum: <a href="https://ez.no/developer/forum/developer/ezpublish_coding_standards_up_to_date_where" target="_blank">eZ Publish Coding Standards, Up to date, Where.</a></li>
<li>Doc: <a href="https://web.archive.org/web/20070124095747/https://ez.no/ezpublish/documentation/development/standards/php" title="https://web.archive.org/web/20070124095747/https://ez.no/ezpublish/documentation/development/standards/php" target="_self">https://web.archive.org/web/20070124095747/https://ez.no/ezpublish/documentation/development/standards/php</a></li>
<li>Doc: <a href="https://zetacomponents.org/community/implementation.html" title="https://zetacomponents.org/community/implementation.html" target="_self">https://zetacomponents.org/community/implementation.html</a></li>
<li>Doc: <a href="https://ezcomponents.org/contributing/coding_standards#id8" title="https://ezcomponents.org/contributing/coding_standards#id8" target="_self">https://ezcomponents.org/contributing/coding_standards#id8</a></li>
</ul>
[email protected] (Graham Brookins)7bce805189c22bf07e152070e6331fafThu, 20 Aug 2009 22:59:04 +0000eZ Components
https://ezpedia.org/ez/ez_components
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><p><i>For a general description of eZ Components, we recommend</i>, <a href="https://en.wikipedia.org/wiki/EZ_Publish" target="_self">eZ Publish on Wikipedia</a> or <a href="https://ezcomponents.org/about" target="_self">eZ Components</a> on eZComponents.org.</p><a name="eztoc385826_1" id="eztoc385826_1"></a><h2>About</h2><a name="eztoc385826_2" id="eztoc385826_2"></a><h2>eZ Publish</h2><p>eZ Publish 4 adds a new installation requirements including eZ Components which must be installed and available.</p><a name="eztoc385826_3" id="eztoc385826_3"></a><h2>Articles</h2><a name="eztoc385826_4" id="eztoc385826_4"></a><h2>Reviews</h2><a name="eztoc385826_5" id="eztoc385826_5"></a><h2>References</h2>[email protected] (Graham Brookins)746672072a493ab6a9e3ea6520a9752dThu, 20 Aug 2009 16:32:47 +0000eZ Publish
https://ezpedia.org/ez/ez_publish
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><p><i>For a general description of eZ Publish, we recommend</i>, <a href="https://en.wikipedia.org/wiki/EZ_Publish" target="_self">eZ Publish on Wikipedia</a>.</p><a name="eztoc385802_1" id="eztoc385802_1"></a><h2>About</h2><p>eZ Systems website ez.no is a primary source of resources related to everything eZ Publish.</p><a name="eztoc385802_2" id="eztoc385802_2"></a><h2>Install</h2>
<ul>
<li>Checkout this article about <a href="https://www.ezpedia.org/fr/ez/install" target="_self">Installation</a> it has great 3rd party articles about installing eZ Publish.</li>
</ul>
<a name="eztoc385802_3" id="eztoc385802_3"></a><h2>Vendors</h2><p>eZ systems is the creator and primary supplier of eZ Publish software and services. eZ Systems has a number of partners worldwide which also offer additional services, software and support.</p><a name="eztoc385802_4" id="eztoc385802_4"></a><h2>Articles</h2>
<ul>
<li>None</li>
</ul>
<a name="eztoc385802_5" id="eztoc385802_5"></a><h2>References</h2>
<ul>
<li>None</li>
</ul>
[email protected] (Heath )7c8824d6b65cf2b415fd6e718415e255Thu, 20 Aug 2009 15:14:00 +0000Wei Dai
https://ezpedia.org/people/wei_dai
<p><b>About Me:</b></p><p>I come from China and live in China. David Adam is my English Name. :)</p>
<ul>
<li>Date of Birth: 1979-02-14</li>
<li>Home Town: Xiangtan, Hunan, Provence - Do you know the first Communist Leader of China, Mao? This is where he came from.</li>
<li>Employer: <a href="https://bysoft.fr" target="_blank">Bysofts</a> Since 2008</li>
</ul>
<p>I am interested in many things, including philosophy, sociology and economics.I am also a Zend Ceritified PHP5 engineer and Certified eZ Publish Developer. ^_^</p><a name="eztoc385514_0_0_1" id="eztoc385514_0_0_1"></a><h4>What I want to do:</h4><p>I can translate articles in English into Chinese, write articles in English and Chinese, and perhaps share some extensions from our own projects.</p><a name="eztoc385514_0_0_2" id="eztoc385514_0_0_2"></a><h4>Show your appreciation:</h4><p> If you want to show your appreciation for the things I help you with ... </p><p> </p><p> Then please think about <i>doing</i> something back: </p>
<ul>
<li> </li>
<li>
Correct the mistakes I made in some articles or comments. :)<br /> </li>
<li>Support our work, fund development and documentation which meets your own unique needs.</li>
<li> Share your own extensions as <i>free</i> software</li>
<li> Support organizations that support free up control of media and information in China. Pro liberty.</li>
</ul>
<p> Free your mind and spread freedom. </p><p> </p><p> Thank you! </p><a name="eztoc385514_0_1" id="eztoc385514_0_1"></a><h3>Website</h3><p><a href="https://readtheweb.info" target="_self">readtheweb</a> My personal blog on web development and other interesting things.</p>[email protected] (Wei Dai)bec1149b679bf6e5a85e81d50fb9263bThu, 20 Aug 2009 04:16:19 +0000FAQ For eZ Publish 3
https://ezpedia.org/ez/faq_for_ez_publish_3
<p>This page contains answers to some of the most frequently-asked questions from the forum.</p><a name="eztoc385034_1" id="eztoc385034_1"></a><h2>Preventing php maximum execution time exceeded errors </h2><p>If loading a page takes very long and then finally you get an fatal error "Maximum execution time of 30 seconds exceeded". What to do now?</p><p>If your looking for solution to preventing php <a href="https://www.ezpedia.org/fr/ez/maximum_execution_time_exceeded" target="_self">maximum execution time exceeded</a> errors, Increasing the <a href="https://www.php.net/manual/en/ref.info.php#ini.max-execution-time" target="_self">max_execution_time</a> PHP setting will mostly fix this problem. However, sometimes there are other solutions to the <a href="https://www.ezpedia.org/fr/ez/maximum_execution_time_exceeded" target="_self">maximum execution time exceeded</a> errors. You may also see this <a href="https://ez.no/community/forum/install_configuration/fatal_error_maximum_execution_time_of_30_seconds" target="_self">forum thread</a>.</p><a name="eztoc385034_2" id="eztoc385034_2"></a><h2>How do I remove index.php from URLs?</h2><p>Have a look at <a href="https://ezpedia.org/wiki/en/ez/solution_removing_index_php_from_urls" target="_self">this article</a>.</p><a name="eztoc385034_3" id="eztoc385034_3"></a><h2>Improving eZ publish environment and performance</h2><p>If your having performance problems review this <a href="https://ez.no/community/forum/setup_design/improving_ez_publish_environment_and_performance" target="_self">forum discussion</a>.</p><a name="eztoc385034_4" id="eztoc385034_4"></a><h2>Improving web server performance</h2><p>If your looking for the very best eZ Publish <a href="https://www.ezpedia.org/fr/ez/web_server_requirements" target="_self">web server</a> <a href="https://www.ezpedia.org/fr/ez/performance" target="_self">performance</a> have a look at this <a href="https://www.ezpedia.org/fr/ez/lighthttpd" target="_self">article on lighttpd</a>.</p><a name="eztoc385034_5" id="eztoc385034_5"></a><h2>Disabling language selection when creating content objects</h2><p>If your looking for a way to <a href="https://ez.no/community/forum/setup_design/disabling_language_selection_in_forum" target="_self">disabling language selection</a> durring the creation of content objects in the admin, forum, etc see this forum thread.</p><a name="eztoc385034_6" id="eztoc385034_6"></a><h2>Retrieving all packages for eZ Publish 3.8</h2><p>If your looking for a way to retrieve all <a href="https://www.ezpedia.org/fr/solution/package_retrieving_3_8_packages" target="_self">packages for an eZ Publish 3.8</a> installation, consider <a href="https://www.ezpedia.org/fr/learning/upgrading" target="_self">upgrading</a> x)</p><a name="eztoc385034_7" id="eztoc385034_7"></a><h2>Converting encoding from iso-8859-1 to utf-8</h2><p>If your looking for a way to convert your encoding from iso-8859-1 to utf-8 have a look at this <a href="https://ez.no/community/forum/general/convert_from_iso_8859_1_encoding_to_utf_8" target="_self">forum thread</a>.</p><a name="eztoc385034_8" id="eztoc385034_8"></a><h2>Importing content into eZ Publish</h2><p>If your looking for solutions to importing content into eZ Publish have a detailed review of <a href="https://www.ezpedia.org/fr/ez/import" target="_self">this article on import</a>.</p><a name="eztoc385034_9" id="eztoc385034_9"></a><h2>Supporting a payment gateway in eZ publish</h2><p>If your looking for information on how to support a payment gateway in eZ Publish have a <a href="https://www.ezpedia.org/fr/ez/payment_gateway" target="_self">thorough review of this article</a> and it's references.</p><a name="eztoc385034_10" id="eztoc385034_10"></a><h2>Comparing eZ publish with other software packages</h2><p>Have a look at <a href="https://www.ezpedia.org/fr/ez/comparison" target="_self">this article</a> with references to several different discussions on this topic.</p><a name="eztoc385034_11" id="eztoc385034_11"></a><h2>Variable $node is not provided in pagelayout.tpl</h2><p>This is just <a href="https://ez.no/deveAloper/forum/developer/caching_problem" target="_self">one</a> of <a href="https://ez.no/developer/forum/install_configuration/no_more_node_variable_in_pagelayout" target="_self">several</a> different <a href="https://ez.no/developer/forum/setup_design/folder_attribute_is_empty_when_page_is_reloaded" target="_self">examples</a> of a rather long story ends with the user creating and populating this variable by custom modification within their own pagelayout.tpl as this variable is no longer provided by the <a href="https://ez.no/ezpublish/documentation/customization/custom_design/template_variables_set_by_ezpublish" target="_self">default template variables set by eZ Publish</a> internally.</p>[email protected] (Graham Brookins)d3cde4b8962faa79a24d10e8d7aa5bd5Wed, 19 Aug 2009 07:25:47 +0000utf8
https://ezpedia.org/ez/utf8
<div class="object-right"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><p>For a general description of utf8 we recommend <a href="https://en.wikipedia.org/wiki/UTF-8" target="_self">utf8 on Wikipedia</a>.</p><a name="eztoc384272_1" id="eztoc384272_1"></a><h2>About</h2><p>utf8</p><a name="eztoc384272_2" id="eztoc384272_2"></a><h2>About</h2>
<ul>
<li>N/A</li>
</ul>
[email protected] (Graham Brookins)bc4a0b1fe2c49a5e5b369f5d527b9630Tue, 18 Aug 2009 11:17:33 +0000How to send email to users
https://ezpedia.org/ez/how_to_send_email_to_users
<a name="eztoc384120_1" id="eztoc384120_1"></a><h2>About</h2><p>Often customers ask to send users to website users.</p><p>This can be achieved by one of any number of means.</p><a name="eztoc384120_2" id="eztoc384120_2"></a><h2>Question</h2><p>I need to send an email to all registered members of a customer ecommerce site with existing users, forums and shop orders. How can this be achieved?</p><a name="eztoc384120_3" id="eztoc384120_3"></a><h2>Solutions</h2>
<ul>
<li>Take a look at the features offered by the more recently updated phplist extension.</li>
</ul>
<a name="eztoc384120_4" id="eztoc384120_4"></a><h2>References</h2>
<ul>
<li><a href="https://projects.ez.no/phplist" title="https://projects.ez.no/phplist" target="_self">https://projects.ez.no/phplist</a></li>
</ul>
[email protected] (Graham Brookins)48531fc88f477d68781588e9e0397fb1Mon, 17 Aug 2009 15:47:09 +0000How to enable large file upload support
https://ezpedia.org/ez/how_to_enable_large_file_upload_support
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc384096_1" id="eztoc384096_1"></a><h2>About</h2><p>Web applications basically must usually be configured to support large file uploads as well as web servers.</p><p>I can't begin to remember to forget the first time I configured eZ Publish v1.x and Apache 1.x to support large file uploads.</p><a name="eztoc384096_2" id="eztoc384096_2"></a><h2>Example</h2><p>Here is an example solution</p><a name="eztoc384096_2_1" id="eztoc384096_2_1"></a><h3>Steps</h3><p>It sounds like you want to optimize your web server and php configurations together to avoid this error.</p>
<ol>
<li>Evaluation: Which version of apache are you running?
<ol>
<li>Apache 1.3.x</li>
</ol>
<ul>
<li>This sounds strikingly similar to an apache 1.3 (large file upload) configuration issue I've learned to avoid over the years. set LimitRequestBody to an int (file size in bytes) value larger than your largest file.</li>
<li>I found I often needed this apache settings change along with the php settings changes to enable large file uploads with apache 1.3</li>
<li>Based on the size of the file being uploaded. Consider raising the values of the post_max_size to a larger value than the file being uploaded, as well as the value of max_input_time and max_execution_time beyond the amount of time required to complete the upload of the file.</li>
</ul>
</li>
<li>eZ 4.x, Edit ... to enable large file support withing web application.
<ol>
<li>Example missing. Must not be required (per say)</li>
</ol>
</li>
<li>PHP 5.x, Edit relevant php.ini configuration values
<ol>
<li> <pre class="ini" style="font-family:monospace;"><span style="color: #000099;">max_execution_time</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 45 </span><span style="color: #666666; font-style: italic;">; Maximum execution time of each script, in seconds</span>
<span style="color: #000099;">max_input_time</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 60 </span><span style="color: #666666; font-style: italic;">; Maximum amount of time each script may spend parsing request data</span>
<span style="color: #666666; font-style: italic;">;max_input_nesting_level = 64 ; Maximum input variable nesting level</span>
<span style="color: #000099;">memory_limit</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 258M </span><span style="color: #666666; font-style: italic;">; Maximum amount of memory a script may consume (128MB)</span>
<span style="color: #666666; font-style: italic;">; Maximum size of POST data that PHP will accept.</span>
<span style="color: #000099;">post_max_size</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 201M</span>
<span style="color: #666666; font-style: italic;">; Whether to allow HTTP file uploads.</span>
<span style="color: #000099;">file_uploads</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> On</span>
<span style="color: #666666; font-style: italic;">; Temporary directory for HTTP uploaded files (will use system default if not</span>
<span style="color: #666666; font-style: italic;">; specified).</span>
<span style="color: #666666; font-style: italic;">;upload_tmp_dir =</span>
<span style="color: #666666; font-style: italic;">; Maximum allowed size for uploaded files.</span>
<span style="color: #000099;">upload_max_filesize</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 201M</span>
</pre></li>
</ol>
</li>
<li>Clear eZ Caches and Restart Apache services</li>
</ol>
<a name="eztoc384096_3" id="eztoc384096_3"></a><h2>References</h2>
<ul>
<li>Forum: <a href="https://ez.no/developer/forum/general/how_upload_big_multimedia_file" target="_blank">How upload big multimedia file</a></li>
<li>Doc: <a href="https://www.ezpedia.org/fr/view-source:https://httpd.apache.org/docs/1.3/mod/core.html#limitrequestbody" target="_self">https://httpd.apache.org/docs/1.3/mod/core.html#limitrequestbody</a></li>
<li>Forum: <a href="https://www.ezpedia.org/fr/view-source:https://stackoverflow.com/questions/757111/large-file-upload-errors-with-php" target="_self">https://stackoverflow.com/questions/757111/large-file-upload-errors-with-php</a></li>
<li>Forum: <a href="https://www.ezpedia.org/fr/view-source:https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Q_23213263.html" target="_self">https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Q_23213263.html</a></li>
</ul>
[email protected] (Graham Brookins)98e431edcbd3983a052f29b156fdaa92Mon, 17 Aug 2009 15:31:07 +0000View count
https://ezpedia.org/ez/view_count
<a name="eztoc383792_1" id="eztoc383792_1"></a><h2>About</h2><p>eZ Publish provides a feature not enabled by default to count page views.</p><a name="eztoc383792_2" id="eztoc383792_2"></a><h2>References</h2>
<ul>
<li>Doc: N/A</li>
<li>Forum: N/A</li>
</ul>
[email protected] (Graham Brookins)b0ca4a02eb5bbb8055e3c37fa364ef4bMon, 17 Aug 2009 00:31:14 +0000eZ publish 3
https://ezpedia.org/ez/ez_publish_3
<a name="eztoc383398_1" id="eztoc383398_1"></a><h2>About</h2><p>eZ publish 3 represented a complete re-write when compared to eZ publish 2</p><a name="eztoc383398_2" id="eztoc383398_2"></a><h2>Features</h2><p>eZ publish 3 introduced several core new features</p>
<ul>
<li>content objects</li>
<li>content module</li>
<li>siteaccess settings</li>
<li>override settings</li>
<li>design extensions</li>
</ul>
[email protected] (Graham Brookins)e2e35d6a96404efab0f2beb500f99c58Sun, 16 Aug 2009 11:37:35 +0000Overriding kernel classes within an extension
https://ezpedia.org/solution/overriding_kernel_classes_within_an_extension
<div class="object-center"><p class="version_info">This feature is available since <a href="https://www.ezpedia.org/fr/ez/ez_publish_4_1_extension_incompatibilities" target="_self">eZ publish 4.1</a>.</p></div><a name="eztoc382488_1" id="eztoc382488_1"></a><h2>About</h2><p>The best way to override kernel classes within eZ Publish.</p><p>This article features solutions for both eZ Pubish 3 and eZ Publish 4.</p><p>Please notice that the primary solution described for eZ Publish 4 is a supported but not recommended feature.</p><p>Please use with care and caution when working with the internals of the eZ Publish Kernel. </p><a name="eztoc382488_2" id="eztoc382488_2"></a><h2>Question</h2><p>What is the best way to override default eZ Publish kernel classes? </p><a name="eztoc382488_3" id="eztoc382488_3"></a><h2>Answers</h2><p>Several solutions come to mind. The best solution in eZ Publish 4 is to override the class within an extension. Remember this should be considered <a href="https://www.ezpedia.org/fr/ez/kernel_hacking" target="_self">kernel hacking</a> which while allowed and even more supported than ever in eZ Publish 4 it is still causioned.</p><a name="eztoc382488_3_1" id="eztoc382488_3_1"></a><h3>PATCHING</h3><p>In the past the best way to do this was to simply <a href="https://www.ezpedia.org/fr/ez/patch" target="_self">patch</a> the original file and replace it with a modified file within original kernel location.</p><a name="eztoc382488_3_2" id="eztoc382488_3_2"></a><h3>Creating a Kernel Override Extension</h3><p>This is the standard solution within eZ Publish. </p><a name="eztoc382488_3_2_1" id="eztoc382488_3_2_1"></a><h4>Create and activate extension</h4><p>See articles on creating an extension </p><a name="eztoc382488_3_2_2" id="eztoc382488_3_2_2"></a><h4>Copy default kernel file into the extension. </h4><p>Remember pathing is a relative scheme (pattern) which must be maintained within the extension directory root.</p> <pre class="" style="font-family:monospace;">mkdir -p extension/customname/kernel/classes/; cp -va kernel/classes/ezcontentobjecttree.php extension/customname/kernel/classes/; </pre><a name="eztoc382488_3_2_3" id="eztoc382488_3_2_3"></a><h4>Configure config.php enable kernel overrides</h4><p>Create if file does not exist in root of ezpublish directory. Edit config.php file and enable the following setting.</p> <pre class="" style="font-family:monospace;">EZP_AUTOLOAD_ALLOW_KERNEL_OVERRIDE</pre><a name="eztoc382488_3_2_4" id="eztoc382488_3_2_4"></a><h4>Activating kernel override extension</h4>
<ul>
<li>Activate extension in settings</li>
<li>Regenerate autoload cache</li>
</ul>
<pre class="" style="font-family:monospace;">./bin/php/ezpgenerateautoload.php -o </pre><a name="eztoc382488_4" id="eztoc382488_4"></a><h2>References</h2>
<ul>
<li>Doc: N/A</li>
<li>Doc: <a href="https://pubsvn.ez.no/nextgen/trunk/config.php-RECOMMENDED" target="_blank">config.php</a></li>
</ul>
[email protected] (Graham Brookins)cd6f392ff7e39797bad7c3e8ef42a260Thu, 13 Aug 2009 10:51:01 +0000Migrating
https://ezpedia.org/ez/migrating
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc381585_1" id="eztoc381585_1"></a><h2>About</h2><a name="eztoc381585_2" id="eztoc381585_2"></a><h2>Reference</h2>[email protected] (Graham Brookins)237c15d195e7f95c5452573564b3e770Sun, 09 Aug 2009 21:41:46 +0000Feeds
https://ezpedia.org/ez/feeds
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc381577_1" id="eztoc381577_1"></a><h2>About</h2><p>Syndicated feeds of content about eZ Publish [1]</p><p>Members of the community maintain these resources.</p><a name="eztoc381577_2" id="eztoc381577_2"></a><h2>Reference</h2>
<ul>
<li>[1] Article: <a href="https://www.ezpedia.org/fr/project/ez_ecosystem_rss_feeds" target="_self">eZ Ecosystem OPML of Feeds</a></li>
</ul>
[email protected] (Graham Brookins)56f33cc92d0fe488d4dd0b027d7e69d4Sun, 09 Aug 2009 21:22:13 +0000Amazon
https://ezpedia.org/ez/amazon
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc381377_1" id="eztoc381377_1"></a><h2>About</h2><p>eZ Publish can be used with an Amazon API(s)</p><a name="eztoc381377_2" id="eztoc381377_2"></a><h2>Extensions</h2><p>JV Amazon Advertising allows you to query Amazon huge product catalog by using Amazon Product Advertising API </p><p><a href="https://projects.ez.no/jvamazonadvertising" target="_blank">https://projects.ez.no/jvamazonadvertising</a></p><p>IB Amazon Website Integration extension allows you to integrate products from Amazon with your site. After enabling this extension you've got an oportunity to search products on Amazon using a keyword and product category selection.</p><p><a href="https://ez.no/developer/contribs/solutions/ib_amazon_website_integration" target="_blank">https://ez.no/developer/contribs/solutions/ib_amazon_website_integration</a></p><p>xrowCDN connects eZ Publish with a Content Delivery Network </p><p><a href="https://projects.ez.no/xrowcdn" target="_blank">https://projects.ez.no/xrowcdn</a></p><a name="eztoc381377_3" id="eztoc381377_3"></a><h2>Known Issues</h2>
<ul>
<li>N/A</li>
</ul>
<a name="eztoc381377_4" id="eztoc381377_4"></a><h2>References</h2>
<ul>
<li>N/A</li>
</ul>
[email protected] (Ekkehard Dörre)fd08cbea9f3e13dbc7faf91b89e63f4aSun, 09 Aug 2009 13:13:08 +0000Postgresql
https://ezpedia.org/ez/postgresql
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc381369_1" id="eztoc381369_1"></a><h2>About</h2><p>eZ Publish support Postgresql</p><a name="eztoc381369_2" id="eztoc381369_2"></a><h2>Known Issues</h2>
<ul>
<li>N/A</li>
</ul>
<a name="eztoc381369_3" id="eztoc381369_3"></a><h2>References</h2>
<ul>
<li>N/A</li>
</ul>
[email protected] (Graham Brookins)84e086fca181a45953047995fd4f239dSun, 09 Aug 2009 13:09:21 +0000PHPDoc
https://ezpedia.org/ez/phpdoc
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc381361_1" id="eztoc381361_1"></a><h2>About</h2><p>In the future eZ Publish will switch to using PHPDoc *</p><a name="eztoc381361_2" id="eztoc381361_2"></a><h2>Description</h2><a name="eztoc381361_3" id="eztoc381361_3"></a><h2>Examples</h2><a name="eztoc381361_4" id="eztoc381361_4"></a><h2>References</h2>
<ul>
<li>Doc: N/A</li>
<li>Forum: N/A</li>
<li>Project: <a href="https://www.phpdoc.org/" target="_self"><i>phpDocumentor</i>: The complete documentation solution for PHP</a></li>
</ul>
[email protected] (Graham Brookins)f8cd6946f1f8fddcbca2c09dad43cc21Sun, 09 Aug 2009 12:46:11 +0000Upgrading eZ Publish 3.3 to 3.9
https://ezpedia.org/solution/upgrading_ez_publish_3_3_to_3_9
<a name="eztoc381305_1" id="eztoc381305_1"></a><h2>Prerequisits</h2>
<ul>
<li>If you need to upgrade eZ, start here:</li>
<li><a href="https://ez.no/doc/ez_publish/upgrading" target="_self">https://ez.no/doc/ez_publish/upgrading</a></li>
</ul>
<ul>
<li>Examine this image carefully:</li>
<li><a href="https://ez.no/doc/layout/set/full/ez_publish/upgrading/images/ez_publish_releases" target="_self">https://ez.no/doc/layout/set/full/ez_publish/upgrading/images/ez_publish_releases</a></li>
</ul>
<a name="eztoc381305_2" id="eztoc381305_2"></a><h2>Requirements </h2>
<ul>
<li><b>Backup the database!</b></li>
</ul>
<a name="eztoc381305_3" id="eztoc381305_3"></a><h2><b>Steps</b></h2>
<ul>
<li>Then, open Notepad and list your upgrade path, with every stop. You can then copy and paste out of Notepad onto the command line.</li>
<li>Pay particular attention to the scripts listed on each page (for example: upgrading from 3.3-5 to 3.4). </li>
<li>Some of the scripts don't run (due to version conflicts), and some are optional. Read the pages in the upgrade documentation carefully - or you'll have to do it over and over. </li>
<li>Take your time and be patient. The commands below are an example, you'll need to substitute your database access parameters as well as the siteaccess names. </li>
</ul>
<p>Commands will vary between different upgrade paths.</p> <pre class="" style="font-family:monospace;">mysql -udb_ez -p db_ez < update/database/mysql/<span style="">3.4</span>/dbupdate-<span style="">3.3</span>-<span style="">5</span>-to-3.4.0.sql
php-cli update/common/scripts/updateremoteid.php
php-cli update/common/scripts/updatesession.php
php-cli update/common/scripts/updatetoplevel.php
php-cli update/common/scripts/addorderemail.php
mysql -udb_ez -p db_ez < update/database/mysql/<span style="">3.4</span>/dbupdate-3.4.0-to-3.4.1.sql
mysql -udb_ez -p db_ez < update/database/mysql/<span style="">3.4</span>/dbupdate-3.4.1-to-3.4.2.sql
mysql -udb_ez -p db_ez < update/database/mysql/<span style="">3.4</span>/dbupdate-3.4.2-to-3.4.3.sql
mysql -udb_ez -p db_ez < update/database/mysql/<span style="">3.4</span>/dbupdate-3.4.3-to-3.4.4.sql
mysql -u db_ez -p db_ez < update/database/mysql/<span style="">3.5</span>/dbupdate-3.4.4-to-3.5.0.sql
php-cli update/common/scripts/updateiscontainer.php -s new
php-cli update/common/scripts/updateniceurls.php
php-cli update/common/scripts/updatesearchindex.php --clean
mysql -u db_ez -p db_ez < update/database/mysql/<span style="">3.5</span>/dbupdate-3.5.0-to-3.5.1.sql
mysql -u db_ez -p db_ez < update/database/mysql/<span style="">3.5</span>/dbupdate-3.5.1-to-3.5.2.sql
php-cli update/common/scripts/updatetoplevel.php -s adm
php-cli update/common/scripts/updateeztimetype.php -s new
php-cli update/common/scripts/updatecrc32.php
mysql -u db_ez -p db_ez < update/database/mysql/<span style="">3.6</span>/dbupdate-3.5.2-to-3.6.0.sql
php-cli update/common/scripts/convertxmllinks.php
php-cli update/common/scripts/updaterelatedobjectslinks.php -s adm
mysql -u db_ez -p db_ez < update/database/mysql/<span style="">3.8</span>/dbupdate-3.6.0-to-3.8.0.sql
php-cli update/common/scripts/updatemultilingual.php -s new
php-cli update/common/scripts/updaterssimport.php -s new
mysql -u db_ez -p db_ez < update/database/mysql/<span style="">3.8</span>/dbupdate-3.8.0-to-3.8.1.sql
mysql -u db_ez -p db_ez < update/database/mysql/<span style="">3.8</span>/dbupdate-3.8.1-to-3.8.2.sql
mysql -u db_ez -p db_ez < update/database/mysql/<span style="">3.8</span>/dbupdate-3.8.2-to-3.8.3.sql
mysql -u db_ez -p db_ez < update/database/mysql/<span style="">3.8</span>/dbupdate-3.8.3-to-3.8.4.sql
mysql -u db_ez -p db_ez < update/database/mysql/<span style="">3.8</span>/dbupdate-3.8.4-to-3.8.5.sql
mysql -u db_ez -p db_ez < update/database/mysql/<span style="">3.8</span>/dbupdate-3.8.5-to-3.8.6.sql
php-cli update/common/scripts/correctxmltextclasses.php --global</pre><a name="eztoc381305_3_1" id="eztoc381305_3_1"></a><h3>Results</h3><p>I upgraded from 3.3-5 to 3.8.6 and it went fairly smoothly. </p><a name="eztoc381305_4" id="eztoc381305_4"></a><h2>Problems</h2><p>Issues I did encounter</p>
<ul>
<li>updatetoplevel.php updated <b>override/content.ini.append.php</b> like so, and the system didn't run well. (I commented the changes out):</li>
</ul>
<pre class="" style="font-family:monospace;">#<span class="br0">[</span>NodeSettings<span class="br0">]</span>
#RootNode=<span style="">4159</span>
#UserRootNode=<span style="">4160</span>
#MediaRootNode=<span style="">4161</span>
#SetupRootNode=<span style="">4163</span>
#DesignRootNode=<span style="">4162</span></pre><a name="eztoc381305_4_2" id="eztoc381305_4_2"></a><h3>Results</h3><p>updateiscontainer.php didn't run, and although I normally don't make changes in the database - I changed the ezcontentclass table and set the <b>is_container</b> flag manually.</p>
<ul>
<li>At this time, you should be able to use the admin console. </li>
<li>Go to Setup > Upgrade > and check the database consistency. </li>
<li>Manually run any SQL through the database engine.</li>
<li>Clearing the cache and updating the search index are important.</li>
</ul>
[email protected] (Graham Brookins)2a181d428220b7cbe69379a6c8a3d6d5Sun, 09 Aug 2009 10:23:08 +0000JSON
https://ezpedia.org/ez/json
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc381281_1" id="eztoc381281_1"></a><h2>About</h2><p>About JSON</p><a name="eztoc381281_2" id="eztoc381281_2"></a><h2>Extensions</h2>
<ul>
<li><a href="https://projects.ez.no/ezcore" target="_blank">ezcore</a></li>
<li><a href="https://projects.ez.no/json" target="_blank">json</a></li>
<li><a href="https://projects.ez.no/ggwebservices" target="_blank">ggwebservices</a></li>
<li><a href="https://projects.ez.no/ggxmlview" target="_blank">ggxmlview</a></li>
</ul>
<a name="eztoc381281_3" id="eztoc381281_3"></a><h2>Reference</h2>
<ul>
<li>N/A</li>
</ul>
[email protected] (Graham Brookins)fa4377aa2b14d97a3fe249bd5fc835f5Sun, 09 Aug 2009 09:45:18 +0000Collected Information
https://ezpedia.org/ez/collected_information
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc381273_1" id="eztoc381273_1"></a><h2>About</h2><p>About collected information</p><a name="eztoc381273_2" id="eztoc381273_2"></a><h2>References</h2>
<ul>
<li>Doc: N/A</li>
</ul>
[email protected] (Graham Brookins)69ee67e723a530ff3b93e5d07a16b025Sun, 09 Aug 2009 06:50:55 +0000Limiting Payment Gateways by Product Content Class
https://ezpedia.org/solution/limiting_payment_gateways_by_product_content_class
<a name="eztoc380629_1" id="eztoc380629_1"></a><h2>
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div></h2><a name="eztoc380629_2" id="eztoc380629_2"></a><h2>About</h2><p>I am using the xrowecommerce extension from xrow and the paymentgateway directebanking which is written by all2e in order of us (wirverbindenwelten).</p><p>For a special shopmodification I need to have a paymentlimitaion by productclass. </p><p>This example is using a modified xrowecommerce extension.</p><p>in the paymentgateway event php I add the following to the execute function</p> <pre class="eztemplate" style="font-family:monospace;"><span style="color: #0000bb;">$productPayment</span> <span style="color: #66cc66;">=</span><span style="color: #dd0000;"> <span style="color: #0000bb;">$order</span>->attribute<span style="color: #66cc66;">(</span></span> <span style="color: #dd0000;">'product_items'</span> <span style="color: #66cc66;">)</span>;</pre><p>Also add the variable $productPayment to template through $process->Template['templateVars']</p> <pre class="eztemplate" style="font-family:monospace;"><span style="color: #0000bb;">$process</span>->Template<span style="color: #66cc66;">[</span><span style="color: #dd0000;">'templateVars'</span><span style="color: #66cc66;">]</span> <span style="color: #66cc66;">=</span><span style="color: #dd0000;"> <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/arrays/array"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span></span>
<span style="color: #dd0000;">'event'</span> <span style="color: #66cc66;">=</span><span style="color: #dd0000;">></span> <span style="color: #0000bb;">$event</span>, <span style="color: #dd0000;">'product_gateway_limitation'</span> <span style="color: #66cc66;">=</span><span style="color: #dd0000;">></span> <span style="color: #0000bb;">$productPayment</span>
<span style="color: #66cc66;">)</span>;</pre><p>After this I check my product class in the template file selectgateway.tpl</p><p>by looping the product items in my $productPayment array as needed.</p><p>If u need help u are welcome in irc://irc.freenode.net#ezpublish and irc://irc.freenode.net#ezpublish.de</p><a name="eztoc380629_3" id="eztoc380629_3"></a><h2>References</h2>
<ul>
<li>Forum: <a href="https://ez.no/developer/forum/setup_design/paymentgateway_in_xrowecommerce_plz_move_to_developer" target="_self">paymentgateway in xrowecommerce</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/developer/closed_shop_checkout_hidden_value_to_selectgateway_tpl" target="_self">shop checkout -> hidden value to selectgateway.tpl</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/setup_design/i_want_to_offer_several_payment_method_workflow_limitation" target="_self">I want to offer several payment method - workflow limitation</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/developer/payment_gateway_based_on_price" target="_self">payment gateway based on price</a></li>
<li>Project: <a href="https://projects.ez.no/xrowecommerce" target="_self">xrowecommerce</a></li>
</ul>
[email protected] (Graham Brookins)40802814fcbe7ec51d2cdb9fac64d1ffThu, 06 Aug 2009 11:11:46 +0000Git
https://ezpedia.org/ez/git
<div class="object-center"> <p class="editor_motivation">This is a <a href="https://www.ezpedia.org/fr/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc380381_1" id="eztoc380381_1"></a><h2>About</h2><p>Git for eZ Publish</p><a name="eztoc380381_1_1" id="eztoc380381_1_1"></a><h3>History of Git</h3><p>Wikipedia on <a href="https://en.wikipedia.org/wiki/Git_(software)" target="_self">Git</a>!</p><a name="eztoc380381_2" id="eztoc380381_2"></a><h2>Sharing eZ Publish related source snippets and examples using GitHub Gists</h2><p>It's a recommended best practice to stop using traditional pastebin web site services to share source code files and snippets as this delivers overall poor features long term. Instead it is strongly recommended to use GitHub Gists to share almost any text based content via a web browser in seconds, it makes sharing source code examples more simple and more useful to the other party recieving and using these shared source code examples.</p>
<ul>
<li><a href="https://gist.github.com/" target="_self">https://gist.github.com/</a> </li>
</ul>
<a name="eztoc380381_3" id="eztoc380381_3"></a><h2>Git usage with eZ Publish</h2><p>Use of Subversion for your eZ Publish projects is now deprecated.</p><p>The business and community projects for eZ Publish are all (slowly) migrating to using Git for version control.</p><p>We strongly recommend you replacing your Subversion usage with Git today.</p><p>eZ Systems now distributes the eZ Publish source code with Git repositories hosted on GitHub.com</p><p>eZ Systems also now distributes most of the currently supported eZ Publish Extension(s) source code with Git repositories hosted on GitHub.com</p><p>The eZ Community and eZ Ecosystem world wide is progressively migrating their own use of version control in their own development projects to Git (and many also to GitHub). <a href="https://projects.ez.no" target="_self">projects.ez.no</a> has been modified to support projects which use GitHub to host their project extension source code.</p><a name="eztoc380381_4" id="eztoc380381_4"></a><h2>eZ Systems Extensions for eZ Publish</h2><p>The currently supported extensions from eZ Systems are almost all hosted now on GitHub directly at</p>
<ul>
<li><a href="https://github.com/ezsystems" target="_self">https://github.com/ezsystems</a></li>
</ul>
<a name="eztoc380381_5" id="eztoc380381_5"></a><h2>eZ Community Extensions for eZ Publish (on GitHub)</h2><a name="eztoc380381_5_2" id="eztoc380381_5_2"></a><h3>Organizations</h3>
<ul>
<li><a href="https://github.com/netgen" target="_self">https://github.com/netgen</a></li>
<li><a href="https://github.com/Open-Wide" target="_self">https://github.com/Open-Wide</a></li>
<li><a href="https://github.com/ezmarket" target="_self">https://github.com/ezmarket</a></li>
<li><a href="https://github.com/Heliopsis-HQ" target="_self">https://github.com/Heliopsis-HQ</a></li>
</ul>
<a name="eztoc380381_5_3" id="eztoc380381_5_3"></a><h3>Individuals</h3><p>The following are just a few pioneering eZ Publish developers which distribute their extensions with Git on GitHub</p>
<ul>
<li>Here is a dynamic google search for <a href="https://www.google.com/search?sourceid=chrome&ie=UTF-8&q=site%3Agithub.com+eZ+Publish#sclient=psy-ab&hl=en&source=hp&q=site%3Agithub.com+eZ+Publish+extension+Profile&pbx=1&oq=site:github.com+eZ+Publish+extension+Profile&aq=f&aqi=&aql=&gs_sm=e&gs_upl=65041l66678l1l66916l8l6l0l0l0l0l110l511l5.1l6l0&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=23bc058ba87a7947&biw=1014&bih=633" target="_self">eZ Publish Developers on GitHub</a> (who mention eZ Publish via Google)</li>
</ul>
<ul>
<li><a href="https://github.com/brookinsconsulting" target="_self">https://github.com/brookinsconsulting</a></li>
<li><a href="https://github.com/brucem" target="_self">https://github.com/brucem</a></li>
<li><a href="https://github.com/stevoland" target="_self">https://github.com/stevoland</a></li>
<li><a href="https://github.com/nfrp" target="_self">https://github.com/nfrp</a></li>
<li><a href="https://github.com/lolautruche" target="_self">https://github.com/lolautruche</a></li>
<li><a href="https://github.com/llaumgui" target="_self">https://github.com/llaumgui</a></li>
<li><a href="https://github.com/nlescure" target="_self">https://github.com/nlescure</a></li>
<li><a href="https://github.com/crevillo" target="_self">https://github.com/crevillo</a></li>
<li><a href="https://github.com/tutei" target="_self">https://github.com/tutei</a></li>
<li><a href="https://github.com/frefred" target="_self">https://github.com/frefred</a></li>
<li><a href="https://github.com/gggeek" target="_self">https://github.com/gggeek</a></li>
<li><a href="https://github.com/andrerom" target="_self">https://github.com/andrerom</a></li>
<li><a href="https://github.com/Yannix" target="_self">https://github.com/Yannix</a></li>
<li><a href="https://github.com/quochuy" target="_self">https://github.com/quochuy</a></li>
<li><a href="https://github.com/ezchina" target="_self">https://github.com/ezchina</a></li>
<li><a href="https://github.com/nowres" target="_self">https://github.com/nowres</a></li>
<li><a href="https://github.com/lafka" target="_self">https://github.com/lafka</a></li>
<li><a href="https://github.com/jheba" target="_self">https://github.com/jheba</a></li>
<li><a href="https://github.com/dpobel" target="_self">https://github.com/dpobel</a></li>
<li><a href="https://github.com/xrow" target="_self">https://github.com/xrow</a></li>
</ul>
<a name="eztoc380381_6" id="eztoc380381_6"></a><h2>Git Documentation</h2>
<ul>
<li>Official: <a href="https://git-scm.com/documentation" target="_self">Git Documentation</a></li>
<li>Reference: <a href="https://gitref.org/" target="_self">Git Reference</a></li>
<li>Cheatsheets: <a href="https://help.github.com/git-cheat-sheets/" target="_self">Git cheat sheets</a></li>
<li>Article & Screencast: <a href="https://learn.github.com/p/intro.html" target="_self">Introduction To Git</a></li>
<li>Article: <a href="https://nathanj.github.com/gitguide/tour.html" target="_self">An Illustrated Guide to Git on Windows</a></li>
</ul>
<a name="eztoc380381_7" id="eztoc380381_7"></a><h2>Documentation on usage of Git with eZ Publish</h2>
<ul>
<li>Article: <a href="https://share.ez.no/layout/set/print/learn/ez-publish/how-to-use-your-github.com-repository-on-the-ez-publish-extension-forge-projects.ez.no" target="_self">How to use your github.com repository on the eZ Publish extension forge : projects.ez.no</a></li>
<li>Article: <a href="https://share.ez.no/learn/ez-publish/how-to-contribute-to-ez-publish-using-git/(language)/eng-GB" target="_self">How to contribute to eZ Publish using Git</a></li>
<li>Article: <a href="https://share.ez.no/learn/ez-publish/translating-localizing-ez-publish-using-git/(language)/eng-GB" target="_self">Translating & Localizing eZ Publish using GIT</a></li>
</ul>
<ul>
<li>Blog: <a href="https://share.ez.no/blogs/ez/ez-running-on-git/(language)/eng-GB" target="_self">eZ running on Git</a></li>
<li>Blog: <a href="https://share.ez.no/blogs/ez/ez-extensions-now-on-github-waiting-for-your-commits/(language)/eng-GB" target="_self">eZ Extensions now on github, waiting for your commits</a></li>
<li>Blog: <a href="https://share.ez.no/blogs/community-project-board/if-you-are-installing-ez-through-git-how/(language)/eng-GB" target="_self">If you are installing eZ through Git, How?</a></li>
<li>Blog: <a href="https://share.ez.no/forums/developer/structuring-a-git-code-library-integrating-ezp-projects/(language)/eng-GB" target="_self">Structuring a Git code library & integrating ezp projects</a></li>
<li>Blog: <a href="https://share.ez.no/blogs/virgil-ciobanu/how-to-syncronize-your-github-fork-with-original-repository/(language)/eng-GB" target="_self">How to syncronize your github fork with "original" repository</a></li>
</ul>
<ul>
<li>Forum: <a href="https://share.ez.no/forums/developer/participate-on-the-tracker-through-git-how/(language)/eng-GB" target="_self">Participate on the Tracker, through GIT, how?</a></li>
<li>Forum: <a href="https://share.ez.no/forums/developer/git-life-cycle-development-to-production/(language)/eng-GB" target="_self">Git life-cycle, development to production</a></li>
<li>Forum: <a href="https://share.ez.no/forums/general/git-stable-4.4-branch-update/(language)/eng-GB" target="_self">Git stable-4.4 branch update</a></li>
<li>Forum: <a href="https://share.ez.no/forums/install-configuration/updating-from-4.3.0-to-4.3.1-from-git-some-glitches/(language)/eng-GB" target="_self">Updating from 4.3.0 to 4.3.1 (from git), some glitches</a></li>
<li>Forum: <a href="https://share.ez.no/forums/general/managing-a-project-with-git/(language)/eng-GB" target="_self">Managing a project with git</a></li>
<li>Forum: <a href="https://share.ez.no/forums/suggestions/switch-to-git/(language)/eng-GB" target="_self">Switch to GIT?</a> (Pre migration to Git by eZ Systems)</li>
</ul>
<a name="eztoc380381_8" id="eztoc380381_8"></a><h2>References</h2>
<ul>
<li>Article: <a href="https://share.ez.no/learn/ez-publish/how-to-contribute-to-ez-publish-using-git/(language)/eng-GB" target="_self">How to contribute to eZ Publish using Git</a></li>
<li>Article: <a href="https://share.ez.no/learn/ez-publish/translating-localizing-ez-publish-using-git/(language)/eng-GB" target="_self">Translating & Localizing eZ Publish using GIT</a></li>
</ul>
<a name="eztoc380381_9" id="eztoc380381_9"></a><h2>Older community efforts to support Git usage with eZ Publish</h2><p>These references come from before eZ Systems officially began to use, support and migrate most of their currently supported software to git for version control and GitHub for hosting, distribution and collaboration.</p>
<ul>
<li>Doc: <a href="https://www.ymc.ch/content/download/519729/3482001/file/gitforez.pdf" target="_self">gitforez.pdf</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/suggestions/switch_to_git" target="_blank">Switch to Git</a></li>
<li>Blog: <a href="https://www.koch.ro/blog/index.php?/archives/109-Community-GIT-repository-for-eZ-Publish.html" target="_self">Community GIT repository for eZ Publish</a></li>
<li>Alternate hosting of Git Repo by YMC : <a href="https://git.forge.ymc.ch/" target="_blank">https://git.forge.ymc.ch/</a></li>
</ul>
[email protected] (Graham Brookins)8aa507d5026c9c0ec419dd836cc1a088Wed, 05 Aug 2009 06:56:32 +0000Database Usage
https://ezpedia.org/ez/database_usage
<a name="eztoc379813_1" id="eztoc379813_1"></a><h2>About</h2><p>Database Disk Usage can be minimized by regularly removing temporary information stored.</p><a name="eztoc379813_2" id="eztoc379813_2"></a><h2>References</h2>
<ul>
<li>Article: <a href="https://www.ezpedia.org/fr/ez/disk_usage" target="_self">Disk Usage</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/general/huge_database" target="_blank">Huge Database</a></li>
<li>Forum: <a href="https://ez.no/community/forum/developer/cleanup_database" target="_self">Cleanup database?</a></li>
<li>Forum: <a href="https://ez.no/community/forum/general/ezsession_table_size_700_mb" target="_self">ezsession table size (700+ MB)</a></li>
</ul>
[email protected] (Graham Brookins)de45e915a42076f8a8555cf033c924a7Mon, 03 Aug 2009 10:47:06 +0000Bash Profile
https://ezpedia.org/ez/bash_profile
<a name="eztoc376077_0_1" id="eztoc376077_0_1"></a><h3>eZ Publish Community Bash Profile</h3><p> A simple standardized bash profile addition with useful modifications for use with eZ Publish. </p><a name="eztoc376077_0_2" id="eztoc376077_0_2"></a><h3>Bash</h3><p>Example #1, Standardized bash profile</p> <pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># 2009.07.19 | Initial example idea (very ruff, apologies)</span>
<span style="color: #666666; font-style: italic;"># regularly run scripts, cronjobs, and or other commands</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> ezpgenerateautoloads.php = <span style="color: #ff0000;">"php ./bin/php/ezpgenerateautoloads.php $1"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> ga = <span style="color: #ff0000;">"php ./bin/php/ezpgenerateautoloads.php $1"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> clearcache.sh = <span style="color: #ff0000;">"php ./bin/php/ezcache.php $1"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> clearcache = <span style="color: #ff0000;">"php ./bin/php/ezcache.php $1"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> ezcache = <span style="color: #ff0000;">"php ./bin/php/ezcache.php $1"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> clr = <span style="color: #ff0000;">"php ./bin/php/ezcache.php $1"</span>;
<span style="color: #666666; font-style: italic;"># commands</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">removesvndirs</span>=<span style="color: #ff0000;">"find . -name *~ -print0|xargs -0 rm -vrf"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">cleandirs</span>=<span style="color: #ff0000;">"find . -name *~ -print0|xargs -0 rm -vrf; find . -name *.svn -print0|xargs -0 rm -vrf; find . -name *.DS* -print0|xargs -0 rm -vrf;"</span>
<span style="color: #666666; font-style: italic;"># logs</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> tailapache = <span style="color: #ff0000;">"tail -n 300 /var/log/apache/error_log $1"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> tailezp = <span style="color: #ff0000;">"tail -n 350 ./var/log/error.log & tail -n 350 ./var/log/storage.log & tail -n 350 ./var/log/warning.log & tail -n 350 ./var/log/notice.log &"</span>;
</pre><p>Example #1, Standardized bash profile</p><a name="eztoc376077_0_3" id="eztoc376077_0_3"></a><h3>Tcsh</h3><p>Example #2, Standardized tcsh profile</p> <pre class="bash" style="font-family:monospace;"><span style="color: #666666;"># </span>Example
</pre><p>Example #2, Standardized tcsh profile</p><a name="eztoc376077_1" id="eztoc376077_1"></a><h2>Reference</h2>
<ul>
<li>Bash</li>
<li>Sh</li>
<li>Tcsh</li>
</ul>
[email protected] (Graham Brookins)be503f3c8ee45e253f8d806a36635150Sun, 19 Jul 2009 21:10:05 +0000