eZpedia : Solution
https://ezpedia.org
Solution articles on eZpediapt-PTRead-only site
https://ezpedia.org/solution/read_only_site
https://ezpedia.org/solution/read_only_site<p><i>For a general description of read-only, we recommend </i><a href="https://en.wikipedia.org/wiki/Read_only" target="_self"> <i>Read-only on Wikipedia</i> </a><i>.</i></p><a name="eztoc66541_1" id="eztoc66541_1"></a><h2>Howto</h2><p>You can temporarily make your eZ publish site read-only, for example when</p>
<ul>
<li> you're moving it to another server </li>
<li> you want to upgrade it to a new major release, but because you don't want to have a downtime you made a copy of it on which you will run the upgrade script and which will become the new "production" site </li>
</ul>
<p>Use the following site access rule settings in <i>settings/override/site.ini.append.php</i> to make your site read-only. Note that this also affects the administration interface.</p> <pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">[</span>SiteAccessRules<span style="">]</span></span>
Rules<span style="">[</span><span style="">]</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>access<span style="color: #666666; font-style: italic;">;disable</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>moduleall
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>access<span style="color: #666666; font-style: italic;">;enable</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;content/view</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;content/download</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;content/search</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;content/advancedsearch</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;user/login</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;user/logout</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;switchlanguage/to</span></pre><p>Depending on the functionality of your site, you can still choose to allow access to other modules and views, like <i>user/preferences</i>.</p><p>You may need to clear INI caches after adding these settings!</p><a name="eztoc66541_2" id="eztoc66541_2"></a><h2>Known bugs</h2>
<ul>
<li> <a href="https://issues.ez.no/9953" target="_self">#9953</a>: website root / disabled although access to the content/view module is enabled (fixed in 3.9.1, 3.8.7, 3.7.10, 3.6.12) </li>
</ul>
<a name="eztoc66541_3" id="eztoc66541_3"></a><h2>External resources</h2>
<ul>
<li> <a href="https://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/siteaccessrules" target="_self">SiteAccessRules documentation</a> </li>
</ul>
Tue, 28 Aug 2012 08:41:04 GMTReseting the admin password in eZ publish
https://ezpedia.org/solution/reseting_the_admin_password_in_ez_publish
https://ezpedia.org/solution/reseting_the_admin_password_in_ez_publish<p><b>From:</b> kracker,xavier</p><p><b>Tags:</b> Security, Admin, Password, Reset, Solution</p><p><b>Question</b>: I forgot my admin password or (insert other problem description here) and I can’t login to eZ publish admin, how can I reset the admin password?</p><a name="eztoc507_1" id="eztoc507_1"></a><h2>Answers and Solutions</h2><a name="eztoc507_1_1" id="eztoc507_1_1"></a><h3>Answer #1</h3><p>To generate your new password hash under mysql you can run this command. This is the most direct way of solving this problem. I reference this sql shortcut frequently.</p> <pre class="bash" style="font-family:monospace;">SET <span style="color: #000000; font-weight: bold;">@</span>key = <span style="color: #ff0000;">'publish'</span>;
SET <span style="color: #000000; font-weight: bold;">@</span>username = <span style="color: #ff0000;">'admin'</span>;
SET <span style="color: #000000; font-weight: bold;">@</span>del = <span style="color: #ff0000;">'\n'</span>;
SET <span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">hash</span> = MD5<span style="color: #7a0874; font-weight: bold;">(</span>CONCAT<span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #000000; font-weight: bold;">@</span>username,<span style="color: #000000; font-weight: bold;">@</span>del,<span style="color: #000000; font-weight: bold;">@</span>key<span style="color: #7a0874; font-weight: bold;">)</span><span style="color: #7a0874; font-weight: bold;">)</span>;
UPDATE ezuser SET <span style="color: #007800;">password_hash</span>=<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">hash</span> WHERE <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">login</span></span>=<span style="color: #000000; font-weight: bold;">@</span>username;</pre><a name="eztoc507_1_2" id="eztoc507_1_2"></a><h3>Answer #2</h3><p>To generate your new password hash under linux, you can run:</p> <pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">"admin<span style="color: #000099; font-weight: bold;">\n</span>publish"</span> <span style="color: #000000; font-weight: bold;">|</span> md5sum</pre><p>The result is:</p> <pre class="bash" style="font-family:monospace;">c78e3b0f3d9244ed8c6d1c29464bdff9</pre><p>To do this for another user, replace admin with the login, and publish with the wanted password.</p><p>This <i>requires</i> HashType in site.ini to be md5_user.</p><p>This is the normal setting, so if you don’t know you changed it, this will work just fine.</p><a name="eztoc507_1_3" id="eztoc507_1_3"></a><h3>Answer #3</h3><p>Update the <i>password_hash</i> field in your eZ publish database table <i>ezuser</i> for the record `admin` user (login). By replacing the <i>password_hash</i> with the default hash as provided by the setup wizard for the password text `publish`.</p><p>I’ve done this several times to solve this problem.</p><p>The default hash for the admin password is kinda hidden in the file: ' <i>ezpublish/share/db_data.dba</i>'</p><p>For me the default hash was this string for the password 'publish'.</p> <pre class="bash" style="font-family:monospace;">c78e3b0f3d9244ed8c6d1c29464bdff9</pre><p>This hash when used as the `admin` user’s password hash will reset the password to `publish` without the quotes.</p><p>Example sql to do this:</p> <pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> ezuser <span style="color: #993333; font-weight: bold;">SET</span> password_hash<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'c78e3b0f3d9244ed8c6d1c29464bdff9'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> login<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'admin'</span>;</pre><a name="eztoc507_1_4" id="eztoc507_1_4"></a><h3>Answer #4</h3><p>Rerun the setup wizard by editing your site.ini.append(.php) and ensure that this line is set.</p> <pre class="ini" style="font-family:monospace;"># Set to true if you want the setup system to be activated
<span style="color: #000099;">CheckValidity</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">true</span></pre><a name="eztoc507_1_5" id="eztoc507_1_5"></a><h3>Answer #5</h3><p>Temporarily <i>disable</i> the validation check on the password. It means that <b>anyone</b> can login on <b>every</b> account simply putting any random password.</p><p>1) Edit the file ' <i>kernel/classes/datatypes/ezuser/ezuser.php</i>'</p><p>2) Search for the function ' <i>authenticateHash</i>' (Line <i>1083</i> on eZ publish, <i>3.7</i>)</p><p>3) Add this first line:</p> <pre class="ini" style="font-family:monospace;">return true<span style="color: #666666; font-style: italic;">; // no matter what, consider the password valid</span></pre><p>Then login as 'admin', change your password, write it down <i>on a post it and put in on your monitor :</i>)</p><p>Most security expects frown on the last point ;)</p><a name="eztoc507_1_6" id="eztoc507_1_6"></a><h3>Answer #6</h3> <pre class="" style="font-family:monospace;">mysql -u USERNAME -p DATABASE
UPDATE ezuser SET password_hash = MD5<span class="br0">(</span>"admin\nPASSWORD"<span class="br0">)</span> WHERE login LIKE "admin";</pre><a name="eztoc507_2" id="eztoc507_2"></a><h2>Resetting Administration Password in eZ publish</h2><p>
1. Login via shell, console, ssh, ...<br />
2. Backup your eZ publish database to sql file (Best Practice)<br />
3. Connect to your eZ publish Database.<br />4. Run this sql line to reset password of admin user</p> <pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> ezuser <span style="color: #993333; font-weight: bold;">SET</span> password_hash<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'c78e3b0f3d9244ed8c6d1c29464bdff9'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> login<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'admin'</span>;</pre><p>5. Clear Cache (Optional)</p><a name="eztoc507_3" id="eztoc507_3"></a><h2>References</h2>
<ul>
<li>Forum: <a href="https://share.ez.no/forums/setup-design/can-t-login-as-admin-password-is-correct" target="_self">https://share.ez.no/forums/setup-design/can-t-login-as-admin-password-is-correct</a></li>
<li>Forum: <a href="https://share.ez.no/forums/setup-design/alter-password-file" target="_self">https://share.ez.no/forums/setup-design/alter-password-file</a></li>
</ul>
Sun, 20 May 2012 07:29:11 GMTPackage: Retrieving 3.8 Packages
https://ezpedia.org/solution/package_retrieving_3_8_packages
https://ezpedia.org/solution/package_retrieving_3_8_packages<a name="eztoc204738_1" id="eztoc204738_1"></a><h2>Hint</h2><p>Remember that prior to eZ Publish 3.8 packages were distributed within the download source packages themselves. After eZ Publish 3.8 the packages were distributed to the installation during the setup wizard package import.</p><p>Did you know If you create the 'packages' directory in the root ezpublish directory and download the required packages into this directory before running the setup wizard you will install your packages via local sources overriding the remote sources.</p><p>Local packages installation and setup wizard completion time is much faster than remote package import and installation during setup wizard.</p><a name="eztoc204738_2" id="eztoc204738_2"></a><h2>External references</h2>
<ul>
<li>Forum: <a href="https://share.ez.no/forums/install-configuration/how-do-i-retrieve-all-packages-for-my-3.8-install" target="_self">How to retrieve all packages for eZ Publish 3.8 Installation</a> </li>
</ul>
<a name="eztoc204738_3" id="eztoc204738_3"></a><h2>References</h2>
<ul>
<li><a href="/pt/ez/package" target="_self">Package</a></li>
</ul>
Mon, 12 Dec 2011 00:33:08 GMTClear Cache in eZ Publish
https://ezpedia.org/solution/clear_cache_in_ez_publish
https://ezpedia.org/solution/clear_cache_in_ez_publish<a name="eztoc312302_1" id="eztoc312302_1"></a><h2>Introduction</h2><p>How to clear cache using eZ Publish 4</p><a name="eztoc312302_2" id="eztoc312302_2"></a><h2>Administration</h2><p>Use the website administration interphase to clear all cache via a gui.</p>
<ol>
<li>Simply navigate to Setup tab</li>
<li>Click the clear cache icon</li>
<li>Refresh browser window of website</li>
</ol>
<a name="eztoc312302_3" id="eztoc312302_3"></a><h2>Command line</h2><p>If you know how to use the command line you can use it to clear cache.</p><a name="eztoc312302_3_1" id="eztoc312302_3_1"></a><h3>Unix</h3><p>If you are using a complete unix like operating system you can use the following command to clear and purge all cache within eZ Publish.</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>bin<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>ezcache.php <span style="color: #660033;">--clear-all</span> --purge;</pre><a name="eztoc312302_3_2" id="eztoc312302_3_2"></a><h3>Windows</h3><p>If you are using Windows you can use the following command to clear and purge all cache within eZ Publish.</p> <pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># cd c:/web/pro/ezpublish/doc;</span>
c:\php\php .<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>ezcache.php <span style="color: #660033;">--clear-all</span> --purge;</pre><a name="eztoc312302_4" id="eztoc312302_4"></a><h2>Siteaccess Specific</h2><p>If you are working on a multi-siteaccess website, the specific siteaccess must be appended to the clear cache code.</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>bin<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>ezcache.php <span style="color: #660033;">--clear-all</span> <span style="color: #660033;">--purge</span> <span style="color: #660033;">-s</span> siteaccess_name;</pre><a name="eztoc312302_5" id="eztoc312302_5"></a><h2>Manual</h2><p>If you are unable to use the administration gui or command line to clear cache, you can still remove the cache files manually.</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: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-vrf</span> var<span style="color: #000000; font-weight: bold;">/</span>cache;
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-vrf</span> var<span style="color: #000000; font-weight: bold;">/</span>ezwebin_site<span style="color: #000000; font-weight: bold;">/</span>cache</pre><a name="eztoc312302_6" id="eztoc312302_6"></a><h2>Specific: Clearing image alias cache</h2><p>If you are unable to use the administration gui you can use this command line to clear this specific combination / type of cache.</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>bin<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>ezcache.php <span style="color: #660033;">--clear-id</span>=imagealias --clear-all;
.<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>ezcache.php <span style="color: #660033;">--clear-id</span>=imagealias <span style="color: #660033;">--clear-all</span> --purge;
.<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>ezcache.php <span style="color: #660033;">--clear-all</span> --purge;
</pre><p>The above example commands suggested in the forum.</p><a name="eztoc312302_7" id="eztoc312302_7"></a><h2>References</h2>
<ul>
<li>Doc: <a href="https://ez.no/doc/ez_publish/technical_manual/4_0/features/view_caching/clearing_the_view_cache" target="_self"><i>Clearing</i> the view <i>cache</i> / View <i>caching</i> / Features / 4.0 ...</a> </li>
<li>Doc: <a href="https://ez.no/doc/ez_publish/technical_manual/4_0/reference/scripts/generic/ezcache_php" target="_self">ezcache.php / Generic / Scripts / Reference / 4.0 / Technical <b>...</b></a></li>
<li>Forum: <a href="https://ez.no/developer/forum/general/clear_cache_with_a_command_line#msg189632" title="Posted by: kracker: I hate typing all those long paths all the time! I make a symbolic link to the script in the ezpublish root directory. <code>cd /web/dev/ez; ln -s bin/php/ezcache.php clr;</code>Cheers, <i>//kracker</i>" target="_self">Clear cache with a command line</a></li>
</ul>
Mon, 14 Nov 2011 22:22:02 GMTCreating image alias image variations in PHP
https://ezpedia.org/solution/creating_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="/pt/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="/pt/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="/pt/ez/image_alias_handler" target="_self">ezimagealiashandler</a></li>
</ul>
Mon, 31 Oct 2011 03:28:19 GMTChange the language of existing content objects
https://ezpedia.org/solution/change_the_language_of_existing_content_objects
https://ezpedia.org/solution/change_the_language_of_existing_content_objects<a name="eztoc51171_1" id="eztoc51171_1"></a><h2>About</h2><p>This is an example solution.</p><a name="eztoc51171_2" id="eztoc51171_2"></a><h2>eng-GB -> eng-US</h2><p>Very basic example to convert from eng-GB to eng-US</p> <pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentobject_name <span style="color: #993333; font-weight: bold;">SET</span> content_translation<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'eng-US'</span><span style="color: #66cc66;">,</span> real_translation<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'eng-US'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> content_translation<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'eng-GB'</span> <span style="color: #993333; font-weight: bold;">AND</span> real_translation<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'eng-GB'</span>;</pre><a name="eztoc51171_3" id="eztoc51171_3"></a><h2>eng-GB -> ger-DE</h2><p>Very basic example to convert from eng-GB to ger-DE</p> <pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentobject_name <span style="color: #993333; font-weight: bold;">SET</span> content_translation<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'ger-DE'</span><span style="color: #66cc66;">,</span> real_translation<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'ger-DE'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> content_translation<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'eng-GB'</span> <span style="color: #993333; font-weight: bold;">AND</span> real_translation<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'eng-GB'</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentobject_attribute <span style="color: #993333; font-weight: bold;">SET</span> language_code<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'ger-DE'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> language_code<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'eng-GB'</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontent_translation <span style="color: #993333; font-weight: bold;">SET</span> locale<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'ger-DE'</span><span style="color: #66cc66;">,</span> name<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'Deutsch (Deutschland)'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> locale<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'eng-GB'</span>;</pre><a name="eztoc51171_4" id="eztoc51171_4"></a><h2>eng-GB -> ita-IT</h2><p>Here is another example which converts all content from eng-GB to ita-IT (this example does not remove any languages from the system)</p> <pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass_attribute <span style="color: #993333; font-weight: bold;">SET</span> serialized_description_list <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">(</span> serialized_description_list<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'eng-GB'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'ita-IT'</span> <span style="color: #66cc66;">)</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass_attribute <span style="color: #993333; font-weight: bold;">SET</span> serialized_name_list <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">(</span> serialized_name_list<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'eng-GB'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'ita-IT'</span> <span style="color: #66cc66;">)</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass_attribute <span style="color: #993333; font-weight: bold;">SET</span> serialized_data_text <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">(</span> serialized_data_text<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'eng-GB'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'ita-IT'</span> <span style="color: #66cc66;">)</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass_name <span style="color: #993333; font-weight: bold;">SET</span> language_locale <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">(</span> language_locale<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'eng-GB'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'ita-IT'</span> <span style="color: #66cc66;">)</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass_name <span style="color: #993333; font-weight: bold;">SET</span> language_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">3</span>; <span style="color: #808080; font-style: italic;">-- <id_of your intial LANGUAGE FROM TABLE ezcontent_language></span>
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass <span style="color: #993333; font-weight: bold;">SET</span> initial_language_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">2</span>; <span style="color: #808080; font-style: italic;">-- <id_of your intial LANGUAGE FROM TABLE ezcontent_language></span>
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass <span style="color: #993333; font-weight: bold;">SET</span> serialized_name_list <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">(</span> serialized_name_list<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'eng-GB'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'ita-IT'</span> <span style="color: #66cc66;">)</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass <span style="color: #993333; font-weight: bold;">SET</span> serialized_description_list <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">(</span> serialized_description_list<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'eng-GB'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'ita-IT'</span> <span style="color: #66cc66;">)</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass <span style="color: #993333; font-weight: bold;">SET</span> language_mask <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">3</span>;</pre><a name="eztoc51171_5" id="eztoc51171_5"></a><h2>eng-GB -> esl-ES</h2><p>Here is another more specific example which converts content from eng-GB to esl-ES and removes eng-GB language</p> <pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass_attribute <span style="color: #993333; font-weight: bold;">SET</span> serialized_description_list <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">(</span> serialized_description_list<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'eng-GB'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'esl-ES'</span> <span style="color: #66cc66;">)</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass_attribute <span style="color: #993333; font-weight: bold;">SET</span> serialized_name_list <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">(</span> serialized_name_list<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'eng-GB'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'esl-ES'</span> <span style="color: #66cc66;">)</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass_attribute <span style="color: #993333; font-weight: bold;">SET</span> serialized_data_text <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">(</span> serialized_data_text<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'eng-GB'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'esl-ES'</span> <span style="color: #66cc66;">)</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass_name <span style="color: #993333; font-weight: bold;">SET</span> language_locale <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">(</span> language_locale<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'eng-GB'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'esl-ES'</span> <span style="color: #66cc66;">)</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass_name <span style="color: #993333; font-weight: bold;">SET</span> language_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">3</span> <span style="color: #993333; font-weight: bold;">WHERE</span> language_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">5</span>; <span style="color: #808080; font-style: italic;">-- <id_of your intial LANGUAGE FROM TABLE ezcontent_language></span>
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass <span style="color: #993333; font-weight: bold;">SET</span> initial_language_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">,</span> language_mask <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">3</span> <span style="color: #993333; font-weight: bold;">WHERE</span> initial_language_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">4</span> <span style="color: #993333; font-weight: bold;">OR</span> language_mask <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">5</span>; <span style="color: #808080; font-style: italic;">-- <id_of your intial LANGUAGE FROM TABLE ezcontent_language></span>
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass <span style="color: #993333; font-weight: bold;">SET</span> serialized_name_list <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">(</span> serialized_name_list<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'eng-GB'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'esl-ES'</span> <span style="color: #66cc66;">)</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass <span style="color: #993333; font-weight: bold;">SET</span> serialized_description_list <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">(</span> serialized_description_list<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'eng-GB'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'esl-ES'</span> <span style="color: #66cc66;">)</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass <span style="color: #993333; font-weight: bold;">SET</span> language_mask <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">3</span>; <span style="color: #808080; font-style: italic;">-- <id_of your esl-ES LANGUAGE FROM TABLE ezcontent_language></span>
<span style="color: #993333; font-weight: bold;">DELETE</span> <span style="color: #993333; font-weight: bold;">FROM</span> ezcontent_language <span style="color: #993333; font-weight: bold;">WHERE</span> locale <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'eng-GB'</span>;</pre><a name="eztoc51171_6" id="eztoc51171_6"></a><h2>External Reference</h2>
<ul>
<li><a href="https://share.ez.no/forums/install-configuration/delete-english-language-by-sql-query" target="_self">Delete English Language by SQL QUERY</a></li>
<li><a href="https://ez.no/community/forum/install_configuration/how_can_i_change_the_language_of_ez_to_spanish" target="_self">How can I change the language of existing content objects?</a></li>
</ul>
Thu, 20 Oct 2011 06:19:03 GMTAdding related object programmatic
https://ezpedia.org/solution/adding_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: #000000; 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: #000000; 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: #000000; 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: #000000; font-weight: bold;">true</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'siteaccess'</span> <span style="color: #339933;">=></span> <span style="color: #000000; 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>Thu, 28 Apr 2011 13:13:40 GMTCreating custom rss feeds using the layout/set module view
https://ezpedia.org/solution/creating_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="/pt/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 style="background-color: yellow;"> <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/content/advancedsearch?SearchText=set-block&SearchContentClassID=34"><span style="color: #0600FF;">set-block</span></a> <span style="color: #007700;">scope</span><span style="color: #66cc66;">=</span>root <span style="color: #007700;">variable</span><span style="color: #66cc66;">=</span>cache_ttl<span style="color: #66cc66;">}</span>0<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=set-block&SearchContentClassID=34"><span style="color: #0600FF;">set-block</span></a><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=def&SearchContentClassID=34"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$user_id</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=ezhttp&SearchContentClassID=31"><span style="color: #0600FF;">ezhttp</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>
<?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</span>.<span style="color: #006600;">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>attribute<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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <a href="https://ez.no/doc/content/advancedsearch?SearchText=ezhttp_hasvariable&SearchContentClassID=31"><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/content/advancedsearch?SearchText=def&SearchContentClassID=34"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$topics</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><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/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=foreach&SearchContentClassID=23"><span style="color: #0600FF;">foreach</span></a> <span style="color: #0000bb;">$topics</span> as <span style="color: #0000bb;">$t</span><span style="color: #66cc66;">}</span>
<item>
<title><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">pen_name</span>.<span style="color: #006600;">has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">pen_name</span>.<span style="color: #006600;">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</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">author</span>.<span style="color: #006600;">data_text</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">class_identifier</span><span style="color: #66cc66;">|</span>eq<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</span>.<span style="color: #006600;">name</span><span style="color: #66cc66;">|</span>trim<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</span>.<span style="color: #006600;">parent</span>.<span style="color: #006600;">name</span><span style="color: #66cc66;">|</span>trim<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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span></title>
<author><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">user_account</span>.<span style="color: #006600;">content</span>.<span style="color: #006600;">email</span><span style="color: #66cc66;">}</span> (<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">pen_name</span>.<span style="color: #006600;">has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">pen_name</span>.<span style="color: #006600;">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</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">author</span>.<span style="color: #006600;">data_text</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><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</span>.<span style="color: #006600;">url_alias</span><span style="color: #66cc66;">}</span></link>
<guid>https://example.com/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">url_alias</span><span style="color: #66cc66;">}</span></guid>
<description><![CDATA[<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">body</span>.<span style="color: #006600;">content</span>.<span style="color: #006600;">output</span>.<span style="color: #006600;">output_text</span><span style="color: #66cc66;">}</span>]]></description>
<pubDate><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">published</span><span style="color: #66cc66;">|</span>datetime<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/content/advancedsearch?SearchText=foreach&SearchContentClassID=23"><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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><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/content/advancedsearch?SearchText=def&SearchContentClassID=34"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$topics</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><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/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=foreach&SearchContentClassID=23"><span style="color: #0600FF;">foreach</span></a> <span style="color: #0000bb;">$topics</span> as <span style="color: #0000bb;">$t</span><span style="color: #66cc66;">}</span>
<item>
<title><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">pen_name</span>.<span style="color: #006600;">has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">pen_name</span>.<span style="color: #006600;">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</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">author</span>.<span style="color: #006600;">data_text</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span>: <span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">name</span><span style="color: #66cc66;">|</span>trim<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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">pen_name</span>.<span style="color: #006600;">has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">pen_name</span>.<span style="color: #006600;">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</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">author</span>.<span style="color: #006600;">data_text</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><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</span>.<span style="color: #006600;">url_alias</span><span style="color: #66cc66;">}</span></link>
<guid>https://example.com/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">url_alias</span><span style="color: #66cc66;">}</span></guid>
<description><![CDATA[<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">body</span>.<span style="color: #006600;">content</span>.<span style="color: #006600;">output</span>.<span style="color: #006600;">output_text</span><span style="color: #66cc66;">}</span>]]></description>
<pubDate><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">published</span><span style="color: #66cc66;">|</span>datetime<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/content/advancedsearch?SearchText=foreach&SearchContentClassID=23"><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/content/advancedsearch?SearchText=def&SearchContentClassID=34"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$podcast_node_id</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">4200</span>
<span style="color: #0000bb;">$max_episodes</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">50</span>
<span style="color: #0000bb;">$podcast</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'node'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><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><a href="https://ez.no/doc/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><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/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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><a href="https://ez.no/doc/content/advancedsearch?SearchText=concat&SearchContentClassID=31"><span style="color: #0600FF;">concat</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'https://'</span>,<a href="https://ez.no/doc/content/advancedsearch?SearchText=ezsys&SearchContentClassID=31"><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><a href="https://ez.no/doc/content/advancedsearch?SearchText=concat&SearchContentClassID=31"><span style="color: #0600FF;">concat</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'https://'</span>,<a href="https://ez.no/doc/content/advancedsearch?SearchText=ezsys&SearchContentClassID=31"><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: #0000bb;">$podcast</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">title</span>.<span style="color: #006600;">content</span><span style="color: #66cc66;">|</span>trim<span style="color: #66cc66;">|</span>wash
<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><a href="https://ez.no/doc/content/advancedsearch?SearchText=concat&SearchContentClassID=31"><span style="color: #0600FF;">concat</span></a><span style="color: #66cc66;">(</span><span style="color: #0000bb;">$siteUrl</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><a href="https://ez.no/doc/content/advancedsearch?SearchText=concat&SearchContentClassID=31"><span style="color: #0600FF;">concat</span></a><span style="color: #66cc66;">(</span><span style="color: #0000bb;">$siteUrl</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/content/advancedsearch?SearchText=currentdate&SearchContentClassID=31"><span style="color: #0600FF;">currentdate</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span>datetime<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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><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: #006600;">data_map</span>.<span style="color: #006600;">published</span>.<span style="color: #006600;">has_content</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: #cc66cc;">0</span><span style="color: #66cc66;">]</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">published</span>.<span style="color: #006600;">content</span>.<span style="color: #006600;">timestamp</span><span style="color: #66cc66;">|</span>datetime<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>.<span style="color: #006600;">object</span>.<span style="color: #006600;">published</span><span style="color: #66cc66;">|</span>datetime<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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><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/content/advancedsearch?SearchText=currentdate&SearchContentClassID=31"><span style="color: #0600FF;">currentdate</span></a><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span>datetime<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/content/advancedsearch?SearchText=foreach&SearchContentClassID=23"><span style="color: #0600FF;">foreach</span></a> <span style="color: #0000bb;">$episodes</span> as <span style="color: #0000bb;">$episode</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=set&SearchContentClassID=34"><span style="color: #0600FF;">set</span></a> <span style="color: #0000bb;">$episodeDatamap</span><span style="color: #66cc66;">=</span><span style="color: #0000bb;">$episode</span>.<span style="color: #006600;">data_map</span>
<span style="color: #0000bb;">$audioFileUrl</span><span style="color: #66cc66;">=</span><span style="color: #0000bb;">$episodeDatamap</span>.<span style="color: #006600;">audio</span>.<span style="color: #006600;">content</span>
<span style="color: #0000bb;">$audioFileLength</span><span style="color: #66cc66;">=</span><span style="color: #0000bb;">$episodeDatamap</span>.<span style="color: #006600;">audio_length</span>.<span style="color: #006600;">content</span>
<span style="color: #66cc66;">}</span>
<item>
<title><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episode</span>.<span style="color: #006600;">name</span><span style="color: #66cc66;">|</span>trim<span style="color: #66cc66;">|</span>wash<span style="color: #66cc66;">}</span></title>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$episodeDatamap</span>.<span style="color: #006600;">audio</span>.<span style="color: #006600;">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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span>
<description><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap</span>.<span style="color: #006600;">description</span>.<span style="color: #006600;">content</span><span style="color: #66cc66;">|</span>trim<span style="color: #66cc66;">|</span>wash<span style="color: #66cc66;">}</span></description>
<pubDate><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$episodeDatamap</span>.<span style="color: #006600;">published</span>.<span style="color: #006600;">has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap</span>.<span style="color: #006600;">published</span>.<span style="color: #006600;">content</span>.<span style="color: #006600;">timestamp</span><span style="color: #66cc66;">|</span>datetime<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</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">published</span><span style="color: #66cc66;">|</span>datetime<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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span></pubDate>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$episodeDatamap</span>.<span style="color: #006600;">audio</span>.<span style="color: #006600;">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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span>
<category><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap</span>.<span style="color: #006600;">category</span>.<span style="color: #006600;">content</span><span style="color: #66cc66;">|</span>trim<span style="color: #66cc66;">|</span>wash<span style="color: #66cc66;">}</span></category>
<itunes:author>example.com</itunes:author>
<itunes:subtitle><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap</span>.<span style="color: #006600;">subtitle</span>.<span style="color: #006600;">content</span><span style="color: #66cc66;">|</span>trim<span style="color: #66cc66;">|</span>wash<span style="color: #66cc66;">}</span></itunes:subtitle>
<itunes:summary><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap</span>.<span style="color: #006600;">description</span>.<span style="color: #006600;">content</span><span style="color: #66cc66;">|</span>trim<span style="color: #66cc66;">|</span>wash<span style="color: #66cc66;">}</span></itunes:summary>
<itunes:keywords><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$episodeDatamap</span>.<span style="color: #006600;">keywords</span>.<span style="color: #006600;">content</span>.<span style="color: #006600;">keyword_string</span><span style="color: #66cc66;">|</span>trim<span style="color: #66cc66;">|</span>wash<span style="color: #66cc66;">}</span></itunes:keywords>
<itunes:explicit><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$episodeDatamap</span>.<span style="color: #006600;">explicit</span>.<span style="color: #006600;">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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><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</span>.<span style="color: #006600;">duration</span>.<span style="color: #006600;">content</span><span style="color: #66cc66;">|</span>trim<span style="color: #66cc66;">}</span></itunes:duration>
</item>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=foreach&SearchContentClassID=23"><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/content/advancedsearch?SearchText=set-block&SearchContentClassID=34"><span style="color: #0600FF;">set-block</span></a> <span style="color: #007700;">scope</span><span style="color: #66cc66;">=</span>root <span style="color: #007700;">variable</span><span style="color: #66cc66;">=</span>cache_ttl<span style="color: #66cc66;">}</span>0<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=set-block&SearchContentClassID=34"><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/content/advancedsearch?SearchText=def&SearchContentClassID=34"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$topics</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><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/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$topics</span><span style="color: #66cc66;">|</span>count<span style="color: #66cc66;">|</span>gt<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/content/advancedsearch?SearchText=foreach&SearchContentClassID=23"><span style="color: #0600FF;">foreach</span></a> <span style="color: #0000bb;">$topics</span> as <span style="color: #0000bb;">$t</span><span style="color: #66cc66;">}</span>
<item>
<title><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">pen_name</span>.<span style="color: #006600;">has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">pen_name</span>.<span style="color: #006600;">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</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">author</span>.<span style="color: #006600;">data_text</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">class</span>
_identifier<span style="color: #66cc66;">|</span>eq<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</span>.<span style="color: #006600;">name</span><span style="color: #66cc66;">|</span>trim<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</span>.<span style="color: #006600;">parent</span>.<span style="color: #006600;">name</span><span style="color: #66cc66;">|</span>trim<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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a><span style="color: #66cc66;">}</span></title>
<author><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">user_account</span>.<span style="color: #006600;">content</span>.<span style="color: #006600;">email</span><span style="color: #66cc66;">}</span> (<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">pen_name</span>.<span style="color: #006600;">has_content</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">pen_name</span>.<span style="color: #006600;">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</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">author</span>.<span style="color: #006600;">data_text</span><span style="color: #66cc66;">}</span><span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><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</span>.<span style="color: #006600;">parent</span>.<span style="color: #006600;">url_alias</span><span style="color: #66cc66;">}</span>/(comment)/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">node_id</span><span style="color: #66cc66;">}</span>#comment-<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">node_id</span><span style="color: #66cc66;">}</span></link>
<guid>https://example.com/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">parent</span>.<span style="color: #006600;">url_alias</span><span style="color: #66cc66;">}</span>/(comment)/<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">node_id</span><span style="color: #66cc66;">}</span>#comment-<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">node_id</span><span style="color: #66cc66;">}</span></guid>
<description><![CDATA[<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">body</span>.<span style="color: #006600;">content</span>.<span style="color: #006600;">output</span>.<span style="color: #006600;">output_text</span><span style="color: #66cc66;">}</span>]]></description>
<pubDate><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$t</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">published</span><span style="color: #66cc66;">|</span>datetime<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/content/advancedsearch?SearchText=foreach&SearchContentClassID=23"><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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><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/content/advancedsearch?SearchText=def&SearchContentClassID=34"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$articles</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <a href="https://ez.no/doc/content/advancedsearch?SearchText=and&SearchContentClassID=31"><span style="color: #0600FF;">and</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/content/advancedsearch?SearchText=ezhttp_hasvariable&SearchContentClassID=31"><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/content/advancedsearch?SearchText=ezhttp_hasvariable&SearchContentClassID=31"><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/content/advancedsearch?SearchText=def&SearchContentClassID=34"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$startDate</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=ezhttp&SearchContentClassID=31"><span style="color: #0600FF;">ezhttp</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'startDate'</span>, <span style="color: #dd0000;">'get'</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span>explode<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><a href="https://ez.no/doc/content/advancedsearch?SearchText=ezhttp&SearchContentClassID=31"><span style="color: #0600FF;">ezhttp</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>explode<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/content/advancedsearch?SearchText=def&SearchContentClassID=34"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$startDateTimestamp</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=maketime&SearchContentClassID=31"><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</span>.1,<span style="color: #0000bb;">$startDate</span>.2,<span style="color: #0000bb;">$startDate</span>.0<span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$endDateTimestamp</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=maketime&SearchContentClassID=31"><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</span>.1,<span style="color: #0000bb;">$endDate</span>.2,<span style="color: #0000bb;">$endDate</span>.0<span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=set&SearchContentClassID=34"><span style="color: #0600FF;">set</span></a> <span style="color: #0000bb;">$articles</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><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/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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/content/advancedsearch?SearchText=set&SearchContentClassID=34"><span style="color: #0600FF;">set</span></a> <span style="color: #0000bb;">$articles</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><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/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><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/content/advancedsearch?SearchText=foreach&SearchContentClassID=23"><span style="color: #0600FF;">foreach</span></a> <span style="color: #0000bb;">$articles</span> as <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/content/advancedsearch?SearchText=set&SearchContentClassID=34"><span style="color: #0600FF;">set</span></a>
<span style="color: #0000bb;">$commentCount</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'content'</span>, <span style="color: #dd0000;">'tree_count'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><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</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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: #0000bb;">$con</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">name</span><span style="color: #66cc66;">|</span>explode<span style="color: #66cc66;">(</span><span style="color: #dd0000;">'"'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span>implode<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: #0000bb;">$con</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">owner</span>.<span style="color: #006600;">name</span><span style="color: #66cc66;">|</span>explode<span style="color: #66cc66;">(</span><span style="color: #dd0000;">'"'</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span>implode<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: #0000bb;">$con</span>.<span style="color: #006600;">data_map</span>.<span style="color: #006600;">body</span>.<span style="color: #006600;">content</span>.<span style="color: #006600;">output</span>.<span style="color: #006600;">output_text</span><span style="color: #66cc66;">|</span>explode<span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'>'</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span>implode<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>simplify<span style="color: #66cc66;">|</span>explode<span style="color: #66cc66;">(</span> <span style="color: #dd0000;">' '</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span>count
<span style="color: #0000bb;">$articleFollowCount</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'example'</span>, <span style="color: #dd0000;">'getfollowerscount'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'id'</span>, <span style="color: #0000bb;">$con</span>.<span style="color: #006600;">node_id</span> <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/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'example'</span>, <span style="color: #dd0000;">'getsharecounts'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'id'</span>, <span style="color: #0000bb;">$con</span>.<span style="color: #006600;">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: #0000bb;">$con</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">published</span><span style="color: #66cc66;">|</span>datetime<span style="color: #66cc66;">(</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: #0000bb;">$con</span>.<span style="color: #006600;">object</span>.<span style="color: #006600;">published</span><span style="color: #66cc66;">|</span>datetime<span style="color: #66cc66;">(</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</span>.<span style="color: #006600;">url_alias</span><span style="color: #66cc66;">}</span>"
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=foreach&SearchContentClassID=23"><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>
Thu, 21 Oct 2010 23:41:07 GMTHow to fetch content based on view parameter date range
https://ezpedia.org/solution/how_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/content/advancedsearch?SearchText=def&SearchContentClassID=34"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$articles</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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><a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <a href="https://ez.no/doc/content/advancedsearch?SearchText=and&SearchContentClassID=31"><span style="color: #0600FF;">and</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/content/advancedsearch?SearchText=is_set&SearchContentClassID=31"><span style="color: #0600FF;">is_set</span></a><span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$view_parameters</span>.<span style="color: #006600;">startDate</span> <span style="color: #66cc66;">)</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=is_set&SearchContentClassID=31"><span style="color: #0600FF;">is_set</span></a><span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$view_parameters</span>.<span style="color: #006600;">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/content/advancedsearch?SearchText=def&SearchContentClassID=34"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$startDate</span><span style="color: #66cc66;">=</span><span style="color: #0000bb;">$view_parameters</span>.<span style="color: #006600;">startDate</span><span style="color: #66cc66;">|</span>explode<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: #0000bb;">$view_parameters</span>.<span style="color: #006600;">endDate</span><span style="color: #66cc66;">|</span>explode<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/content/advancedsearch?SearchText=def&SearchContentClassID=34"><span style="color: #0600FF;">def</span></a> <span style="color: #0000bb;">$startDateTimestamp</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=maketime&SearchContentClassID=31"><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</span>.1,<span style="color: #0000bb;">$startDate</span>.2,<span style="color: #0000bb;">$startDate</span>.0<span style="color: #66cc66;">)</span>
<span style="color: #0000bb;">$endDateTimestamp</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=maketime&SearchContentClassID=31"><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</span>.1,<span style="color: #0000bb;">$endDate</span>.2,<span style="color: #0000bb;">$endDate</span>.0<span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=set&SearchContentClassID=34"><span style="color: #0600FF;">set</span></a> <span style="color: #0000bb;">$articles</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><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/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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/content/advancedsearch?SearchText=set&SearchContentClassID=34"><span style="color: #0600FF;">set</span></a> <span style="color: #0000bb;">$articles</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><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/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><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/content/advancedsearch?SearchText=array&SearchContentClassID=31"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'published'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=false&SearchContentClassID=31"><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/content/advancedsearch?SearchText=if&SearchContentClassID=23"><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>
Wed, 21 Jul 2010 17:48:13 GMTGoogle Webmaster Tools
https://ezpedia.org/solution/google_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>Thu, 08 Jul 2010 18:04:20 GMTindexing/searching pdf files with accented chars
https://ezpedia.org/solution/indexing_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 $<span style="">1</span> -|iconv -f ISO-<span style="">8859</span>-<span style="">1</span> -t UTF-<span style="">8</span></pre>Thu, 24 Sep 2009 13:57:56 GMTBookmarked eZ publish Solutions for newbies
https://ezpedia.org/solution/bookmarked_ez_publish_solutions_for_newbies
https://ezpedia.org/solution/bookmarked_ez_publish_solutions_for_newbies<p>This info is quite old, based on eZp 3 series and may be partly obsolete now. Also, ezwebin that was introduced onwards from ez 3.8 breaks many things.</p><a name="eztoc547_1" id="eztoc547_1"></a><h2>Bookmarks</h2>
<ul>
<li>Editing, creating and removing content from the user page / Tips &amp; Tricks / Customization</li>
<li><a href="https://www.ez.no/ez_publish/documentation/customization/tips_tricks/editing_creating_and_removing_content_from_the_user_page" title="https://www.ez.no/ez_publish/documentation/customization/tips_tricks/editing_creating_and_removing_content_from_the_user_page" target="_blank">https://www.ez.no/ez_publish/documentation/customization/tips_tricks/editing_creating_and_removing_content_from_the_user_page</a></li>
</ul>
<ul>
<li>Re: How Can create, remove, edit a object from the Pagelayout? / How Can create, remove, edit a object from the Pagelayout? / Developer</li>
<li><a href="https://www.ez.no/community/forum/developer/how_can_create_remove_edit_a_object_from_the_pagelayout/re_how_can_create_remove_edit_a_object_from_the_pagelayout" target="_self">https://www.ez.no/community/forum/developer/how_can_create_remove_edit_a_object_from_the_pagelayout/re_how_can_create_remove_edit_a_object_from_the_pagelayout</a></li>
</ul>
<ul>
<li>Re: how to create a simple user interface for content creation ? / how to create a simple user interface for content creation ? / Setup &amp; design</li>
<li><a href="https://www.ez.no/community/forum/setup_design/how_to_create_a_simple_user_interface_for_content_creation/re_how_to_create_a_simple_user_interface_for_content_creation__2" target="_self">https://www.ez.no/community/forum/setup_design/how_to_create_a_simple_user_interface_for_content_creation/re_how_to_create_a_simple_user_interface_for_content_creation__2</a></li>
</ul>
<ul>
<li>
Adding an action button / The guestbook / Building an eZ publish site<br /><a href="https://www.ez.no/ez_publish/documentation/building_an_ez_publish_site/the_guestbook/adding_an_action_button" target="_self">https://www.ez.no/ez_publish/documentation/building_an_ez_publish_site/the_guestbook/adding_an_action_button</a></li>
</ul>
<ul>
<li>Creating a tree-style appearence / The links page / Building an eZ publish site</li>
<li><a href="https://www.ez.no/ez_publish/documentation/building_an_ez_publish_site/the_links_page/creating_a_tree_style_appearence" target="_self">https://www.ez.no/ez_publish/documentation/building_an_ez_publish_site/the_links_page/creating_a_tree_style_appearence</a></li>
</ul>
<ul>
<li>Developer toolbar / Specs / Developer</li>
<li><a href="https://www.ez.no/community/developer/specs/developer_toolbar" target="_self">https://www.ez.no/community/developer/specs/developer_toolbar</a></li>
</ul>
<ul>
<li>Adding tree functionality to 3.4 subleft menu template / Setup &amp; design / Forum</li>
<li><a href="https://www.ez.no/community/forum/setup_design/adding_tree_functionality_to_3_4_subleft_menu_template" target="_self">https://www.ez.no/community/forum/setup_design/adding_tree_functionality_to_3_4_subleft_menu_template</a></li>
</ul>
<ul>
<li>Left menu, exclude a node / Setup &amp; design / Forum</li>
<li><a href="https://www.ez.no/community/forum/setup_design/left_menu_exclude_a_node" target="_self">https://www.ez.no/community/forum/setup_design/left_menu_exclude_a_node</a></li>
</ul>
<ul>
<li>Re: Online editors / Online editors / Suggestions</li>
<li><a href="https://www.ez.no/community/forum/suggestions/online_editors/re_online_editors__34" target="_self">https://www.ez.no/community/forum/suggestions/online_editors/re_online_editors__34</a></li>
</ul>
<ul>
<li>Using a Different Online Editor / General / Forum</li>
<li><a href="https://ez.no/community/forum/general/using_a_different_online_editor" target="_self">https://ez.no/community/forum/general/using_a_different_online_editor</a></li>
</ul>
<ul>
<li>XMLArea extension development / Developer / Forum</li>
<li><a href="https://ez.no/community/forum/developer/xmlarea_extension_development" target="_self">https://ez.no/community/forum/developer/xmlarea_extension_development</a></li>
</ul>
<ul>
<li>Limiting users to 1 site design? / Developer / Forum</li>
<li><a href="https://www.ez.no/community/forum/developer/limiting_users_to_1_site_design" target="_self">https://www.ez.no/community/forum/developer/limiting_users_to_1_site_design</a></li>
</ul>
<ul>
<li>Re: multiple sites on one database / multiple sites on one database / Setup &amp; design</li>
<li><a href="https://www.ez.no/community/forum/setup_design/multiple_sites_on_one_database/re_multiple_sites_on_one_database__3" target="_self">https://www.ez.no/community/forum/setup_design/multiple_sites_on_one_database/re_multiple_sites_on_one_database__3</a></li>
</ul>
<ul>
<li>Changed RootNode and got serious url trouble / Setup &amp; design / Forum</li>
<li><a href="https://www.ez.no/community/forum/setup_design/changed_rootnode_and_got_serious_url_trouble" target="_self">https://www.ez.no/community/forum/setup_design/changed_rootnode_and_got_serious_url_trouble</a></li>
</ul>
<ul>
<li>RootNode and Bread-crumbs / Setup &amp; design / Forum</li>
<li><a href="https://www.ez.no/community/forum/setup_design/rootnode_and_breadcrumbs" target="_self">https://www.ez.no/community/forum/setup_design/rootnode_and_breadcrumbs</a></li>
</ul>
<ul>
<li>Override templates / Custom design / Customization</li>
<li><a href="https://ez.no/ez_publish/documentation/customization/custom_design/override_templates" target="_self">https://ez.no/ez_publish/documentation/customization/custom_design/override_templates</a></li>
</ul>
<ul>
<li>How to find the parent and grandparent of an object / Incoming / Documentation</li>
<li><a href="https://www.ez.no/ez_publish/documentation/incoming/how_to_find_the_parent_and_grandparent_of_an_object" target="_self">https://www.ez.no/ez_publish/documentation/incoming/how_to_find_the_parent_and_grandparent_of_an_object</a></li>
</ul>
<ul>
<li>tree / Content / Data fetching</li>
<li><a href="https://ez.no/ez_publish/documentation/reference/data_fetching/content/tree" target="_self">https://ez.no/ez_publish/documentation/reference/data_fetching/content/tree</a></li>
</ul>
<ul>
<li>Separate pagelayouts for ‘view’ and ‘edit’ - NOT POSSIBLE? / Developer / Forum</li>
<li><a href="https://ez.no/community/forum/developer/separate_pagelayouts_for_view_and_edit_not_possible" target="_self">https://ez.no/community/forum/developer/separate_pagelayouts_for_view_and_edit_not_possible</a></li>
</ul>
<ul>
<li>Building an eZ publish module / Extensions / Development</li>
<li><a href="https://ez.no/ez_publish/documentation/development/extensions/building_an_ez_publish_module" target="_self">https://ez.no/ez_publish/documentation/development/extensions/building_an_ez_publish_module</a></li>
</ul>
<ul>
<li>Redirect inside a tpl file / Developer / ForumBuilding an eZ publish module / Extensions / Development</li>
<li><a href="https://www.ez.no/community/forum/developer/redirect_inside_a_tpl_file" target="_self">https://www.ez.no/community/forum/developer/redirect_inside_a_tpl_file</a></li>
</ul>
<ul>
<li>how to use a parameter in a template operator? / Developer / Forum</li>
<li><a href="https://www.ez.no/community/forum/developer/how_to_use_a_parameter_in_a_template_operator" target="_self">https://www.ez.no/community/forum/developer/how_to_use_a_parameter_in_a_template_operator</a></li>
</ul>
<ul>
<li>urgent! important! how to store session variables????? / Setup &amp; design / Forum</li>
<li><a href="https://www.ez.no/community/forum/setup_design/urgent_important_how_to_store_session_variables" target="_self">https://www.ez.no/community/forum/setup_design/urgent_important_how_to_store_session_variables</a></li>
</ul>
<ul>
<li>Function list / Functions / eZ template</li>
<li><a href="https://ez.no/products/ez_publish/documentation/development/libraries/ez_template/functions/function_list" target="_self">https://ez.no/products/ez_publish/documentation/development/libraries/ez_template/functions/function_list</a></li>
</ul>
<ul>
<li>Adding a Remove Button/Image / Tips &amp; Tricks / Customizationist</li>
<li><a href="https://www.ez.no/ez_publish/documentation/customization/tips_tricks/adding_a_remove_button_image" target="_self">https://www.ez.no/ez_publish/documentation/customization/tips_tricks/adding_a_remove_button_image</a></li>
</ul>
<ul>
<li>Redirecting after content publishing / Tips &amp; Tricks / Customization</li>
<li><a href="https://ez.no/products/ez_publish/documentation/customization/tips_tricks/redirecting_after_content_publishing" target="_self">https://ez.no/products/ez_publish/documentation/customization/tips_tricks/redirecting_after_content_publishing</a></li>
</ul>
<ul>
<li>Disabling drafts in user profiles / Developer / Foruming_after_content_publishing</li>
<li><a href="https://ez.no/community/forum/developer/disabling_drafts_in_user_profiles" target="_self">https://www.ez.no/community/forum/developer/disabling_draf</a></li>
</ul>
<ul>
<li>eZContentObject class Referencets_in_user_profiles</li>
<li><a href="https://pubsvn.ez.no/doxygen/3.4/html/classeZContentObject.html" target="_self">https://pubsvn.ez.no/doxygen-3.4/classeZContentObject.html</a></li>
</ul>
<ul>
<li>Creating a new translation / Language and charset / Configuration</li>
<li><a href="https://ez.no/products/ez_publish/documentation/configuration/configuration/language_and_charset/creating_a_new_translation" target="_self">https://ez.no/ez_publish/documentation/configuration/conf</a></li>
</ul>
<ul>
<li>what is i18n / Developer / Forumiguration/language_and_charset/creating_a_new_translation</li>
<li><a href="https://www.ez.no/community/forum/developer/what_is_i18n_" target="_self">https://www.ez.no/community/forum/developer/what_is_i18n_</a></li>
</ul>
<ul>
<li>Common template issues / Examples / Custom design</li>
<li><a href="https://ez.no/products/ez_publish/documentation/customization/custom_design/examples/common_template_issues" target="_self">https://www.ez.no/ez_publish/documentation/customization/custom_design/examples/common_template_issue</a></li>
</ul>
Mon, 31 Aug 2009 10:11:15 GMTWhat 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
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>Mon, 31 Aug 2009 10:10:16 GMTPerformance Tuning eZ Publish 4
https://ezpedia.org/solution/performance_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="/pt/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="/pt/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> <span style="color: #00007f;">from</span> <span style="color: #00007f;">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>
Fri, 21 Aug 2009 00:02:53 GMTSetting: Disable Dirty Object Draft Edit Show Versions View
https://ezpedia.org/solution/setting_disable_dirty_object_draft_edit_show_versions_view
https://ezpedia.org/solution/setting_disable_dirty_object_draft_edit_show_versions_view
<div class="object-right"> <p class="editor_motivation">This is a <a href="/pt/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc220039_1" id="eztoc220039_1"></a><h2>Need</h2><p>To ensure that users who are editing their own content objects on the frontend are not bothered by encountering the "existing drafts" window / page.</p><a name="eztoc220039_2" id="eztoc220039_2"></a><h2>Solution</h2><p>One solution may be to use the following setting to provide for the above need.</p><a name="eztoc220039_2_1" id="eztoc220039_2_1"></a><h3>Setting</h3><p>Default setting from the setings file, settings/site.ini </p> <pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">[</span>ContentSettings<span style="">]</span></span>
# What to do when editing an object that has draft versions newer than the current version.
# Use 'showversions' to select which version to edit, or 'usecurrent' to always edit the current version.
<span style="color: #000099;">EditDirtyObjectAction</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #000066; font-weight:bold;"><span style="color: #660066;">showversions|usecurrent</span></span></pre><p>Solution setting for your setings override file, settings/override/site.ini.append.php</p> <pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">[</span>ContentSettings<span style="">]</span></span>
<span style="color: #000099;">EditDirtyObjectAction</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">usecurrent</span></pre><a name="eztoc220039_3" id="eztoc220039_3"></a><h2>References</h2>
<ul>
<li>Doc: <a href="https://ez.no/doc/ez_publish/technical_manual/3_10/reference/configuration_files/site_ini/contentsettings/editdirtyobjectaction" target="_self">Reference - EditDirtyObjectAction</a> </li>
</ul>
Tue, 18 Aug 2009 05:11:50 GMTTips Running eZ Publish PHP CLI Scripts
https://ezpedia.org/solution/tips_running_ez_publish_php_cli_scripts
https://ezpedia.org/solution/tips_running_ez_publish_php_cli_scripts
<div class="object-center"> <p class="editor_motivation">This is a <a href="/pt/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div>
<ol>
<li>Capture all script output to log file: <i># php /path/to/script | tee ~/ez.script.2006.11.17.001.log</i> </li>
<li>A <a href="/pt/solution/tips_running_cronjobs_and_scripts_with_required_arguments_in_limited_hosting_environment" target="_self">solution</a> to running php cli scripts or other programs with required arguments in a limited hosting environment.</li>
</ol>
Tue, 18 Aug 2009 02:32:28 GMTTips Running - Cronjobs and scripts with required arguments in limited hosting environment
https://ezpedia.org/solution/tips_running_cronjobs_and_scripts_with_required_arguments_in_limited_hosting_environment
https://ezpedia.org/solution/tips_running_cronjobs_and_scripts_with_required_arguments_in_limited_hosting_environment<a name="eztoc316316_1" id="eztoc316316_1"></a><h2>Previous Title</h2><p>Running cronjobs and scripts with required arguments / parameters in limited hosting environment</p><a name="eztoc316316_2" id="eztoc316316_2"></a><h2>Question</h2><p>How can I run eZ Publish scripts and cronjobs with parameters on shared hosting without ssh.</p><p>You may only be allowed to run php files as a cronjob without any parameters and without the possibility to browse eZ Publish directory.</p><p>You also may not have command line access. Yeah, this can be pretty frustrating, but can not find or afford a better hosting solution.</p><a name="eztoc316316_3" id="eztoc316316_3"></a><h2>Solution</h2><p>When your provider doesn't allow you to run cronjob tasks with parameters and when your server runs php-cgi. </p><p>In order to run cronjob task with parameters, you can create a separate php file and then create a cronjob task pointing to that file.</p><a name="eztoc316316_3_1" id="eztoc316316_3_1"></a><h3>Custom Script Example</h3><p>Here is an example of the solution using the data_import extension as an example.</p><p>File: <i> /path/to/ezpublish/extensions/custom/cronjobs/run_custom_cronjob_script.php</i> </p> <pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;"><</span>?php
<span style="color: #007800;">$output</span> = shell_exec<span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #ff0000;">'cd /path/to/ezpublish/; /path/to/php5 runcronjobs.php import_images_csv'</span><span style="color: #7a0874; font-weight: bold;">)</span>;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">"<pre><span style="color: #007800;">$output</span></pre>"</span>;
?<span style="color: #000000; font-weight: bold;">></span></pre><p>The above example creates an output (as seen in the code) so you will know if your import is successful or not. </p><a name="eztoc316316_3_2" id="eztoc316316_3_2"></a><h3>Web Browser Example</h3><p>You may for very small tasks be able to run the above file from a web browser as long as the script completes quickly as browser requests do not work well with long running tasks.</p><p>The following tasks have been reported to be able to be run from the web browser with success if only limited. Most successes have been reported to resolve around limited execution time.</p>
<ul>
<li>Scripts: Custom Scripts - <i>Try limiting the execution time</i> </li>
<li>Cronjobs: Data Import - Try limiting how much complicated data import you attempt each time </li>
<li>Database: Dump / Load / Custom SQL- <i>Try using phpmyadmin or other dba tools</i> </li>
</ul>
<a name="eztoc316316_4" id="eztoc316316_4"></a><h2>References</h2>
<ul>
<li><a href="/pt/ez/cronjob" target="_self">Cronjobs</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/developer/running_cronjobs_php_with_parameters_in_limited_environment#msg179130" title="Posted by: Noicokuna Niemoge: Hello; I just wanted to share one solution: running cronjobs when your provider doesn" target="_self">Running cronjobs.php with parameters in limited environment (shared hosting/cpanel)</a> </li>
</ul>
Tue, 18 Aug 2009 02:28:58 GMTDetecting and solving content object corruption
https://ezpedia.org/solution/detecting_and_solving_content_object_corruption
https://ezpedia.org/solution/detecting_and_solving_content_object_corruption<a name="eztoc206657_1" id="eztoc206657_1"></a><h2>About</h2><p>Dealing with content object corruption or what to do with a corrupt eZ Publish Database?</p><a name="eztoc206657_2" id="eztoc206657_2"></a><h2>Solutions</h2><p>...</p><a name="eztoc206657_3" id="eztoc206657_3"></a><h2>External References</h2>
<ul>
<li>Forum: <a href="https://ez.no/community/forum/general/problem_corrupt_contentobjects#msg147670" title="Posted by: Jonny Bergkvist: Hi, I have a problem on all eZ databases I have where users have published content for a while. Objects exists where current_version of the object doesn" target="_self">Problem: corrupt contentobjects</a> </li>
</ul>
Mon, 17 Aug 2009 07:51:53 GMTHow to fetch and display image alias variations in jpeg format
https://ezpedia.org/solution/how_to_fetch_and_display_image_alias_variations_in_jpeg_format
https://ezpedia.org/solution/how_to_fetch_and_display_image_alias_variations_in_jpeg_format<p>From: <i>kracker and Peter Schnuerer</i> </p><p>Date: <i>Wednesday 01 June 2005 8:02:17 pm</i> </p><p>Filed under: Images Variation</p><p>Was called: Image operator always creates png but I need jpg</p><a name="eztoc491_1" id="eztoc491_1"></a><h2>Summary</h2><p>I wrote an extensive thread on altering eZ publish image variation behavior to remove static hard coded values. An interesting (while long winded) thread ... </p><a name="eztoc491_2" id="eztoc491_2"></a><h2>Reference</h2>
<ul>
<li>Forum: <a href="https://ez.no/community/forum/install_configuration/image_always_creates_png_but_i_do_need_jpg" target="_self">https://ez.no/community/forum/install_configuration/image_always_creates_png_but_i_do_need_jpg</a></li>
</ul>
Mon, 17 Aug 2009 07:49:59 GMTConnecting to Webdav using Microsoft Windows Vista
https://ezpedia.org/solution/connecting_to_webdav_using_microsoft_windows_vista
https://ezpedia.org/solution/connecting_to_webdav_using_microsoft_windows_vista<a name="eztoc204018_1" id="eztoc204018_1"></a><h2>Problem</h2><p>I just setup a webdav site. It didn't work. Then I found out that none of my ez webdav sites are working - shocking!</p><a name="eztoc204018_1_1" id="eztoc204018_1_1"></a><h3>Cause</h3><p>Well, the reason is: You can't open a webdav site with CTRL+O like it was before at Windows XP and Explorer.</p><a name="eztoc204018_2" id="eztoc204018_2"></a><h2>Solution</h2>
<ol>
<li>You need to open, Start -> Computer -> Extras -> add network resource</li>
<li>Choose "web folder" (or is there "webdav" in english?)</li>
<li>Enter the url WITHOUT # at the end! Like, https://webdav.mysite.com/</li>
<li>Save it - works again.</li>
</ol>
<a name="eztoc204018_3" id="eztoc204018_3"></a><h2>Reference</h2>
<ul>
<li>Forum: <a href="https://ez.no/community/forum/install_configuration/webdav_and_vista#msg142994" title="Posted by: Georg Franz: Hi, I just setup a webdav site. It didn" target="_self">webdav and vista</a> </li>
</ul>
Mon, 17 Aug 2009 07:46:43 GMTPatch: Adding view parameter support into custom user extention module view
https://ezpedia.org/solution/patch_adding_view_parameter_support_into_custom_user_extention_module_view
https://ezpedia.org/solution/patch_adding_view_parameter_support_into_custom_user_extention_module_view
<div class="object-right"><p class="version_info_ezp3">This is compatible with <a href="/pt/ez/ez_publish_3" target="_self">eZ Publish 3</a>.</p></div><a name="eztoc495_1" id="eztoc495_1"></a><h2>Compatibility</h2><p>This article was written for eZ Publish 3. Prolly before eZ Publish 3.9. To our knowledge this feature has been added within (at least) eZ Publish 4.1</p><a name="eztoc495_2" id="eztoc495_2"></a><h2>About</h2><p>From: Jamie </p><p>Date: Tuesday March 22nd 2005, 5:23 pm </p><p>Filed under: General </p><p>Jamie: If for some odd reason you’d like to be able to use view parameters (userParameters) in user module’s register.php provided by eZ publish, here’s the 5 lines of code you need to add. </p><p>After the line: </p> <pre class="php-brief" style="font-family:monospace;"><span style="color: #0000ff;">$Params</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'TemplateObject'</span><span style="color: #009900;">]</span> <span style="color: #339933;">=&</span> <span style="color: #0000ff;">$tpl</span><span style="color: #339933;">;</span></pre><p>add: </p> <pre class="php-brief" style="font-family:monospace;"><span style="color: #b1b100;">include_once</span><span style="color: #009900;">(</span> <span style="color: #0000ff;">"lib/ezutils/classes/ezuri.php"</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;">$GLOBALS</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'eZRequestedURI'</span><span style="color: #009900;">]</span> <span style="color: #339933;">=&</span> <span style="color: #0000ff;">$uri</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$viewParameters</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: #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>Then, in your overridden register.tpl, you can access the userParameter like this:</p> <pre class="php-brief" style="font-family:monospace;"><span style="color: #0000ff;">$view_parameters</span><span style="color: #339933;">.</span>type</pre><p>If your URL looks something like:</p> <pre class="eztemplate" style="font-family:monospace;">https://www.example.com/user/register/(type)/something</pre><p>That is to say, the register.tpl should then work as described here. </p><p>The above may not be the most correct/elegant/efficient way to do it, but it works for me, and that’s all I need right now. </p><p>And thanks go to Katana on the #ezpublish IRC channel for prodding me in the right direction with the above. </p><p>Check out Katana’s formsess project for some clever Smarty-powered forms processing magic type stuff. </p>Mon, 17 Aug 2009 07:08:59 GMTHow to create shorter paths and urls to content objects
https://ezpedia.org/solution/how_to_create_shorter_paths_and_urls_to_content_objects
https://ezpedia.org/solution/how_to_create_shorter_paths_and_urls_to_content_objects<a name="eztoc45573_1" id="eztoc45573_1"></a><h2>Summary</h2><p>Information from andre1 in the technical manual reference for siteaccess settings, <a href="https://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/siteaccesssettings/pathprefix" target="_self">pathprefix</a>, and from Dirk Schmedding on the <a href="https://lists.ez.no/pipermail/sdk-public/2006-May/002151.html" target="_self">list</a>.</p><a name="eztoc45573_2" id="eztoc45573_2"></a><h2>Example</h2><p>You can use the PathPrefix setting in a siteaccess' site.ini to remove parts of the URL. For example:</p> <pre class="" style="font-family:monospace;"><span class="br0">[</span>SiteAccessSettings<span class="br0">]</span>
PathPrefix=dir</pre><p>
Old url: www.example.org/dir/subdir/some_content<br />New url: www.example.org/subdir/some_content</p><p>Or alternatively:</p> <pre class="" style="font-family:monospace;"><span class="br0">[</span>SiteAccessSettings<span class="br0">]</span>
PathPrefix=dir/subdir/</pre><p>
old url: www.example.org/dir/subdir/some_content<br />new url: www.example.org/some_content</p><a name="eztoc45573_2_1" id="eztoc45573_2_1"></a><h3>PathPrefixExclude</h3><p>If you have a structure like this:</p><p>
www.example.org/foo<br />
www.example.org/foo/bar<br />www.example.org/baz</p><p>and you set your PathPrefix like this:</p> <pre class="" style="font-family:monospace;"><span class="br0">[</span>SiteAccessSettings<span class="br0">]</span>
PathPrefix=foo</pre><p>You will then be unable to access www.example.org/baz. However, you can use PathPrefixExclude to specify URLs that are not subject to PathPrefix, like this:</p> <pre class="" style="font-family:monospace;"><span class="br0">[</span>SiteAccessSettings<span class="br0">]</span>
PathPrefix=foo
PathPrefixExclude<span class="br0">[</span><span class="br0">]</span>
PathPrefixExclude<span class="br0">[</span><span class="br0">]</span>=baz</pre><p>You will need to do this for every URL for which PathPrefix should not apply.</p><a name="eztoc45573_3" id="eztoc45573_3"></a><h2>External reference</h2>Mon, 17 Aug 2009 07:01:25 GMTUpgrading eZ Publish 3.3 to 3.9
https://ezpedia.org/solution/upgrading_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>
Mon, 17 Aug 2009 03:50:53 GMTHow to select distinct using a function definition
https://ezpedia.org/solution/how_to_select_distinct_using_a_function_definition
https://ezpedia.org/solution/how_to_select_distinct_using_a_function_definition<a name="eztoc126535_1" id="eztoc126535_1"></a><h2>Background</h2><p>A user working within a function definition to query the database using the 'SELECT DISTINCT' command.</p><a name="eztoc126535_2" id="eztoc126535_2"></a><h2>Question</h2><p>Is there any way to use a "SELECT DISTINCT" query using the following function definition?</p><a name="eztoc126535_3" id="eztoc126535_3"></a><h2>Solution</h2><p>Yes. See forum thread reference for solution.</p><a name="eztoc126535_4" id="eztoc126535_4"></a><h2>External Reference</h2>
<ul>
<li>Forum: <a href="https://ez.no/community/forum/developer/solved_function_definition_select_distinct" target="_self">[solved] Function definition, Select Distinct</a> </li>
</ul>
Mon, 17 Aug 2009 00:13:58 GMTSearch returns no results found
https://ezpedia.org/solution/search_returns_no_results_found
https://ezpedia.org/solution/search_returns_no_results_found<a name="eztoc551_1" id="eztoc551_1"></a><h2>About</h2><p>
When the stock eZ publish search returns 'No Results Found', when results should be found.<br /><i>Or, i haven’t broke it, it’s stock, there’s data, it should work, it’s not working, what’s different?</i></p><a name="eztoc551_2" id="eztoc551_2"></a><h2>Problem</h2><p>I was using eZ publish recently for a web site (really, gasp?!? the audience applauds). </p><p>Towards the end of the work I went to polish off the implementation’s search (mostly template overrides to make the look consistent). </p><p>
Inoticed that while the eZ publish build (3.5.0 at the time) was stock and looked good to go as far as the ezsearch settings were concerned.<br />
Yet I every time, in every location I used the search features I got the dreaded error: “No results were found when searching for...”<br />What’s the deal? The audience pondered ...</p><a name="eztoc551_3" id="eztoc551_3"></a><h2>Solution</h2><p>Well the deal as pointed out by the infamous #ezpublish troll, Bedlore.</p><p>The problem is infact the database server’s actual databases permissions are set too restrictive to allow the ezsearch component to create the temporary tables required durring a search (yes, it’s true ezsearch does create temporary tables during a search).</p><p>In my case I had to run this sql as the database server’s administrator. </p> <pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">USE</span> mysql;
<span style="color: #993333; font-weight: bold;">UPDATE</span> db <span style="color: #993333; font-weight: bold;">SET</span> Create_priv<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'Y'</span><span style="color: #66cc66;">,</span> Grant_priv<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'Y'</span><span style="color: #66cc66;">,</span> References_priv<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'Y'</span><span style="color: #66cc66;">,</span> Index_priv<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'Y'</span><span style="color: #66cc66;">,</span> Alter_priv<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'Y'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> user<span style="color: #66cc66;">=</span><span style="color: #ff0000;">"csi_ezpublish"</span> <span style="color: #993333; font-weight: bold;">AND</span> db<span style="color: #66cc66;">=</span><span style="color: #ff0000;">"beta"</span>;
<span style="color: #993333; font-weight: bold;">FLUSH</span> privileges;</pre><p>
<br />After I ran the above sql I found I could use all the eZ publish search feaetures normaly again.</p><p>
<b>Special thanks to participants:</b> kracker, Bedlore<br /><b>References:</b> n/a</p>Mon, 17 Aug 2009 00:10:21 GMTHow to provide for Intranet IP Based Authentication
https://ezpedia.org/solution/how_to_provide_for_intranet_ip_based_authentication
https://ezpedia.org/solution/how_to_provide_for_intranet_ip_based_authentication
<div class="object-right"><p class="version_info_ezp3">This is compatible with <a href="/pt/ez/ez_publish_3" target="_self">eZ Publish 3</a>.</p></div><a name="eztoc535_1" id="eztoc535_1"></a><h2>About</h2><p>It is _not_ recommended to change the kernel, because upgrades will be much harder. But if you really want to do it, this is how.</p><p><b>Special Thanks to participants:</b> Andy Masiar, Bjorn Dieding, Mark Marsiglio, Kristian Hole</p><p><b>References:</b><a href="https://ez.no/community/forum/setup_design/ip_based_intranet_authentication" target="_self">Intranet IP Based Authentication</a></p><p><b>Dated:</b><i> 2005/10/30 18:26</i></p><a name="eztoc535_2" id="eztoc535_2"></a><h2>Question</h2><p>Is it possible to authenticate users based on their IP?</p><a name="eztoc535_3" id="eztoc535_3"></a><h2>Answer</h2><p>There is a patch for login based on IP.</p><p>This is made for only one user, but you get the idea of how to do it.</p><p>This patch gets the IP address and the corresponding user from the site.ini.append.php file. (Patch is for 3.5.1) </p> <pre class="diff" style="font-family:monospace;">--- ezpublish_releases/ezpublish-3.5.1/pre_check.php <span style="">2005</span>-02-<span style="">24</span> <span style="">12</span>:05:<span style="">54.000000000</span> +0100
<span style="color: #888822;">+++ precheck_fixedfor351.php <span style="">2005</span>-03-09 09:<span style="">26</span>:<span style="">30.999605632</span> +0100</span>
<span style="color: #440088;">@@ -<span style="">89</span>,<span style="">6</span> +<span style="">89</span>,<span style="">19</span> @@</span>
// $uri =& $GLOBALS<span style="">[</span>'eZRequestedURI'<span style="">]</span>;
$check = array<span style="">(</span> "module" => "user",
"function" => "login" <span style="">)</span>;
<span style="color: #00b000;">+</span>
<span style="color: #00b000;">+ //---LoginOnIP-HACK</span>
<span style="color: #00b000;">+ if <span style="">(</span> $ini->hasVariable<span style="">(</span> 'LoginOnIP', 'IPAddress' <span style="">)</span> && $ini->hasVariable<span style="">(</span> 'LoginOnIP', 'UserID' <span style="">)</span></span>
<span style="color: #00b000;">+ && $_SERVER<span style="">[</span>'REMOTE_ADDR'<span style="">]</span> == $ini->variable<span style="">(</span> 'LoginOnIP', 'IPAddress' <span style="">)</span> <span style="">)</span></span>
<span style="color: #00b000;">+ <span style="">{</span></span>
<span style="color: #00b000;">+ include_once<span style="">(</span> 'kernel/classes/datatypes/ezuser/ezuser.php' <span style="">)</span>;</span>
<span style="color: #00b000;">+</span>
<span style="color: #00b000;">+ $userID = <span style="">(</span> int <span style="">)</span> $ini->variable<span style="">(</span> 'LoginOnIP', 'UserID' <span style="">)</span>;</span>
<span style="color: #00b000;">+ $user = eZUser::fetch<span style="">(</span> $userID <span style="">)</span>;</span>
<span style="color: #00b000;">+ eZUser::setCurrentlyLoggedInUser<span style="">(</span> $user, $userID <span style="">)</span>;</span>
<span style="color: #00b000;">+ <span style="">}</span></span>
<span style="color: #00b000;">+ //---LoginOnIP-HACK</span>
<span style="color: #00b000;">+</span>
if <span style="">(</span> $http->hasSessionVariable<span style="">(</span> "eZUserLoggedInID" <span style="">)</span> and
$http->sessionVariable<span style="">(</span> "eZUserLoggedInID" <span style="">)</span> != '' and
$http->sessionVariable<span style="">(</span> "eZUserLoggedInID" <span style="">)</span> != $ini->variable<span style="">(</span> 'UserSettings', 'AnonymousUserID' <span style="">)</span> <span style="">)</span>
<span style="color: #440088;">@@ -<span style="">173</span>,<span style="">4</span> +<span style="">186</span>,<span style="">4</span> @@</span>
<span style="">}</span></pre><a name="eztoc535_4" id="eztoc535_4"></a><h2>References</h2>
<ul>
<li>N/A</li>
</ul>
Mon, 17 Aug 2009 00:08:17 GMTPackage: Creating, Managing, Deploying and Maintaining eZ Publish Packages
https://ezpedia.org/solution/package_creating_managing_deploying_and_maintaining_ez_publish_packages
https://ezpedia.org/solution/package_creating_managing_deploying_and_maintaining_ez_publish_packages<p>From: <i>Bjorn Dieding @ xrow.de</i></p><a name="eztoc539_1" id="eztoc539_1"></a><h2>About an eZ Publish Package</h2><p>A package is compressed file which contains information related to eZ Publish.</p>
<ul>
<li>It contains some information stored as XML.</li>
<li>It can contain by convention additional file resources</li>
<li>File extension: *.ezpkg</li>
<li>File format: tar</li>
</ul>
<a name="eztoc539_2" id="eztoc539_2"></a><h2>References</h2>
<ol>
<li><a href="https://www.7-zip.org/" target="_self">https://www.7-zip.org/</a></li>
<li><a href="https://ez.no/ez_publish/documentation/ez_publish_3_4/content_object_export_with_ezpm" target="_self">https://ez.no/ez_publish/documentation/ez_publish_3_4/content_object_export_with_ezpm</a></li>
<li><a href="https://ez.no/community/forum/developer/is_it_possible_to_decopress_ez_packages" target="_self">https://ez.no/community/forum/developer/is_it_possible_to_decopress_ez_packages</a></li>
<li><a href="https://www.ez.no/community/forum/general/package_export_and_import" target="_self">https://www.ez.no/community/forum/general/package_export_and_import</a></li>
<li><a href="https://ez.no/community/forum/developer/ezp_and_xml_export_data_to_feed_external_appi" target="_self">https://ez.no/community/forum/developer/ezp_and_xml_export_data_to_feed_external_appi</a></li>
</ol>
Sun, 16 Aug 2009 23:31:38 GMTPackage: Creating eZ Publish Packages
https://ezpedia.org/solution/package_creating_ez_publish_packages
https://ezpedia.org/solution/package_creating_ez_publish_packages<a name="eztoc134418_1" id="eztoc134418_1"></a><h2>Description</h2><p>You might want to create custom deb packages of your own supported eZ publish requirements.</p><p>As many distributions have poor support for PHP 4.4 branch (atm) many users find themselves installing their own software to provide PHP 4.4 or greater.</p><a name="eztoc134418_1_1" id="eztoc134418_1_1"></a><h3>Examples</h3><p>Examples of software possibly worth packaging for production server software management.</p>
<ul>
<li>sitedesigns</li>
<li>extensions</li>
<li>content classes</li>
<li>content packages</li>
</ul>
<a name="eztoc134418_2" id="eztoc134418_2"></a><h2>Commands</h2><p>No command summary provided at this time.</p><a name="eztoc134418_3" id="eztoc134418_3"></a><h2>Create eZ extension package for 3.9</h2><a name="eztoc134418_3_2" id="eztoc134418_3_2"></a><h3>Create xyz in /a/b/c/</h3> <pre class="" style="font-family:monospace;">root@localhost:#</pre><a name="eztoc134418_3_3" id="eztoc134418_3_3"></a><h3>Paste this into vim, save and quit</h3> <pre class="" style="font-family:monospace;">#</pre><a name="eztoc134418_3_4" id="eztoc134418_3_4"></a><h3>Build deb</h3> <pre class="" style="font-family:monospace;">#</pre><a name="eztoc134418_4" id="eztoc134418_4"></a><h2>External reference</h2>
<ul>
<li>Forum: none</li>
</ul>
Sun, 16 Aug 2009 23:27:02 GMTPackage: Testing a site design package using the ez.no demo site
https://ezpedia.org/solution/package_testing_a_site_design_package_using_the_ez_no_demo_site
https://ezpedia.org/solution/package_testing_a_site_design_package_using_the_ez_no_demo_site<p>* Submitted by Luke Serwatka </p><a name="eztoc555_1" id="eztoc555_1"></a><h2>Brief</h2><p>If you would like to test out a site design (css + images + files) package without installing it on your own eZ publish installation you can do so very simply. Use the ez.no <a href="https://ez.no/ez_publish/demo" title="https://ez.no/ez_publish/demo" target="_blank">demo site</a> </p><a name="eztoc555_2" id="eztoc555_2"></a><h2>Steps</h2>
<ol>
<li>Login to the <a href="https://admindevel.ezpublish.no/" title="https://admindevel.ezpublish.no/" target="_blank">Admin interface</a> (Log in with username: admin and password: publish) </li>
<li>Go to the <a href="https://admindevel.ezpublish.no/package/list" title="https://admindevel.ezpublish.no/package/list" target="_blank">Package Admin</a>, Import the package (requires you to first download the package to your local machine to upload it to the demo site, example packages available from <a href="https://ez.no/community/contribs/site_styles" title="https://ez.no/community/contribs/site_styles" target="_blank">ez.no</a>) </li>
<li>Go to the <a href="https://admindevel.ezpublish.no/visual/menuconfig" title="https://admindevel.ezpublish.no/visual/menuconfig" target="_blank">Design Admin</a>, select “<a href="https://admindevel.ezpublish.no/content/edit/54/" title="https://admindevel.ezpublish.no/content/edit/54/" target="_blank">Look and Feel</a>“, select the newly available design, save your changes. </li>
<li>Go to the <a href="https://admindevel.ezpublish.no/setup/cache" title="https://admindevel.ezpublish.no/setup/cache" target="_blank">Cache Admin</a>, Clear All Cache </li>
<li>Load / refresh the user demo site in your browser: <a href="https://devel.ezpublish.no/" title="https://devel.ezpublish.no/" target="_blank">https://devel.ezpublish.no/</a> </li>
</ol>
<a name="eztoc555_3" id="eztoc555_3"></a><h2>Voila! </h2>
<ul>
<li>You can use <a href="https://www.rarsoft.com/rar_archiver.htm" title="https://www.rarsoft.com/rar_archiver.htm" target="_blank">WinRAR</a> to extract files from contributed designs files. </li>
<li>You also can browse ezpackage files using <a href="https://www.ghisler.com/" title="https://www.ghisler.com/" target="_blank">Total Commander</a> for Windows. </li>
</ul>
Sun, 16 Aug 2009 23:25:36 GMTModify SiteAccessRules to allow advanced editing
https://ezpedia.org/solution/modify_siteaccessrules_to_allow_advanced_editing
https://ezpedia.org/solution/modify_siteaccessrules_to_allow_advanced_editing
<div class="object-right"><p class="version_info_ezp3">This is compatible with <a href="/pt/ez/ez_publish_3" target="_self">eZ Publish 3</a>.</p></div><a name="eztoc36557_1" id="eztoc36557_1"></a><h2>Problem</h2><p>Class and template editing are disabled by default since the 3.9.0 release.However, it looks like complaints from user have lead eZ to reenable this functionality at least in 3.9.2. So the information below is likely not required for new installs.</p><a name="eztoc36557_1_1" id="eztoc36557_1_1"></a><h3>Notices</h3>
<ol>
<li>On the final page of eZ publish installation and setup, the user is presented with message: <b><i> </i></b>
<ul>
<li><b><i>"The ability to edit classes and templates have been disabled in the Administration Interface in order to comply with the warranty in the eZ Publish Now service."</i></b></li>
</ul>
</li>
<li>Edit controls are still displayed on 'Setup/classes' page and create template override controls on 'Design/templates'. Yet when trying to use them, displays these error messages:
<ul>
<li><i>"The requested page could not be displayed. (22) The requested view can not be accessed. The <edit> within the <class> is disabled and thus it can not be accessed."</i></li>
<li><i>"The requested page could not be displayed. (22) The requested view can not be accessed. The <templatecreate> within the <visual> is disabled and thus it can not be accessed."</i></li>
</ul>
</li>
</ol>
<a name="eztoc36557_1_2" id="eztoc36557_1_2"></a><h3>Settings</h3><p>To enable these features, remove the following settings (remove the 'Rules[]' lines) from 'settings/override/site.ini.append.php'</p> <pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">[</span>SiteAccessRules<span style="">]</span></span>
Rules<span style="">[</span><span style="">]</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>access<span style="color: #666666; font-style: italic;">;disable</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;class/edit</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;class/groupedit</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;class/copy</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;class/down</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;class/up</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;class/removeclass</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;class/removegroup</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;class/translation</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;visual/templateedit</span>
Rules<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>module<span style="color: #666666; font-style: italic;">;visual/templatecreate</span></pre><a name="eztoc36557_2" id="eztoc36557_2"></a><h2>External Reference</h2>
<ul>
<li><a href="https://ez.no/community/forum/general/why_is_the_3_9_0_release_crippled_by_default" target="_self">Forum: Why is the 3.9.0 release crippled by default</a></li>
</ul>
Sun, 16 Aug 2009 15:05:59 GMTPublishing static pages
https://ezpedia.org/solution/publishing_static_pages
https://ezpedia.org/solution/publishing_static_pages<a name="eztoc305224_1" id="eztoc305224_1"></a><h2>Question</h2><p>How does one publish static pages from a completed eZ Publish website installation?</p><a name="eztoc305224_2" id="eztoc305224_2"></a><h2>Suggestion</h2><p>Read the following reference and suggestion example.</p><a name="eztoc305224_2_1" id="eztoc305224_2_1"></a><h3>Example</h3><p>I used this to produce an inexpensive visual preview of a customer's eZ Publish website.</p> <pre class="bash" style="font-family:monospace;">httrack http:<span style="color: #000000; font-weight: bold;">//</span>ez <span style="color: #660033;">-O</span> <span style="color: #ff0000;">"."</span> -<span style="color: #000000; font-weight: bold;">%</span>v -<span style="color: #000000; font-weight: bold;">*</span>layout<span style="color: #000000; font-weight: bold;">*</span> -<span style="color: #000000; font-weight: bold;">*</span>Calendar<span style="color: #000000; font-weight: bold;">/*</span> -<span style="color: #000000; font-weight: bold;">*</span>visual<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #660033;">--footer</span> <span style="color: #ff0000;">""</span> <span style="color: #660033;">--preserve</span>
</pre><a name="eztoc305224_3" id="eztoc305224_3"></a><h2>References</h2>
<ul>
<li>Form: <a href="https://ez.no/developer/forum/general/publishing_static_pages#msg172492" target="_self">Publishing static pages</a> </li>
</ul>
Sun, 16 Aug 2009 14:47:43 GMTDisabling versioning for content objects
https://ezpedia.org/solution/disabling_versioning_for_content_objects
https://ezpedia.org/solution/disabling_versioning_for_content_objects<a name="eztoc754_1" id="eztoc754_1"></a><h2>Problem</h2><p>The problem is versioning is built in (deep) into eZ publish. You can’t just remove it. Thankfully it is fairly configurable so you can extended the base implementation and alter key areas to archive the desired results. Which are more of a way to minimize revisions / hide the revision management.</p><p>There are a few issues involved in achieving these results.</p>
<ul>
<li>admin edit views</li>
<li>user edit views</li>
<li>add: edit view template (override) to remove / hide all non-essential functionality</li>
<li>alter: (optional) a content class version history limit from 5 to 2.</li>
<li>add: use hidden form fields to specify values of attributes</li>
</ul>
<a name="eztoc754_1_1" id="eztoc754_1_1"></a><h3>Misc References</h3>
<ul>
<li>[20:20] <zrg> i think returnURI field is relevant to mention there</li>
<li>[20:20] <kracker> agreed, i’m working through finding the correct acl permissions configuration for the web app</li>
<li>[20:21] <zrg> also the disableconfirm, i have yet to find out tho exactly how they can be used</li>
<li>[20:24] <zrg> its gonna be good. but now i sleep, will add the gory details when back among living</li>
<li>[20:25] * zrg is now known as zrg_comatose</li>
</ul>
<a name="eztoc754_2" id="eztoc754_2"></a><h2>Solution #1</h2><p>Restrict Class Version History (by class) to only two revisions, published or draft.</p>
<ol>
<li>Edit the your override for content.ini (ie: override/content.ini.append.php )
<ol>
<li>For folder class in content.ini</li>
<li>See: VersionHistoryClass[1]=5</li>
<li>Change it to : VersionHistoryClass[1]=2</li>
<li>Warning: If you change it to 1 (ie: VersionHistoryClass[1]=1 ) you will not be able to edit object</li>
</ol>
</li>
<li>How to use hidden form fields to specify values of attributes</li>
<li>Remove the discard draft warning (non-core)</li>
</ol>
<a name="eztoc754_3" id="eztoc754_3"></a><h2>Solution #2</h2><p>We found this kind of hack (for 3.4.2) to turn of the draft versioning mechanism: just override the content/edit_draft.tpl with this:</p> <pre class="eztemplate" style="font-family:monospace;"><span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=let&SearchContentClassID=34"><span style="color: #0600FF;">let</span></a>
<span style="color: #007700;">last_draft</span><span style="color: #66cc66;">=</span><span style="color: #0000bb;">$object</span>.<span style="color: #006600;">versions</span><span style="color: #66cc66;">|</span>extract_right<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">[</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">]</span>
<span style="color: #007700;">content_attributes</span><span style="color: #66cc66;">=</span><span style="color: #0000bb;">$last_draft</span>.<span style="color: #006600;">contentobject_attributes</span>
<span style="color: #007700;">main_node_id</span><span style="color: #66cc66;">=</span><span style="color: #0000bb;">$last_draft</span>.<span style="color: #006600;">main_parent_node_id</span>
<span style="color: #007700;">edit_version</span><span style="color: #66cc66;">=</span><span style="color: #0000bb;">$last_draft</span>.<span style="color: #006600;">version</span>
<span style="color: #007700;">edit_language</span><span style="color: #66cc66;">=</span><span style="color: #0000bb;">$last_draft</span>.<span style="color: #006600;">translation</span>.<span style="color: #006600;">language_code</span>
<span style="color: #007700;">attribute_base</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">'ContentObjectAttribute'</span>
<span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=include&SearchContentClassID=34"><span style="color: #0600FF;">include</span></a> <span style="color: #007700;">uri</span><span style="color: #66cc66;">=</span><span style="color: #dd0000;">"design:content/edit.tpl"</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=let&SearchContentClassID=34"><span style="color: #0600FF;">let</span></a><span style="color: #66cc66;">}</span></pre><a name="eztoc754_4" id="eztoc754_4"></a><h2>References</h2>
<ul>
<li><a href="https://ez.no/community/forum/suggestions/make_versioning_drafts_optional_per_class" target="_self">https://ez.no/community/forum/suggestions/make_versioning_drafts_optional_per_class</a> (last post)</li>
<li>Comment, “i tried to explain how to code in my CMS to another guy once, tutored him for a week firsthand.. some time after that he started heavy drinking i heard, never seen him since :P” –#ezpublish <zrg></li>
</ul>
Sun, 16 Aug 2009 14:46:30 GMTSwitching to rewrite rules, removing index.php from URLs and redirecting old requests
https://ezpedia.org/solution/switching_to_rewrite_rules_removing_index_php_from_urls_and_redirecting_old_requests
https://ezpedia.org/solution/switching_to_rewrite_rules_removing_index_php_from_urls_and_redirecting_old_requests<a name="eztoc45563_1" id="eztoc45563_1"></a><h2>About</h2><p>You will need some mod_rewrite rules set up in <a href="/pt/ez/apache" target="_self">Apache</a>. Generally, these should be added to the VirtualHost configuration. </p><a name="eztoc45563_2" id="eztoc45563_2"></a><h2>Example</h2><p>A basic set looks like this:</p> <pre class="" style="font-family:monospace;">RewriteRule ^/var/storage/.* $<span style="">0</span> <span class="br0">[</span>L<span class="br0">]</span>
RewriteRule ^/var/<span class="br0">[</span>^/<span class="br0">]</span>+/storage/.* $<span style="">0</span> <span class="br0">[</span>L<span class="br0">]</span>
RewriteRule ^/design/<span class="br0">[</span>^/<span class="br0">]</span>+/<span class="br0">(</span>stylesheets|images|javascripts?<span class="br0">)</span>/.* $<span style="">0</span> <span class="br0">[</span>L<span class="br0">]</span>
RewriteRule ^/share/icons/.* $<span style="">0</span> <span class="br0">[</span>L<span class="br0">]</span>
RewriteRule ^/extension/<span class="br0">[</span>^/<span class="br0">]</span>+/design/<span class="br0">[</span>^/<span class="br0">]</span>+/<span class="br0">(</span>stylesheets|images|javascripts?<span class="br0">)</span>/.* $<span style="">0</span> <span class="br0">[</span>L<span class="br0">]</span>
RewriteRule .* /index.php</pre><p>(Taken from Jan Borsodi's comment <a href="https://issues.ez.no/IssueView.php?Id=6053&ProjectId=3&Anchor=Comment245165" target="_self">here</a>)</p><p>Secondly, you will probably need to add the ForceVirtualHost setting in settings/override/site.ini.append.php. eZ can allegedly detect when it is installed in a virtual host setup, but it's not always correct.</p> <pre class="" style="font-family:monospace;"><span class="br0">[</span>SiteAccessSettings<span class="br0">]</span>
ForceVirtualHost=true</pre>
<div class="object-right"><a name="eztoc321726_1" id="eztoc321726_1"></a><h2>Redirect old url conventions/patterns</h2><p>If you're switching from a setup where index.php is occuring in the URL, to a rewrite rule based setup, you can make sure any old links are properly redirected (with HTTP status MOVED PERMANENTLY) to the new URL without index.php. Put this in the appropriate virtual host context of your Apache configuration:</p> <pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">RewriteRule</span> ^/index\.php/(.*)$ /$<span style="color: #ff0000;">1</span> [L,R=<span style="color: #ff0000;">301</span>]</pre></div><a name="eztoc45563_3" id="eztoc45563_3"></a><h2>Reference</h2>
<ul>
<li>Doc: <a href="/pt/ez/rewrite" target="_self">Rewrite</a></li>
<li>Doc: <a href="/pt/solution/switching_to_rewrite_rules" target="_self">Solution: Switching to rewrite rules</a></li>
<li>Forum: N/A</li>
</ul>
Sun, 16 Aug 2009 14:19:42 GMTSwitching to rewrite rules
https://ezpedia.org/solution/switching_to_rewrite_rules
https://ezpedia.org/solution/switching_to_rewrite_rules<a name="eztoc321726_2" id="eztoc321726_2"></a><h2>Redirect old url conventions/patterns</h2><p>If you're switching from a setup where index.php is occuring in the URL, to a rewrite rule based setup, you can make sure any old links are properly redirected (with HTTP status MOVED PERMANENTLY) to the new URL without index.php. Put this in the appropriate virtual host context of your Apache configuration:</p> <pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">RewriteRule</span> ^/index\.php/(.*)$ /$<span style="color: #ff0000;">1</span> [L,R=<span style="color: #ff0000;">301</span>]</pre>Sun, 16 Aug 2009 14:17:29 GMTBuilding php-cli (php 4.4.4) for eZ publish
https://ezpedia.org/solution/building_php_cli_php_4_4_4_for_ez_publish
https://ezpedia.org/solution/building_php_cli_php_4_4_4_for_ez_publish
<div class="object-right"><p class="version_info">This is compatible with PHP 4.4.x</p></div><p>I have seen a number of folks (in irc://irc.freenode.net #ezpublish) recently ask about the subject of php-cli and eZ publish.</p><p>Many seem to be without a php-cli executable binary and looking to find, install or build from source and install php-cli.</p><p>
I have for some time been offering compiled php-cli binaries at: <br /><i><a href="https://download.ezcommunity.net/php-cli/" title="https://download.ezcommunity.net/php-cli/" target="_self">https://download.ezcommunity.net/php-cli/</a></i></p><p>
I have ready to go php-cli binaries for GNU/Linux (php v4.3.x and php v4.4.4) and Windows (php v4.3 only).<br />The binaries have been tested (lightly) and are known to work on just about any current glibc GNU/Linux distribution.</p><p>Today I compiled the very latest php-cli (php v4.4.4) for GNU/Linux for an eZ publish client in need of a stand alone php-cli (v4.4.x) binary.</p><p>I have posted the packaged binary for others who do not have php-cli and have found they need php-cli in their eZ publish development and production servers. <i><a href="https://download.ezcommunity.net/php-cli/linux/php-4-4-4-cli.tar.gz" title="https://download.ezcommunity.net/php-cli/linux/php-4-4-4-cli.tar.gz" target="_self">https://download.ezcommunity.net/php-cli/linux/php-4-4-4-cli.tar.gz</a></i> </p><p>The packaged binary is simple for anyone with shell access (ssh) to upload to their eZ publish installation and use it without having to ask your hosting provider to install php-cli (some hosting providers will not offer this service or the software). </p><p>This compiled works out of the box.</p><p>For those users who can, I still recommend compiling the standalone php-cli from source themselves.</p><p>Here are the commands I used today to compile php-cli from source.</p> <pre class="eztemplate" style="font-family:monospace;"># php-cli (php 4.4.4) compile instructions:
lynx https://www.php.net/get/php-4.4.4.tar.gz/from/a/mirror
tar -vzxf php-4.4.4.tar.gz
cd php-4.4.4
mkdir /usr/local/php-4-4-4-cli
./configure --prefix=/usr/local/php-4-4-4-cli/php-cli --disable-cgi
make
make test
make install-cli
cd /usr/local/
tar -vzcf php-4-4-4-cli.tar.gz php-4-4-4-cli</pre><p>
<i>//kracker</i><br />
<i> </i><br /><i> Kottonmouth Kings - Enjoy</i></p>Sun, 16 Aug 2009 12:31:05 GMTBuilding php-cli for eZ publish command line scripts
https://ezpedia.org/solution/building_php_cli_for_ez_publish_command_line_scripts
https://ezpedia.org/solution/building_php_cli_for_ez_publish_command_line_scripts
<div class="object-right"><p class="version_info">This is compatible with PHP 4.4.x</p></div><a name="eztoc1622_1" id="eztoc1622_1"></a><h2>About</h2><p>Building standalone php-cli (php 4.4.4 + refcount patch) for eZ publish</p><a name="eztoc1622_2" id="eztoc1622_2"></a><h2>The Patch</h2><p>eZ publish and eZ publish command line scripts like the update scripts which interact with the content object database can use so many references that it causes PHP to segfault, crash, fail, die ...</p><p>This problem has been around for a long time and has only partially been resolved in PHP 4.4.x.</p><p>To help reduce the chance PHP might segfault, one may 'patch' PHP source code and recomple PHP.</p><p>Refcount (Increased Reference Support) Patch from <a href="https://ilia.ws/archives/5-Top-10-ways-to-crash-PHP.html" target="_self">https://ilia.ws/archives/5-Top-10-ways-to-crash-PHP.html</a> </p> <pre class="diff" style="font-family:monospace;">Index: zend.h
====================================
RCS file: /repository/Zend/Attic/zend.h,v
retrieving revision 1.164.2.21
diff -u -<span style="">3</span> -p -r1.164.2.21 zend.h
--- zend.h <span style="">16</span> Mar <span style="">2004</span> <span style="">17</span>:<span style="">36</span>:<span style="">17</span> -0000 1.164.2.21
+++ zend.h <span style="">14</span> Apr <span style="">2004</span> <span style="">18</span>:01:<span style="">37</span> -0000
@@ -<span style="">263</span>,<span style="">7</span> +<span style="">263</span>,<span style="">7</span> @@ struct _zval_struct <span style="">{</span>
zvalue_value value; /* value */
zend_uchar type; /* active type */
zend_uchar is_ref;
- zend_ushort refcount;
+ int refcount;
<span style="">}</span>;</pre><a name="eztoc1622_3" id="eztoc1622_3"></a><h2>Patching PHP</h2><p>Here are the commands I used today patch the php-cli source to include improved reference support.</p> <pre class="eztemplate" style="font-family:monospace;"># php-cli (php 4.4.4) compile instructions:
lynx https://www.php.net/get/php-4.4.4.tar.gz/from/a/mirror
tar -vzxf php-4.4.4.tar.gz
cd php-4.4.4
# apply patch
vi Zend/zend.h</pre><a name="eztoc1622_4" id="eztoc1622_4"></a><h2>Building PHP</h2><p>Here are the commands I used today to compile php-cli from source.</p> <pre class="eztemplate" style="font-family:monospace;">mkdir /usr/local/php-cli-4-4-4-refcount
./configure --prefix=/usr/local/php-cli-4-4-4-refcount --disable-cgi
make
make test
make install-cli</pre><a name="eztoc1622_5" id="eztoc1622_5"></a><h2>Testing</h2><p>Use this patched php-cli binary to run your eZ publish command line, cronjob, update scripts</p><a name="eztoc1622_5_1" id="eztoc1622_5_1"></a><h3>Example Use Case</h3> <pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>php-cli-<span style="color: #000000;">4</span>-<span style="color: #000000;">4</span>-<span style="color: #000000;">4</span>-refcount<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php <span style="color: #660033;">-d</span> <span style="color: #007800;">memory_limit</span>=456M <span style="color: #660033;">-C</span> update<span style="color: #000000; font-weight: bold;">/</span>common<span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>updatesearchindex2.php <span style="color: #660033;">-s</span> admin-dev <span style="color: #660033;">-dall</span> <span style="color: #660033;">--logfiles</span> <span style="color: #660033;">--verbose</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tee</span> ez.script.index-<span style="color: #000000;">2006</span>-<span style="color: #000000;">11</span>-<span style="color: #000000;">14</span>-0006.log</pre><a name="eztoc1622_6" id="eztoc1622_6"></a><h2>Another Patch</h2><p>Another <a href="https://files.derickrethans.nl/patches/refcount-overflow-check-2006-11-06.diff.txt" target="_self">patch</a> has been documented to solve other reference related problems related to eZ publish's PHP code. If the above patch does not solve your breakdowns, consider applying this other patch and test the results.</p><a name="eztoc1622_7" id="eztoc1622_7"></a><h2>References</h2>
<ul>
<li><a href="/pt/ez/references" target="_self">References</a></li>
<li>[Sdk-public] <a href="https://lists.ez.no/pipermail/sdk-public/2006-November/002463.html" target="_self">Update search index Segfaulting fix</a> </li>
<li><a href="/pt/ez/content_action_handlers" target="_self">Building stock php-cli (PHP 4.4.4) for eZ publish</a></li>
</ul>
Sun, 16 Aug 2009 12:30:18 GMTTop 10 most frequently used extensions
https://ezpedia.org/solution/top_10_most_frequently_used_extensions
https://ezpedia.org/solution/top_10_most_frequently_used_extensions
<div class="object-center"> <p class="editor_motivation">This is a <a href="/pt/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc37867_1" id="eztoc37867_1"></a><h2>Introduction</h2><p>What were the top 10 most frequently used eZ publish extensions from year to year.</p><a name="eztoc37867_2" id="eztoc37867_2"></a><h2>2009</h2><a name="eztoc37867_3" id="eztoc37867_3"></a><h2>2006</h2><a name="eztoc37867_3_1" id="eztoc37867_3_1"></a><h3>The Extensions</h3>
<ol>
<li>ezdhtml - eZ online editor - Released in 2006 as Free Software licensed under the GNU GPL v2</li>
<li>dynamicmenu</li>
<li>googlesitemaps</li>
<li>wrap_operator</li>
<li>bhlocaltranslations</li>
<li>stats</li>
<li>xmlarea</li>
<li>ezodcsm</li>
<li>regexreplace</li>
<li>shuffle</li>
<li>icons_in_extension</li>
</ol>
<a name="eztoc37867_3_2" id="eztoc37867_3_2"></a><h3>Honorable Mention</h3>
<ol>
<li>xmlarea - Many thanks STEVO + !</li>
</ol>
<a name="eztoc37867_4" id="eztoc37867_4"></a><h2>Summary</h2><p>Conclusion</p><a name="eztoc37867_5" id="eztoc37867_5"></a><h2>External References</h2>
<ul>
<li>Forum: <a href="https://ez.no/community/forum/developer/top_10_ez_publish_extensions_in_2006" target="_self">Top 10 eZ publish extensions in 2006</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/developer/top_10_ez_publish_extensions_in_2009" target="_self">Top 10 eZ Publish Extensions in 2009</a></li>
</ul>
Sun, 16 Aug 2009 06:43:41 GMTOverriding kernel classes within an extension
https://ezpedia.org/solution/overriding_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="/pt/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="/pt/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="/pt/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>
Sat, 15 Aug 2009 11:17:11 GMTeZ ODF - Creating, Importing and Exporting ODF/PDF Documents
https://ezpedia.org/solution/ez_odf_creating_importing_and_exporting_odf_pdf_documents
https://ezpedia.org/solution/ez_odf_creating_importing_and_exporting_odf_pdf_documents<a name="eztoc374997_1" id="eztoc374997_1"></a><h2>About</h2><a name="eztoc374997_2" id="eztoc374997_2"></a><h2>Summary</h2><a name="eztoc374997_3" id="eztoc374997_3"></a><h2>References</h2>Mon, 10 Aug 2009 02:59:47 GMTThe Missing eZ publish Left Menu with Index
https://ezpedia.org/solution/the_missing_ez_publish_left_menu_with_index
https://ezpedia.org/solution/the_missing_ez_publish_left_menu_with_index<a name="eztoc523_1" id="eztoc523_1"></a><h2>About</h2><p>
from : zurgutt<br />description: Left menu with indexpage in it.</p><a name="eztoc523_2" id="eztoc523_2"></a><h2>Example</h2><p>
Here is a hack code for left menu override, which will add indexpage as first item in menu.<br />Its very strange its not there to begin with - almost all sites need it. </p> <pre class="eztemplate" style="font-family:monospace;"><div id="leftmenu">
<div id="leftmenu-design">
<h3 class="hide"><span style="color: #66cc66;">{</span><span style="color: #dd0000;">"Left menu"</span><span style="color: #66cc66;">|</span>i18n<span style="color: #66cc66;">(</span><span style="color: #dd0000;">"design/base"</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></h3>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=let&SearchContentClassID=34"><span style="color: #0600FF;">let</span></a> <span style="color: #007700;">docs</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=treemenu&SearchContentClassID=31"><span style="color: #0600FF;">treemenu</span></a><span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$module_result</span>.<span style="color: #006600;">path</span>,
<a href="https://ez.no/doc/content/advancedsearch?SearchText=is_set&SearchContentClassID=31"><span style="color: #0600FF;">is_set</span></a><span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$module_result</span>.<span style="color: #006600;">node_id</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span>choose<span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">2</span>, <span style="color: #0000bb;">$module_result</span>.<span style="color: #006600;">node_id</span> <span style="color: #66cc66;">)</span>,
<a href="https://ez.no/doc/content/advancedsearch?SearchText=ezini&SearchContentClassID=31"><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: #cc66cc;">0</span>, <span style="color: #cc66cc;">5</span> <span style="color: #66cc66;">)</span>
<span style="color: #007700;">depth</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span>
<span style="color: #007700;">last_level</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">0</span>
<span style="color: #007700;">root_node</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=fetch&SearchContentClassID=31"><span style="color: #0600FF;">fetch</span></a><span style="color: #66cc66;">(</span> content, node, <a href="https://ez.no/doc/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span> node_id, <span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #007700;">root_node_array</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=array&SearchContentClassID=31"><span style="color: #0600FF;">array</span></a><span style="color: #66cc66;">(</span> <a href="https://ez.no/doc/content/advancedsearch?SearchText=hash&SearchContentClassID=31"><span style="color: #0600FF;">hash</span></a><span style="color: #66cc66;">(</span><span style="color: #dd0000;">'id'</span>, <span style="color: #0000bb;">$root_node</span>.<span style="color: #006600;">node_id</span>,
<span style="color: #dd0000;">'level'</span>, <span style="color: #cc66cc;">0</span>,
<span style="color: #dd0000;">'url_alias'</span>, <span style="color: #0000bb;">$root_node</span>.<span style="color: #006600;">url_alias</span>,
<span style="color: #dd0000;">'url'</span>, <span style="color: #0000bb;">$root_node</span>.<span style="color: #006600;">url</span>,
<span style="color: #dd0000;">'text'</span>, <span style="color: #0000bb;">$root_node</span>.<span style="color: #006600;">name</span>,
<span style="color: #dd0000;">'is_selected'</span>, <a href="https://ez.no/doc/content/advancedsearch?SearchText=eq&SearchContentClassID=31"><span style="color: #0600FF;">eq</span></a><span style="color: #66cc66;">(</span><span style="color: #0000bb;">$module_result</span>.<span style="color: #006600;">node_id</span>, <span style="color: #0000bb;">$root_node</span>.<span style="color: #006600;">node_id</span><span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">}</span>
<ul>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=section&SearchContentClassID=23"><span style="color: #0600FF;">section</span></a> <span style="color: #007700;">var</span><span style="color: #66cc66;">=</span>menu <span style="color: #007700;">loop</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=merge&SearchContentClassID=31"><span style="color: #0600FF;">merge</span></a><span style="color: #66cc66;">(</span><span style="color: #0000bb;">$root_node_array</span>, <span style="color: #0000bb;">$:docs</span><span style="color: #66cc66;">)</span> last-value<span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=set&SearchContentClassID=34"><span style="color: #0600FF;">set</span></a> <span style="color: #007700;">last_level</span><span style="color: #66cc66;">=</span><span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">last</span><span style="color: #66cc66;">|</span>is_array<span style="color: #66cc66;">|</span>choose<span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">level</span>, <span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">last</span>.<span style="color: #006600;">level</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=section&SearchContentClassID=23"><span style="color: #0600FF;">section</span></a> <span style="color: #007700;">show</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=and&SearchContentClassID=31"><span style="color: #0600FF;">and</span></a><span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$last_level</span><span style="color: #66cc66;">|</span>eq<span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">level</span> <span style="color: #66cc66;">)</span>, <span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">number</span><span style="color: #66cc66;">|</span>gt<span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
</li>
<span style="color: #66cc66;">{</span>section-else<span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=section&SearchContentClassID=23"><span style="color: #0600FF;">section</span></a> <span style="color: #007700;">show</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=and&SearchContentClassID=31"><span style="color: #0600FF;">and</span></a><span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$last_level</span><span style="color: #66cc66;">|</span>gt<span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">level</span> <span style="color: #66cc66;">)</span>, <span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">number</span><span style="color: #66cc66;">|</span>gt<span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
</li>
<span style="color: #66cc66;">{</span><span style="color: #dd0000;">"</ul>
</li>"</span><span style="color: #66cc66;">|</span>repeat<span style="color: #66cc66;">(</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=sub&SearchContentClassID=31"><span style="color: #0600FF;">sub</span></a><span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$last_level</span>, <span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">level</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/content/advancedsearch?SearchText=section&SearchContentClassID=23"><span style="color: #0600FF;">section</span></a><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=section&SearchContentClassID=23"><span style="color: #0600FF;">section</span></a><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=section&SearchContentClassID=23"><span style="color: #0600FF;">section</span></a> <span style="color: #007700;">show</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=and&SearchContentClassID=31"><span style="color: #0600FF;">and</span></a><span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$last_level</span><span style="color: #66cc66;">|</span>lt<span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">level</span> <span style="color: #66cc66;">)</span>, <span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">number</span><span style="color: #66cc66;">|</span>gt<span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">)</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><span style="color: #dd0000;">'<ul><li>'</span><span style="color: #66cc66;">|</span>repeat<span style="color: #66cc66;">(</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=sub&SearchContentClassID=31"><span style="color: #0600FF;">sub</span></a><span style="color: #66cc66;">(</span><span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">level</span>,<span style="color: #0000bb;">$last_level</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
<ul>
<li class="menu-level-<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">level</span><span style="color: #66cc66;">}</span>">
<span style="color: #66cc66;">{</span>section-else<span style="color: #66cc66;">}</span>
<li class="menu-level-<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">level</span><span style="color: #66cc66;">}</span>">
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=section&SearchContentClassID=23"><span style="color: #0600FF;">section</span></a><span style="color: #66cc66;">}</span>
<a <span style="color: #66cc66;">{</span><span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">is_selected</span><span style="color: #66cc66;">|</span>choose<span style="color: #66cc66;">(</span> <span style="color: #dd0000;">''</span>, <span style="color: #dd0000;">'class="selected"'</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span> href=<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">url_alias</span><span style="color: #66cc66;">|</span>ezurl<span style="color: #66cc66;">}</span>><span style="color: #66cc66;">{</span><span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">text</span><span style="color: #66cc66;">|</span>shorten<span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">25</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span></a>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=set&SearchContentClassID=34"><span style="color: #0600FF;">set</span></a> <span style="color: #007700;">depth</span><span style="color: #66cc66;">=</span><span style="color: #0000bb;">$menu</span>.<span style="color: #006600;">level</span><span style="color: #66cc66;">}</span>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=section&SearchContentClassID=23"><span style="color: #0600FF;">section</span></a><span style="color: #66cc66;">}</span>
</li>
<span style="color: #66cc66;">{</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=section&SearchContentClassID=23"><span style="color: #0600FF;">section</span></a> <span style="color: #007700;">show</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=sub&SearchContentClassID=31"><span style="color: #0600FF;">sub</span></a><span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$depth</span>, <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">|</span>gt<span style="color: #66cc66;">(</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">)</span> <span style="color: #007700;">loop</span><span style="color: #66cc66;">=</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=sub&SearchContentClassID=31"><span style="color: #0600FF;">sub</span></a><span style="color: #66cc66;">(</span> <span style="color: #0000bb;">$depth</span>, <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">)</span><span style="color: #66cc66;">}</span>
</ul>
</li>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=section&SearchContentClassID=23"><span style="color: #0600FF;">section</span></a><span style="color: #66cc66;">}</span>
</ul>
<span style="color: #66cc66;">{</span><span style="color: #66cc66;">/</span><a href="https://ez.no/doc/content/advancedsearch?SearchText=let&SearchContentClassID=34"><span style="color: #0600FF;">let</span></a><span style="color: #66cc66;">}</span>
</div>
</div></pre>Sun, 09 Aug 2009 03:22:50 GMTEmbedding a poll content object within a page
https://ezpedia.org/solution/embedding_a_poll_content_object_within_a_page
https://ezpedia.org/solution/embedding_a_poll_content_object_within_a_page<a name="eztoc181781_1" id="eztoc181781_1"></a><h2>Brief</h2><p>eZ publish offers the ability to embed content objects within a template.</p><a name="eztoc181781_2" id="eztoc181781_2"></a><h2>Question</h2><p>How to ... embedded Poll in page</p><a name="eztoc181781_3" id="eztoc181781_3"></a><h2>Solution</h2><p>See related forum thread.</p><a name="eztoc181781_4" id="eztoc181781_4"></a><h2>External references</h2>
<ul>
<li>Forum: <a href="https://ez.no/community/forum/setup_design/poll_embedded_in_page" target="_self">Poll embedded in page</a> </li>
</ul>
Sun, 09 Aug 2009 03:22:07 GMTLimiting Payment Gateways by Product Content Class
https://ezpedia.org/solution/limiting_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="/pt/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;">$productPayment = $order->attribute( 'product_items' );</pre><p>Also add the variable $productPayment to template through $process->Template['templateVars']</p> <pre class="eztemplate" style="font-family:monospace;">$process->Template['templateVars'] = array(
'event' => $event, 'product_gateway_limitation' => $productPayment
);</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>
Sun, 09 Aug 2009 03:11:02 GMTHow to shrink or reduce the site of eZ Publish database backup dump files
https://ezpedia.org/solution/how_to_shrink_or_reduce_the_site_of_ez_publish_database_backup_dump_files
https://ezpedia.org/solution/how_to_shrink_or_reduce_the_site_of_ez_publish_database_backup_dump_files<a name="eztoc375981_1" id="eztoc375981_1"></a><h2>Question</h2><p>I have a small site like a blog with only a few hundred entries. My mysql database backup dump files have grown in size upwards to over 1,000 MB! How can I reduce the size or amount of data stored in the eZ Publish Database?</p><a name="eztoc375981_2" id="eztoc375981_2"></a><h2>Answers</h2><p>Sadly the size is quite common. We have seen much larger sizes in the GB of exports of active clean eZ Publish installation databases. Suggest reading up on the flatten.php an cleanup.php php cli shell scripts as these should help you reduce some database size.</p><a name="eztoc375981_3" id="eztoc375981_3"></a><h2>Suggested steps</h2><a name="eztoc375981_3_1" id="eztoc375981_3_1"></a><h3>- Empty the trash for all users</h3><a name="eztoc375981_3_2" id="eztoc375981_3_2"></a><h3>- Run flatten.php and cleanup.php scripts</h3><a name="eztoc375981_3_3" id="eztoc375981_3_3"></a><h3>- Remove session information from database</h3><p>eZ Publish will store session information in the database and you may need to enable the php configuration setting, 'session.gc_probability' to purge the expired sessions.</p><a name="eztoc375981_3_3_1" id="eztoc375981_3_3_1"></a><h4>PHP Sessions</h4><p>Confirm these values in php.ini</p> <pre class="ini" style="font-family:monospace;">session.gc_probability <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 1</span>
session.gc_divisor <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 100</span></pre><a name="eztoc375981_3_3_2" id="eztoc375981_3_3_2"></a><h4>eZ Publish Sessions</h4><p>If you dump your database and review the file size and then review the contents you would find that the ezsession table often contains large amounts of session rows.</p><a name="eztoc375981_3_3_2_1" id="eztoc375981_3_3_2_1"></a><h5>Mysql</h5><p>You can quickly truncate the ezsession table using sql thus freeing the table of records.</p> <pre class="ini" style="font-family:monospace;">mysql > truncate table ezsession<span style="color: #666666; font-style: italic;">;</span></pre><a name="eztoc375981_3_3_2_2" id="eztoc375981_3_3_2_2"></a><h5>PHP</h5><p>Or you may use the eZ Publish PHP CLI API (cleanup script) to free sessions in eZ Publish.</p> <pre class="ini" style="font-family:monospace;">php update/common/scripts/cleanup.php session<span style="color: #666666; font-style: italic;">;</span>
php update/common/scripts/cleanup.php expired_session<span style="color: #666666; font-style: italic;">;</span></pre><a name="eztoc375981_4" id="eztoc375981_4"></a><h2>Reference</h2>
<ul>
<li>Doc: <i><a href="https://ez.no/doc/ez_publish/upgrading/the_system_upgrade_scripts" title="https://ez.no/doc/ez_publish/upgrading/the_system_upgrade_scripts" target="_self">https://ez.no/doc/ez_publish/upgrading/the_system_upgrade_scripts</a></i></li>
<li>Forum: <a href="https://ez.no/developer/forum/general/huge_database#msg189613" title="Posted by: Christian Johansen: Yeah, I know. At first I was certain that my data had been corrupted, but it" target="_self">Huge database</a></li>
</ul>
Sun, 09 Aug 2009 03:10:33 GMTConverting HTML Form Post Variables into URL View Parameters
https://ezpedia.org/solution/converting_html_form_post_variables_into_url_view_parameters
https://ezpedia.org/solution/converting_html_form_post_variables_into_url_view_parameters
<div class="object-center"> <p class="version_info">This feature is available since <a href="/pt/ez/ez_publish_3_5" target="_self">eZ publish 3.5</a>.</p></div><a name="eztoc360837_1" id="eztoc360837_1"></a><h2>About</h2><p> A recommended feature within eZ Publish template language is the use of view parameters instead of ezhttp operators to access _GET or _POST variables. <a href="/pt/ez/view_parameters" target="_self">View parameters</a> are eZ Publish cache friendly while ezhttp usage is not.</p><a name="eztoc360837_1_1" id="eztoc360837_1_1"></a><h3>Example Problem</h3><p>Often a problem arises during requirements analysis and development with eZ Publish is how to submit complex combinations of view parameters as _POST variables and transform those variables into view parameters and redirecting the browser.</p><p>An example of this might be a filter bar which limits the results of a fetch with a series of html form inputs and options. </p><p>This document should provide an example of turning the html form _POST variables into view parameters.</p><a name="eztoc360837_2" id="eztoc360837_2"></a><h2>Solutions</h2><p>At the end of the day this requires either using one of the following </p>
<ul>
<li>javascript onSubmit/onClick solution (incompatible with text browsers to append parameters and redirect browser)</li>
<li>custom module view (compatible with all browsers and simple to create)</li>
<li>default '/content/action' module view in eZ Publish to provide this parameter type translation/redirection. </li>
</ul>
<a name="eztoc360837_2_2" id="eztoc360837_2_2"></a><h3>Default /content/action module view</h3><p>This module view is provided in the default kernel but has some limitations</p><a name="eztoc360837_2_2_1" id="eztoc360837_2_2_1"></a><h4>Variables</h4>
<ul>
<li>DestinationURL - This is the path to your view without starting slash. Don't use ezurl on this value as it would add a starting slash. </li>
<li>Parameter - Any input variable with the name ie, 'Example #1 In a custom template for the node uri, 'ez_publish_root_node/events'</li>
<li>Submit - This parameter is ignored and not translated. Apparently this includes multiple values with the same name.</li>
<li>All other parameters submitted within the html form elements be added with the /([name])/[value] view parameters format.</li>
</ul>
<a name="eztoc360837_2_2_2" id="eztoc360837_2_2_2"></a><h4>Example Form</h4> <pre class="eztemplate" style="font-family:monospace;"><form action=<span style="color: #66cc66;">{</span><span style="color: #dd0000;">"content/action"</span><span style="color: #66cc66;">|</span>ezurl<span style="color: #66cc66;">}</span> method="post">
<input type="hidden" name="DestinationURL" value="<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$node</span>.<span style="color: #006600;">url_alias</span><span style="color: #66cc66;">}</span>" />
<input type="text" name="(keyword)" value="" size="12" /> <br />
<input type="checkbox" name="(year)" value="1999" /> <br />
<input type="checkbox" name="(month)" value="12" /> <br />
<input type="submit" name="Submit" value="Go" />
</form></pre><a name="eztoc360837_2_2_3" id="eztoc360837_2_2_3"></a><h4>Result</h4><p>Upon submit the user will be redirected to: 'ez_publish_root_node/events/(keyword)//(year)/1999/(month)/12' if both checkboxes are checked and no text is input.</p><a name="eztoc360837_2_2_4" id="eztoc360837_2_2_4"></a><h4>Limitations and Problems</h4><p>The primary problem with the default 'content/action' module solution is certain html form input _POST values are converted inconsistently due to the generic nature of the solution provided by default.</p><p>Checkboxes are only submitted if checked, textline could be optional and on submit send empty values and cause further user page loading / redirection problems.</p><p>These problems at any level require custom php to properly detect, evaluate and set reliable url + view parameters hence the recommendation to use the <i>bcposttoview</i> custom module solution if these limitations affect you and your code.</p><a name="eztoc360837_2_3" id="eztoc360837_2_3"></a><h3>Custom module view</h3><p>You could create a custom module view within an extension activated for your user siteaccess to provide custom redirection implementation (review the file kernel/content/action.php for the default example).</p><p>At some point I hope for someone to publish at least an example of such a solution for further modification as needed by the user / developer as a starting point for avoiding null values in url parameters in redirected url (a common short coming of using the default /content/action module method).</p><a name="eztoc360837_2_3_5" id="eztoc360837_2_3_5"></a><h4>Example Solution</h4><p><i>2009.09.20</i> Brookins Consulting published the <a href="https://projects.ez.no/bcposttoview" target="_blank">bcposttoview</a> module view extension which was an example (several in fact) self contained modules and module views within the bcposttoview extension. The name mirrored off of an old deprecated module view name ezposttoview mentioned online in conjunction as an older example of this functionality but not available to the public, while our bcposttoview is freely available example in response to the for mentioned need (above).</p><a name="eztoc360837_2_4" id="eztoc360837_2_4"></a><h3>Javascript redirection</h3><p>You could use javascript to convert html form variables into view parameters. This would be better when used in conjunction with ajax content request than simply html form variables to url variable conversion to avoid the need for a custom module view for redirection.</p><p>In the end we think a module view redirection provides better browser compatibility than javascript hands down. Although a javascript solution (or ajax solution) was used on top of the module view solution that would be just fine since it provides a reliable fallback for browsers without javascript.</p><a name="eztoc360837_2_4_6" id="eztoc360837_2_4_6"></a><h4>Example Javascript Method #1 </h4> <pre class="eztemplate" style="font-family:monospace;">function defaultStaticFormToViewParameterUrlRedirect( suffixString = '' )
<span style="color: #66cc66;">{</span>
var <span style="color: #007700;">form</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'form_search'</span> + suffixString <span style="color: #66cc66;">)</span>;
var <span style="color: #007700;">action</span><span style="color: #66cc66;">=</span>form.<span style="color: #006600;">action</span>;
var <span style="color: #007700;">todaySelect</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'(today)'</span> + suffixString <span style="color: #66cc66;">)</span>;
var <span style="color: #007700;">locationSelect</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'(location)'</span> + suffixString <span style="color: #66cc66;">)</span>;
var <span style="color: #007700;">keywordSelect</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'(keyword)'</span> + suffixString <span style="color: #66cc66;">)</span>;
var <span style="color: #007700;">eventTypeSelect</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'(eventType)'</span> + suffixString <span style="color: #66cc66;">)</span>;
<a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #66cc66;">(</span>todaySelect.<span style="color: #006600;">value</span><span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">{</span>
action +<span style="color: #66cc66;">=</span> <span style="color: #dd0000;">'/(today)/'</span> + escape<span style="color: #66cc66;">(</span> todaySelect.<span style="color: #006600;">value</span> <span style="color: #66cc66;">)</span>;
<span style="color: #66cc66;">}</span>
if (locationSelect.value)
<span style="color: #66cc66;">{</span>
action +<span style="color: #66cc66;">=</span> <span style="color: #dd0000;">'/(location)/'</span> + escape<span style="color: #66cc66;">(</span> locationSelect.<span style="color: #006600;">value</span> <span style="color: #66cc66;">)</span>;
<span style="color: #66cc66;">}</span>
if (keywordSelect.value)
<span style="color: #66cc66;">{</span>
action +<span style="color: #66cc66;">=</span> <span style="color: #dd0000;">'/(keyword)/'</span> + escape<span style="color: #66cc66;">(</span> keywordSelect.<span style="color: #006600;">value</span> <span style="color: #66cc66;">)</span>;
<span style="color: #66cc66;">}</span>
if (eventTypeSelect.value)
<span style="color: #66cc66;">{</span>
action +<span style="color: #66cc66;">=</span> <span style="color: #dd0000;">'/(eventType)/'</span> + escape<span style="color: #66cc66;">(</span> eventTypeSelect.<span style="color: #006600;">value</span> <span style="color: #66cc66;">)</span>;
<span style="color: #66cc66;">}</span>
form.action=action;
}</pre><a name="eztoc360837_2_4_6_1" id="eztoc360837_2_4_6_1"></a><h5>Example Javascript Form (with fallback)</h5> <pre class="eztemplate" style="font-family:monospace;"><form action=<span style="color: #66cc66;">{</span><span style="color: #dd0000;">"content/action"</span><span style="color: #66cc66;">|</span>ezurl<span style="color: #66cc66;">}</span> method="post" onsubmit="defaultStaticFormToViewParameterUrlRedirect( '' )">
<input type="hidden" name="DestinationURL" value="<span style="color: #66cc66;">{</span><span style="color: #0000bb;">$node</span>.<span style="color: #006600;">url_alias</span><span style="color: #66cc66;">}</span>" />
<input type="text" name="(keyword)" value="" size="12" /> <br />
<input type="checkbox" name="(year)" value="1999" /> <br />
<input type="checkbox" name="(month)" value="12" /> <br />
<input type="submit" name="Submit" value="Go" />
</form></pre><a name="eztoc360837_2_4_7" id="eztoc360837_2_4_7"></a><h4>Example Javascript Method #2 </h4> <pre class="eztemplate" style="font-family:monospace;">function eventFilter( i )
<span style="color: #66cc66;">{</span>
var <span style="color: #007700;">filter</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'EventFilter'</span> <span style="color: #66cc66;">)</span>;
var <span style="color: #007700;">filter_action</span><span style="color: #66cc66;">=</span>filter.<span style="color: #006600;">action</span>;
var <span style="color: #007700;">offset</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'Offset'</span> <span style="color: #66cc66;">)</span>;
var <span style="color: #007700;">date</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'Date'</span> <span style="color: #66cc66;">)</span>;
var <span style="color: #007700;">city</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'City'</span> <span style="color: #66cc66;">)</span>;
var <span style="color: #007700;">state</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'State'</span> <span style="color: #66cc66;">)</span>;
var <span style="color: #007700;">country</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'Country'</span> <span style="color: #66cc66;">)</span>;
var <span style="color: #007700;">production</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'Production'</span> <span style="color: #66cc66;">)</span>;
var <span style="color: #007700;">coordinator</span><span style="color: #66cc66;">=</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">(</span> <span style="color: #dd0000;">'Coordinator'</span> <span style="color: #66cc66;">)</span>;
<a href="https://ez.no/doc/content/advancedsearch?SearchText=if&SearchContentClassID=23"><span style="color: #0600FF;">if</span></a> <span style="color: #66cc66;">(</span> offset.<span style="color: #006600;">value</span> !<span style="color: #66cc66;">=</span> <span style="color: #dd0000;">'0'</span> <span style="color: #66cc66;">)</span>
<span style="color: #66cc66;">{</span>
filter_action +<span style="color: #66cc66;">=</span> <span style="color: #dd0000;">'/(offset)/'</span> + escape<span style="color: #66cc66;">(</span> offset.<span style="color: #006600;">value</span> <span style="color: #66cc66;">)</span>;
<span style="color: #66cc66;">}</span>
if ( date.value != 'all' )
<span style="color: #66cc66;">{</span>
filter_action +<span style="color: #66cc66;">=</span> <span style="color: #dd0000;">'/(date)/'</span> + escape<span style="color: #66cc66;">(</span> date.<span style="color: #006600;">value</span> <span style="color: #66cc66;">)</span>;
<span style="color: #66cc66;">}</span>
if ( city.value != 'all' )
<span style="color: #66cc66;">{</span>
filter_action +<span style="color: #66cc66;">=</span> <span style="color: #dd0000;">'/(city)/'</span> + escape<span style="color: #66cc66;">(</span> city.<span style="color: #006600;">value</span> <span style="color: #66cc66;">)</span>;
<span style="color: #66cc66;">}</span>
if ( state.value != 'all' )
<span style="color: #66cc66;">{</span>
filter_action +<span style="color: #66cc66;">=</span> <span style="color: #dd0000;">'/(state)/'</span> + escape<span style="color: #66cc66;">(</span> state.<span style="color: #006600;">value</span> <span style="color: #66cc66;">)</span>;
<span style="color: #66cc66;">}</span>
if ( country.value != 'all' )
<span style="color: #66cc66;">{</span>
filter_action +<span style="color: #66cc66;">=</span> <span style="color: #dd0000;">'/(country)/'</span> + escape<span style="color: #66cc66;">(</span> country.<span style="color: #006600;">value</span> <span style="color: #66cc66;">)</span>;
<span style="color: #66cc66;">}</span>
if ( production.value != 'all' )
<span style="color: #66cc66;">{</span>
filter_action +<span style="color: #66cc66;">=</span> <span style="color: #dd0000;">'/(production)/'</span> + escape<span style="color: #66cc66;">(</span> production.<span style="color: #006600;">value</span> <span style="color: #66cc66;">)</span>;
<span style="color: #66cc66;">}</span>
if ( coordinator.value != 'all' )
<span style="color: #66cc66;">{</span>
filter_action +<span style="color: #66cc66;">=</span> <span style="color: #dd0000;">'/(coordinator)/'</span> + escape<span style="color: #66cc66;">(</span> coordinator.<span style="color: #006600;">value</span> <span style="color: #66cc66;">)</span>;
<span style="color: #66cc66;">}</span>
filter.action=filter_action;
}
</pre><a name="eztoc360837_3" id="eztoc360837_3"></a><h2>Reference</h2>
<ul>
<li>Custom module view Example Solution: <a href="https://projects.ez.no/bcposttoview" target="_blank">bcposttoview</a></li>
<li>Custom design template Example Solution <a href="https://projects.ez.no/bceventfilter" target="_blank">bceventfilter</a> (Filter Bar and Results Display Examples)</li>
<li>Old Doc (Read comments), <a href="https://ez.no/ezpublish/documentation/incoming/http_post_to_url_conversion" target="_self">HTTP Post to URL conversion</a></li>
<li>Doc: Module <a href="https://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/modules_and_views#view_parameters" target="_self">View Parameters</a></li>
<li>Doc: Basic template tasks, <a href="https://ez.no/doc/ez_publish/technical_manual/4_0/templates/basic_template_tasks#eztoc86760_4" target="_self">Custom view parameters</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/setup_design/filter_content_passing_values_from_url" target="_blank">Filter content passing values from URL</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/setup_design/content_filtering" target="_blank">Content Filtering</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/developer/best_way_to_multi_filter" target="_blank">Best way to multi filter</a></li>
<li>Search: <a href="https://www.google.com/search?q=ezposttoview" target="_blank">Older mentions of an ezsystems module view called 'ezposttoview'</a> which provided a custom module view solution for a time on ez.no which has since been deprecated (and further more was never publicly released)</li>
</ul>
Sun, 09 Aug 2009 03:10:18 GMTImport existing content object url aliases into eZ using the eZUrlAlias API
https://ezpedia.org/solution/import_existing_content_object_url_aliases_into_ez_using_the_ezurlalias_api
https://ezpedia.org/solution/import_existing_content_object_url_aliases_into_ez_using_the_ezurlalias_api<a name="eztoc216111_1" id="eztoc216111_1"></a><h2>Question</h2><p>How to create though data import (content migration) a complex maping of internal url aliases into eZ Publish for compatibility internal with existing urls</p><a name="eztoc216111_2" id="eztoc216111_2"></a><h2>Reference</h2>
<ul>
<li>Forum: <a href="https://ez.no/developer/forum/developer/solved_migration_to_ezp_url_migration_problem#msg152133" title="Posted by: Andrey Astakhov: Solution: <code> $systemUrlAlias = ezUrlAlias::fetchBySourceURL( " target="_self">Migration to eZ Publish : A url migration solution</a> </li>
</ul>
Sun, 09 Aug 2009 03:07:30 GMTChecking out all projects.ez.no subversion repositories
https://ezpedia.org/solution/checking_out_all_projects_ez_no_subversion_repositories
https://ezpedia.org/solution/checking_out_all_projects_ez_no_subversion_repositories<a name="eztoc210631_1" id="eztoc210631_1"></a><h2>Problem</h2><p>
There is a lot of individual projects svn repositories! <br />
How to get your head around so many projects.<br />This is how you can check them all out quickly ...</p><a name="eztoc210631_2" id="eztoc210631_2"></a><h2>Resources</h2>
<ul>
<li>Project Repositories: List of svn repository url locations within in csv file, <a href="https://projects.ez.no/repositories.csv" target="_self">repositories.csv</a>
<ul>
<li>Warning: <i>"...there are DOS EOL markers XD in that .csv file XD"</i> </li>
</ul>
</li>
</ul>
<a name="eztoc210631_3" id="eztoc210631_3"></a><h2>Solutions</h2><a name="eztoc210631_3_1" id="eztoc210631_3_1"></a><h3>Checking out with shell commands</h3> <pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">-O</span> - <span style="color: #ff0000;">'https://projects.ez.no/repositories.csv'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tr</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">'\015'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-i</span> <span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> <span style="color: #7a0874; font-weight: bold;">{</span><span style="color: #7a0874; font-weight: bold;">}</span></pre><a name="eztoc210631_3_2" id="eztoc210631_3_2"></a><h3>Checking out with php commands</h3> <pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;"><</span>?php
<span style="color: #007800;">$handle</span> = fopen<span style="color: #7a0874; font-weight: bold;">(</span> <span style="color: #ff0000;">"https://projects.ez.no/repositories.csv"</span>, <span style="color: #ff0000;">"r"</span> <span style="color: #7a0874; font-weight: bold;">)</span>;
<span style="color: #007800;">$row</span> = <span style="color: #000000;">1</span>;
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">(</span> <span style="color: #7a0874; font-weight: bold;">(</span> <span style="color: #007800;">$data</span> = fgetcsv<span style="color: #7a0874; font-weight: bold;">(</span> <span style="color: #007800;">$handle</span>, <span style="color: #000000;">1000</span>, <span style="color: #ff0000;">","</span> <span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #000000; font-weight: bold;">!</span>== FALSE<span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #7a0874; font-weight: bold;">{</span>
<span style="color: #007800;">$num</span> = count<span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #007800;">$data</span><span style="color: #7a0874; font-weight: bold;">)</span>;
<span style="color: #000000; font-weight: bold;">//</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">"** <p> <span style="color: #007800;">$num</span> fields in line <span style="color: #007800;">$row</span>: <br /></p><span style="color: #000099; font-weight: bold;">\n</span>"</span>;
<span style="color: #007800;">$row</span>++;
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #007800;">$c</span>=<span style="color: #000000;">0</span>; <span style="color: #007800;">$c</span> <span style="color: #000000; font-weight: bold;"><</span> <span style="color: #007800;">$num</span>; <span style="color: #007800;">$c</span>++<span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #7a0874; font-weight: bold;">{</span>
<span style="color: #007800;">$line</span> = <span style="color: #007800;">$data</span><span style="color: #7a0874; font-weight: bold;">[</span><span style="color: #007800;">$c</span><span style="color: #7a0874; font-weight: bold;">]</span>;
<span style="color: #007800;">$repo</span> = escapeshellcmd<span style="color: #7a0874; font-weight: bold;">(</span> <span style="color: #007800;">$line</span> <span style="color: #7a0874; font-weight: bold;">)</span>;
<span style="color: #007800;">$name</span> = <span style="color: #c20cb9; font-weight: bold;">split</span><span style="color: #7a0874; font-weight: bold;">(</span> <span style="color: #ff0000;">"/"</span>, <span style="color: #007800;">$repo</span> <span style="color: #7a0874; font-weight: bold;">)</span>;
<span style="color: #007800;">$name</span> = <span style="color: #007800;">$name</span><span style="color: #7a0874; font-weight: bold;">[</span><span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">]</span>;
<span style="color: #000000; font-weight: bold;">//</span> print_r<span style="color: #7a0874; font-weight: bold;">(</span> <span style="color: #007800;">$name</span> <span style="color: #7a0874; font-weight: bold;">)</span>;
<span style="color: #000000; font-weight: bold;">//</span> Example: http:<span style="color: #000000; font-weight: bold;">//</span>svn.projects.ez.no<span style="color: #000000; font-weight: bold;">/</span>bcwebsitestatistics
<span style="color: #007800;">$last_line</span> = system<span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #ff0000;">"svn co <span style="color: #007800;">$repo</span>"</span>, <span style="color: #007800;">$retval</span> <span style="color: #7a0874; font-weight: bold;">)</span>;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">"Repository Name: "</span>. <span style="color: #007800;">$name</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">"Repository URL: "</span>. <span style="color: #007800;">$repo</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">"Checkout Last Line: "</span>. <span style="color: #007800;">$last_line</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #7a0874; font-weight: bold;">(</span> <span style="color: #007800;">$retval</span> == <span style="color: #ff0000;">"0"</span> <span style="color: #7a0874; font-weight: bold;">)</span>
<span style="color: #7a0874; font-weight: bold;">{</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">"Checkout: "</span>. <span style="color: #ff0000;">"Success"</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
<span style="color: #7a0874; font-weight: bold;">}</span>
<span style="color: #000000; font-weight: bold;">else</span> <span style="color: #7a0874; font-weight: bold;">{</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">"Checkout: "</span>. <span style="color: #ff0000;">"Failure"</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
<span style="color: #7a0874; font-weight: bold;">}</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>"</span>;
<span style="color: #000000; font-weight: bold;">//</span> DEBUG: Print additional information
<span style="color: #000000; font-weight: bold;">/*</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'
</pre>
<hr />Last line of the output: '</span> . <span style="color: #007800;">$last_line</span> . <span style="color: #ff0000;">'
<hr />Return value: '</span> . <span style="color: #007800;">$retval</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>"</span>;
<span style="color: #000000; font-weight: bold;">*/</span>
<span style="color: #7a0874; font-weight: bold;">}</span>
<span style="color: #7a0874; font-weight: bold;">}</span>
fclose<span style="color: #7a0874; font-weight: bold;">(</span> <span style="color: #007800;">$handle</span> <span style="color: #7a0874; font-weight: bold;">)</span>;
?<span style="color: #000000; font-weight: bold;">></span></pre>Sun, 09 Aug 2009 03:06:46 GMTTemplate Development Without Clearing Cache
https://ezpedia.org/solution/template_development_without_clearing_cache
https://ezpedia.org/solution/template_development_without_clearing_cache<p>You can do template development without having to constantly clear cache! This page is perhaps one of the most important to the largest number of users in the community.</p><a name="eztoc205142_1" id="eztoc205142_1"></a><h2>Global Example</h2><p>Simply add these settings to the following file and clear cache (one last time)</p><p>The following example works great with both eZ Publish 3.9 and even better (solution for the best template debug information) with 4.0.</p><p>Example File: <i>setting/override/site.ini.append.php</i> </p> <pre class="eztemplate" style="font-family:monospace;">[ContentSettings]
ViewCaching=disabled
[TemplateSettings]
TemplateCache=disabled
TemplateCompile=disabled
DevelopmentMode=enabled
CacheThreshold=0
ShowUsedTemplates=enabled
# TemplateOptimization=enabled
# Debug=enabled</pre><a name="eztoc205142_2" id="eztoc205142_2"></a><h2>References</h2>
<ul>
<li>None</li>
</ul>
Sun, 09 Aug 2009 03:05:57 GMTx86-64 etc, php, ez documentation
https://ezpedia.org/solution/x86_64_etc_php_ez_documentation
https://ezpedia.org/solution/x86_64_etc_php_ez_documentation<a name="eztoc168144_1" id="eztoc168144_1"></a><h2>Nesting : A potential issue</h2><a name="eztoc168144_1_1" id="eztoc168144_1_1"></a><h3>Error</h3><p>
<b>Fatal error</b>: Maximum function nesting level of '64' reached, aborting! in <b>/var/www/vhosts/ez/lib/eztemplate/classes/eztemplatecompiler.php</b> on line <b>1330</b> <br />
<b>Fatal error</b>: Maximum function nesting level of '64' reached, aborting! in <b>Unknown</b> on line <b>0</b> <br />
<b>Fatal error</b>: Maximum function nesting level of '64' reached, aborting! in <b>Unknown</b> on line <b>0</b> <br /><b>Fatal error</b>: Maximum function nesting level of '64' reached, aborting! in <b>Unknown</b> on line <b>0</b> </p><a name="eztoc168144_1_2" id="eztoc168144_1_2"></a><h3>Addressed</h3><p>As a 64 bit error, https://issues.ez.no/3609</p><p>Forum: https://ez.no/community/forum/install_configuration/install_problem_with_3_4_php_error_due_to_function_nesting</p><a name="eztoc168144_2" id="eztoc168144_2"></a><h2><b>Solution:</b></h2><p>It's a good idea to disable or remove xdebug from your production server until you are certain you must enable it to solve a specific problem.</p><p>xdebug.max_nesting_level = 100</p>Sun, 09 Aug 2009 03:04:06 GMTDisable language selection prompt
https://ezpedia.org/solution/disable_language_selection_prompt
https://ezpedia.org/solution/disable_language_selection_prompt<p>You can simply disable the language selection dialog by providing a default or custom setting.</p><a name="eztoc157362_1" id="eztoc157362_1"></a><h2>External reference</h2>
<ul>
<li><a href="https://ez.no/community/forum/developer/skip_language_selection_while_creating_objects_from_frontend" target="_self">skip language selection whi...</a></li>
</ul>
Sun, 09 Aug 2009 03:03:37 GMTOnline Editor copy and paste privilige settings in Mozilla based browsers
https://ezpedia.org/solution/online_editor_copy_and_paste_privilige_settings_in_mozilla_based_browsers
https://ezpedia.org/solution/online_editor_copy_and_paste_privilige_settings_in_mozilla_based_browsers<a name="eztoc153021_1" id="eztoc153021_1"></a><h2>Introduction</h2><p>Mozilla and Firefox displays an error using the Online Editor without additional browser profile settings.</p><p>This is a common occurance for most casual users. Many don't quite understand this behavior. We hope this article provides for a clear explanation.</p><a name="eztoc153021_1_1" id="eztoc153021_1_1"></a><h3>Error</h3><p>"Quote"</p><a name="eztoc153021_1_2" id="eztoc153021_1_2"></a><h3>Reasoning</h3><p>Client side scripts should be required to ask first for permissions. This is a good solution.</p><a name="eztoc153021_2" id="eztoc153021_2"></a><h2>Solution</h2><p>Add the settings ...</p><a name="eztoc153021_3" id="eztoc153021_3"></a><h2>External reference</h2>
<ul>
<li>Issue: <a href="https://issues.ez.no/IssueView.php?Id=7131&activeItem=5" target="_self">7131</a></li>
<li>Forum: N/A</li>
</ul>
Sun, 09 Aug 2009 03:03:21 GMTInserting inline client script into content using a custom tag
https://ezpedia.org/solution/inserting_inline_client_script_into_content_using_a_custom_tag
https://ezpedia.org/solution/inserting_inline_client_script_into_content_using_a_custom_tag
<div class="object-center"> <p class="editor_motivation">This is a <a href="/pt/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc151204_1" id="eztoc151204_1"></a><h2>Summary</h2>
<ul>
<li>On: Monday 12 March 2007 6:58:37 pm</li>
<li>From: Diego Barcia</li>
</ul>
<a name="eztoc151204_2" id="eztoc151204_2"></a><h2>Instructions</h2><p>For a site, I needed to insert JavaScript statements to be parsed and not displayed by the browser, on a page-by-page basis. So I configured a <script> custom tag of an inline type into the content.ini file of the admin and the public siteacceses:</p> <pre class="ini" style="font-family:monospace;">AvailableCustomTags<span style="">[</span><span style="">]</span><span style="color: #000066; font-weight:bold;">=</span>script
IsInline<span style="color: #000066; font-weight:bold;"><span style="">[</span>script<span style="">]</span></span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">true</span></pre><p>Then, I created a template file in the \templates\content\datatype\view\ezxmltags\ directory (of the site's design), called script.tpl, with this code:</p> <pre class="ini" style="font-family:monospace;"><script type<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">"text/javascript"</span> <span style="color: #000099;">language</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">"javascript"</span>><span style="">{</span>$content<span style="">}</span></script></pre><p>
This worked fine. There is no need to wrap the $content variable within {literal} operators; there won't be any trouble using JavaScript curly braces ('{', '}').<br />The custom tag *must* be of an inline type, or else a parse error will be triggered by the engine, because block tags are printed between <p> tags, so the result would be like:</p> <pre class="ini" style="font-family:monospace;"><p><span style="">{</span>JavaScript code<span style="">}</span></p>.</pre>Sun, 09 Aug 2009 03:02:53 GMTBuilding an automated eZ publish demo
https://ezpedia.org/solution/building_an_automated_ez_publish_demo
https://ezpedia.org/solution/building_an_automated_ez_publish_demo<a name="eztoc139883_0_1" id="eztoc139883_0_1"></a><h3>Tools</h3>
<ul>
<li>eZ publish</li>
<li>MySQL</li>
<li>Subversion</li>
<li>Cron</li>
</ul>
<a name="eztoc139883_1" id="eztoc139883_1"></a><h2>Setup</h2>
<ul>
<li>Install and configure stock eZ </li>
<li>Write script to drop demo db, load a stock db and optionally update demo code from svn.</li>
<li>Configure cron to run script</li>
</ul>
<a name="eztoc139883_2" id="eztoc139883_2"></a><h2>External reference</h2>
<ul>
<li>Tools: <a href="https://zev.ez.no/svn/dev_tools" target="_blank">https://zev.ez.no/svn/dev_tools</a></li>
</ul>
Sun, 09 Aug 2009 03:01:55 GMTContent object published, modified and created date modification
https://ezpedia.org/solution/content_object_published_modified_and_created_date_modification
https://ezpedia.org/solution/content_object_published_modified_and_created_date_modification
<div class="object-center"> <p class="editor_motivation">This is a <a href="/pt/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc38665_1" id="eztoc38665_1"></a><h2>Problem</h2><p>Many people want to manualy specifiy the date's visible to users and or simply set a specific publish date in the future or edit the publish date after it has been published alredy.</p><a name="eztoc38665_2" id="eztoc38665_2"></a><h2>Solutions</h2><p>I think there are a few solutions which may be implemented in order of complexity.</p>
<ul>
<li>Script: PHP or SQL Update script - Alter object date of a node(s) manually.</li>
<li>Admin: Manually edit content object dates to any date.</li>
</ul>
<a name="eztoc38665_3" id="eztoc38665_3"></a><h2>External references</h2>
<ul>
<li>N/A</li>
</ul>
Sun, 09 Aug 2009 02:51:01 GMTCreating eZ publish Doxygen API Documentation
https://ezpedia.org/solution/creating_ez_publish_doxygen_api_documentation
https://ezpedia.org/solution/creating_ez_publish_doxygen_api_documentation
<div class="object-center"> <p class="editor_motivation">This is a <a href="/pt/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc37671_1" id="eztoc37671_1"></a><h2>Introduction</h2><p>There is a vast amount of documentation available regarding the source code of eZ publish within the php source code comments.</p><p>This source code documentation must be generated into a format like html pages to be useful to developers.</p><p>The PubSVN server hosts several generated copies of this <a href="https://pubsvn.ez.no/doxygen/index.html" target="_self">documentation</a> one for each major version of eZ publish. These hosted copies of the documentation are useful for online reading.</p><p>If your interested in generating your own copy this documentation follow the following steps.</p><a name="eztoc37671_2" id="eztoc37671_2"></a><h2>Steps</h2>
<ol>
<li>Download the latest stable release of <a href="https://www.stack.nl/%7Edimitri/doxygen/download.html#latestsrc" target="_self">Doxygen</a> </li>
<li>Download the latest stable release of <a href="https://ez.no/download" target="_self">eZ publish</a> </li>
<li>Install Doxygen</li>
<li>Run Doxygen on eZ publish</li>
<li>Review the generated HTML API documentation</li>
</ol>
<a name="eztoc37671_3" id="eztoc37671_3"></a><h2>Using shell</h2><a name="eztoc37671_3_1" id="eztoc37671_3_1"></a><h3>Install</h3><p>Download the latest source distribution, doxygen-1.5.1.src.tar.gz (2.8M) ( <a href="ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.5.1.src.tar.gz" target="_self">ftp</a> | <a href="https://ftp.stack.nl/pub/users/dimitri/doxygen-1.5.1.src.tar.gz" target="_self">http</a> )</p><p># wget https://ftp.stack.nl/pub/users/dimitri/doxygen-1.5.1.src.tar.gz</p><a name="eztoc37671_3_1_1" id="eztoc37671_3_1_1"></a><h4>Unpack package</h4><p># tar -zxf doxygen-1.5.1.src.tar.gz;</p><a name="eztoc37671_3_1_2" id="eztoc37671_3_1_2"></a><h4>Configure package</h4><p>
# cd doxygen-1.5.1;<br /># ./configure --help;</p><p># sudo apt-get install qt3-linguist qt3-dev-tools-embedded qt3-dev-tools-compat qt3-dev-tools qt3-apps-dev libqt3-mt-dev libqt3-headers libqt3-compat-headers;</p><p>
# mkdir /usr/local/doxygen;<br /># ./configure --prefix /usr/local/doxygen --english-only;</p><a name="eztoc37671_3_1_3" id="eztoc37671_3_1_3"></a><h4>Make and Install package</h4><p>
# make;<br /># make install;</p><a name="eztoc37671_3_2" id="eztoc37671_3_2"></a><h3>Generate Documentation</h3><p># /usr/local/doxygen/bin/doxygen --help</p> <pre class="ini" style="font-family:monospace;">Doxygen version 1.5.1
Copyright Dimitri van Heesch <span style="">1997</span>-<span style="">2006</span>
You can use doxygen in a number of ways:
<span style="">1</span><span style="">)</span> Use doxygen to generate a template configuration file:
/usr/local/doxygen/bin/doxygen <span style="color: #000066; font-weight:bold;"><span style="">[</span>-s<span style="">]</span> -g <span style="">[</span>configName<span style="">]</span></span>
If - is used for configName doxygen will write to standard output.
<span style="">2</span><span style="">)</span> Use doxygen to update an old configuration file:
/usr/local/doxygen/bin/doxygen <span style="color: #000066; font-weight:bold;"><span style="">[</span>-s<span style="">]</span> -u <span style="">[</span>configName<span style="">]</span></span>
<span style="">3</span><span style="">)</span> Use doxygen to generate documentation using an existing configuration file:
/usr/local/doxygen/bin/doxygen <span style="color: #000066; font-weight:bold;"><span style="">[</span>configName<span style="">]</span></span>
If - is used for configName doxygen will read from standard input.
<span style="">4</span><span style="">)</span> Use doxygen to generate a template style sheet file for RTF, HTML or Latex.
RTF: /usr/local/doxygen/bin/doxygen -w rtf styleSheetFile
HTML: /usr/local/doxygen/bin/doxygen -w html headerFile footerFile styleSheetFile <span style="color: #000066; font-weight:bold;"><span style="">[</span>configFile<span style="">]</span></span>
LaTeX: /usr/local/doxygen/bin/doxygen -w latex headerFile styleSheetFile <span style="color: #000066; font-weight:bold;"><span style="">[</span>configFile<span style="">]</span></span>
<span style="">5</span><span style="">)</span> Use doxygen to generate an rtf extensions file
RTF: /usr/local/doxygen/bin/doxygen -e rtf extensionsFile
If -s is specified the comments in the config file will be omitted.
If configName is omitted `Doxyfile' will be used as a default.</pre><p># cd /web/ez/ezpublish-3.8.4/doc/</p><p>
# svn export https://pubsvn.ez.no/nextgen/trunk/tests<br /># svn export https://pubsvn.ez.no/nextgen/trunk/benchmarks</p><p># /usr/local/doxygen/bin/doxygen /web/ez/ezpublish-3.8.4/doc/doxygen/Doxyfile</p><a name="eztoc37671_3_2_4" id="eztoc37671_3_2_4"></a><h4>Results</h4><p>You can view an example log the <a href="https://download.ezcommunity.net/example.doxygen.ezpublish.generation.log" target="_self">result</a> of running the doxygen documentation generation command.</p><a name="eztoc37671_3_2_5" id="eztoc37671_3_2_5"></a><h4>Review Documentation</h4><p>The resulting documentation will have been generated and stored on disk in the 'doc/generated/html/' directory.</p><a name="eztoc37671_3_2_6" id="eztoc37671_3_2_6"></a><h4>Extending Doxygen Configuration</h4><p>The default doxygen configuration file distributed with eZ publish has been pointed out to not take advantage of a few useful configuration features available. This is because the documentation can be viewed using a URL like "https://example.org/reference/view/ez" through the eZ interface. Having extra HTML and JavaScript would break this view. However, you can create a standalone version of the documentation by changing the settings below.</p><p><b>Note</b>, "If the GENERATE_TREEVIEW tag is set to YES, a side panel will be generated containing a tree-like index structure...."</p><p>This option used by PubSVN's hosted copy of the generated doxygen documentation generated from eZ publish trunk. I belive by default this option is not enabled!</p><p>Removing the references to "doc/doxygen/empty.html" in the Doxyfile on lines 608 and 614 causes the Doxygen standard theme to be used (as seen on PubSVN).</p><a name="eztoc37671_4" id="eztoc37671_4"></a><h2>Using GUI</h2><a name="eztoc37671_4_3" id="eztoc37671_4_3"></a><h3>Install</h3><p>Download the latest MacOS or Windows package.</p><p>Doxygen-1.5.1.dmg (16.5M) ( <a href="ftp://ftp.stack.nl/pub/users/dimitri/Doxygen-1.5.1.dmg" target="_self">ftp</a> | <a href="ftp://ftp.stack.nl/pub/users/dimitri/Doxygen-1.5.1.dmg" target="_self">http</a> )</p><p>doxygen-1.5.1-p1-setup.exe (5.3M) ( <a href="ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.5.1-p1-setup.exe" target="_self">ftp</a> | <a href="https://ftp.stack.nl/pub/users/dimitri/doxygen-1.5.1-p1-setup.exe" target="_self">http</a> )</p><a name="eztoc37671_4_4" id="eztoc37671_4_4"></a><h3>Generate Documentation</h3><p>Here is the basic use of the gui documentation wizard named <i>doxywizard</i>. If you want to use a previously defined doxygen configuration file Doxyfile, pass it as an argument to the wizard or use the "Load" button in the main window.</p><p>(Screenshots to be provided when image upload will be available)</p><p>Click on the Wizard button, a new dialog box appears.</p>
<ul>
<li>Give a name and a version to your project (eg. Ezpdoc and 1.0 respectively)</li>
<li>Give the directory name where ezpublish is installed (eg. /var/www/html/Ezpublish)</li>
<li>Check the "Scan recursively" box</li>
<li>Give the name of an existing destination directory (eg. /home/me/Ezpublish/Doxygen)</li>
</ul>
<p>Click on the "Mode" tab</p>
<ul>
<li>Check the "Documented entities only"</li>
<li>Check one of the "Optimize" that fits to your purpose</li>
</ul>
<p>Click on the "Output" Tab</p>
<ul>
<li>Check "HTML" and "with frame and a navigation tree"</li>
<li>Check "Include cross-referenced..."</li>
<li>uncheck all the others unless you need it</li>
</ul>
<p>Click on the 3Diagrams" tab</p>
<ul>
<li>Check the "Use buit-in class diagram generator"</li>
</ul>
<p>Click the OK button of the Wizard dialog box</p><p>Click the Save button of doxywizard main screen and save it as Doxyfile in the destination directory previously entered</p><p>The final step is to click on the Start button and here you are !</p><a name="eztoc37671_4_4_7" id="eztoc37671_4_4_7"></a><h4>Review Documentation </h4><p>The resulting documentation will have been generated and stored on disk in the 'doc/generated/html/' directory.</p><a name="eztoc37671_5" id="eztoc37671_5"></a><h2>Summary</h2><p>This process can be automated to generate eZ publish documentation on a regular basis via cron.</p><a name="eztoc37671_6" id="eztoc37671_6"></a><h2>External Reference</h2>
<ul>
<li>Download <a href="https://www.stack.nl/%7Edimitri/doxygen/download.html#latestsrc" target="_self">Doxygen Software</a> </li>
<li>Download <a href="https://ez.no/download" target="_self">eZ publish</a> </li>
<li>PubSVN eZ publish Trunk (Doxygen, API/Source Code) <a href="https://pubsvn.ez.no/doxygen/index.html" target="_self">Documentation</a> </li>
<li>Crontab example</li>
<li>Doxygen <a href="https://www.stack.nl/%7Edimitri/doxygen/manual.html" target="_self">Manual</a> </li>
</ul>
Sun, 09 Aug 2009 02:50:44 GMTManipulating eZXML Document Contents
https://ezpedia.org/solution/manipulating_ezxml_document_contents
https://ezpedia.org/solution/manipulating_ezxml_document_contents
<div class="object-center"> <p class="editor_motivation">This is a <a href="/pt/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc37649_1" id="eztoc37649_1"></a><h2>Problem - Example #1</h2><p>I need to modify the contents of the eZXML document stored in the ezorder.data_text_1 (variable/field).</p><p>I need to append three sibling items to the last in the 'shop_account' structure.</p><a name="eztoc37649_2" id="eztoc37649_2"></a><h2>The document</h2><p>The eZXML document contains the following example structure.</p> <pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><shop_account<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><first-name<span style="color: #000000; font-weight: bold;">></span></span></span>Null<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></first-name<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><mi<span style="color: #000000; font-weight: bold;">></span></span><span style="color: #000000; font-weight: bold;"></mi<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><last-name<span style="color: #000000; font-weight: bold;">></span></span></span>Man<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></last-name<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><address1<span style="color: #000000; font-weight: bold;">></span></span></span>7x Campus<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></address1<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><address2<span style="color: #000000; font-weight: bold;">></span></span></span>Suite 250<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></address2<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><city<span style="color: #000000; font-weight: bold;">></span></span></span>Anchorage<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></city<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><zip<span style="color: #000000; font-weight: bold;">></span></span></span>99507<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></zip<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><state<span style="color: #000000; font-weight: bold;">></span></span></span>AK<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></state<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><phone<span style="color: #000000; font-weight: bold;">></span></span></span>907-555-1212<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></phone<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><email<span style="color: #000000; font-weight: bold;">></span></span></span>[email protected]<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></email<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><shipping<span style="color: #000000; font-weight: bold;">></span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></shipping<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><shippingtype<span style="color: #000000; font-weight: bold;">></span></span></span>0<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></shippingtype<span style="color: #000000; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></shop_account<span style="color: #000000; font-weight: bold;">></span></span></span></pre><p>I could not find a way to modify an existing document simply this using any existing eZ code or API. I was pointed by a friend to use 'domxml' as an alternative to provide the features should need to modify an existing document without having to write code to regenerate it myself (which I did not really want to do, or think I should have too).</p><a name="eztoc37649_3" id="eztoc37649_3"></a><h2>The code</h2><p>The following is an example of the code used in this example solution</p> <pre class="xml" style="font-family:monospace;">/* umm ... */</pre><a name="eztoc37649_4" id="eztoc37649_4"></a><h2>The summary</h2><p>There are a number of solutions to this problem. This is simply one example for the next person trying to use, manipulate information stored (trapped) in ezxml / xml inside the eZ publish database content.</p>Sun, 09 Aug 2009 02:50:32 GMTRemove all shop orders
https://ezpedia.org/solution/remove_all_shop_orders
https://ezpedia.org/solution/remove_all_shop_orders
<div class="object-center"> <p class="editor_motivation">This is a <a href="/pt/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc36985_1" id="eztoc36985_1"></a><h2>Question</h2><p>How can I remove all shop orders?</p><a name="eztoc36985_2" id="eztoc36985_2"></a><h2>Solution</h2><p>Use the 'shop' argument of the ' <i>cleanup.php</i>' php-cli / eZ script to remove all shop orders (among other information).</p> <pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>php4.4.4<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php update<span style="color: #000000; font-weight: bold;">/</span>common<span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>cleanup.php <span style="color: #660033;">-s</span> shop <span style="color: #660033;">-d</span> <span style="color: #660033;">-c</span> <span style="color: #660033;">--logfiles</span> <span style="color: #660033;">-v</span> <span style="color: #660033;">--db-user</span>=db <span style="color: #660033;">--db-password</span>=db <span style="color: #660033;">--db-database</span>=shop_dev_390 <span style="color: #660033;">--sql</span> shop
</pre><a name="eztoc36985_3" id="eztoc36985_3"></a><h2>External reference</h2>
<ul>
<li>Documentation: <a href="https://ez.no/doc/ez_publish/upgrading/the_system_upgrade_scripts" target="_self">eZ scripts</a> </li>
</ul>
Sun, 09 Aug 2009 02:50:20 GMTHow to clean all the old objects versions
https://ezpedia.org/solution/how_to_clean_all_the_old_objects_versions
https://ezpedia.org/solution/how_to_clean_all_the_old_objects_versions<a name="eztoc17267_1" id="eztoc17267_1"></a><h2>Question</h2><p>My web site has more than 6000 objects and some of objects in the content subtree have more than 20 versions! The size of the database increase dramaticly! I'd like to know, if there's a script to delete all the old objects versions included image files.</p><a name="eztoc17267_2" id="eztoc17267_2"></a><h2>Solution</h2><p>My first suggestion would be to checkout the ' <i>flatten.php</i>' script (requires php-cli to run) ' <i>bin/php/flatten.php</i>'.</p><p>If you do not have php-cli enabled in your php installation you can get it very quickly by building from <a href="/pt/solution/building_php_cli_for_ez_publish_command_line_scripts" target="_self">source</a> or using <a href="/pt/solution/building_php_cli_php_4_4_4_for_ez_publish" target="_self">existing</a> binaries.</p><p>This solution, the combination of php-cli and the flatten.php script should meet your needs. Any other suggestions from the community on this topic?</p><a name="eztoc17267_3" id="eztoc17267_3"></a><h2>References</h2><p>From ez.no forums, <a href="https://ez.no/community/forum/developer/how_to_clean_all_the_old_objects_versions" target="_self">How to clean all the old objects versions</a> </p>Sun, 09 Aug 2009 02:48:26 GMTConvert database from iso-8859-1 encoding to utf-8 encoding
https://ezpedia.org/solution/convert_database_from_iso_8859_1_encoding_to_utf_8_encoding
https://ezpedia.org/solution/convert_database_from_iso_8859_1_encoding_to_utf_8_encoding<a name="eztoc770_1" id="eztoc770_1"></a><h2>Problem</h2><p>Convert database from 'iso-8859-1' encoding to 'utf-8' encoding</p><a name="eztoc770_2" id="eztoc770_2"></a><h2>Solution</h2><p>See reference, ez.no forum thread (medium length)</p><a name="eztoc770_3" id="eztoc770_3"></a><h2>Reference</h2><p><a href="https://ez.no/community/forum/general/convert_from_iso_8859_1_encoding_to_utf_8" target="_self">https://ez.no/community/forum/general/convert_from_iso_8859_1_encoding_to_utf_8</a></p>Sun, 09 Aug 2009 02:45:24 GMTMoving eZ publish installations
https://ezpedia.org/solution/moving_ez_publish_installations
https://ezpedia.org/solution/moving_ez_publish_installations<a name="eztoc583_1" id="eztoc583_1"></a><h2>Tips When Moving Production Domain Names and Websites</h2><p>Often when moving a production website (possibly powered by eZ publish) you face a problem, moving to a new provider you want to minimize the down time experienced by your customers and visitors. </p><p>In some situations no one knows you exist, your a new site, or a new sub-site so you have a bit more freedom (to take your time or learn). </p><p>In other situations time is critical and you must move a store (source code and database) to a new provider, along with moving DNS to a new provider, configuring the new server and configuring the application to run on the new server ... </p><p>You run into a real problem, you can access the server by ip address but not by the desired domain name (as those changes are in the process of propagating (delivered) to the rest of the internet). </p><p>Yet to test the website you may need to access it via a domain name ... </p><p>Well, here’s what you do ... </p><a name="eztoc583_1_1" id="eztoc583_1_1"></a><h3>Configure your computers host file</h3>
<ul>
<li>On Linux/Unix - usually /etc/hosts</li>
<li>On MacOS X - try <a href="https://docs.info.apple.com/article.html?artnum=88158" target="_self">here</a> </li>
<li>On Windows - %WINDIR%\system32\drivers\etc\hosts</li>
</ul>
<p>To statically point the new server’s ip address to the hostname / domain name </p><a name="eztoc583_1_1_1" id="eztoc583_1_1_1"></a><h4>Example Host file addition:</h4> <pre class="" style="font-family:monospace;">192.168.0.3 example.ezpublish.com example2.ezpublish.com</pre><p>You can add several hostnames after the IP address, as well as have multiple lines for the same IP if required.</p>Sun, 09 Aug 2009 02:43:18 GMTSpell Checking Content Using eZ publish Online Editor and Firefox
https://ezpedia.org/solution/spell_checking_content_using_ez_publish_online_editor_and_firefox
https://ezpedia.org/solution/spell_checking_content_using_ez_publish_online_editor_and_firefox<p>Submitted By: Graham Brookins </p><p>Brief: <i>Firefox + eZ publish + Online Editor + Spellcheck Plugin</i> </p><p>If you manage an website powered by eZ publish, one of the first questions that becomes a regular occurrence; Is my content spelled correctly. The answer is found in a process which ensures that content has been read not just passed on without a quality control process. A process like being reviewed for comprehension, spelling, crammer, readability, continuity, clarity, accuracy and quality by an editor. </p><p>I love the eZ publish Online Editor! Now I know what your thinking, what about all that nay saying from people who say <a href="https://projects.ez.no/ezoe" title="https://ez.no/products/online_editor" target="_blank">$99</a> for a javascript gui editor designed specifically for an enterprise cmf/cms system! It’s too much, It’s not enough, it’s not free (as in free beer)! I say, take another <a href="https://ez.no/ez_publish/demo" title="https://ez.no/ez_publish/demo" target="_blank">look</a> at the eZ publish Online Editor v2.0. The new 2.0 supports both Internet Explorer (existing) and Mozilla/Gecko (new) based browsers. I even heard that there are some eZ publish hosting companies which provides a free copy of the online editor for use on your eZ publish installation. </p><p>I just recently was given the opportunity to try it and I was blown away. Not only does it work in Firefox but combined with other Firefox extensions, Managing eZ publish content has never been more efficient and quick. Upon installing a the Firefox Plugin <a href="https://spellbound.sourceforge.net/" title="https://spellbound.sourceforge.net/" target="_blank">SpellBound</a> and a <a href="https://dictionaries.mozdev.org/installation.html" title="https://dictionaries.mozdev.org/installation.html" target="_blank">Dictionary</a>, I found that any form field, including eZ publish forms and could be spell checked quickly and simply. </p><p>Before this I would edit all my content in a hand text editor and spell checked before posting for reliability and avoid browser page session timeouts, crashes, or other accidents by only posted content through an editor process, cause it works well. </p><p>Still being able to combine Firefox with the online editor could make my smaller less important content additions / changes spelled accurately much quicker.</p><a name="eztoc579_1" id="eztoc579_1"></a><h2>Problem</h2><p>Missing Client Side, Spell Check from OE / eZ publish</p><a name="eztoc579_2" id="eztoc579_2"></a><h2>Solution</h2><p>Use a browser plugin to provide spell checking within the browser itself, for which all content to the website passes through.</p><a name="eztoc579_2_1" id="eztoc579_2_1"></a><h3>Directions</h3>
<ol>
<li>Install <a href="https://www.mozilla.org/products/firefox/" title="https://www.mozilla.org/products/firefox/" target="_blank">Firefox</a> </li>
<li>Install the <a href="https://spellbound.sourceforge.net/" title="https://spellbound.sourceforge.net/" target="_blank">SpellBound</a> Plugin, a <a href="https://dictionaries.mozdev.org/installation.html" title="https://dictionaries.mozdev.org/installation.html" target="_blank">Dictionary</a> for your region, </li>
<li>Restart Firefox. <i> !Voila</i> </li>
</ol>
<a name="eztoc579_3" id="eztoc579_3"></a><h2>Problem</h2><p>The 'Context Menu' in OE prevents use of firefox right click menu features / items.</p>
<ul>
<li>Unfortunately, It’s true, the Online Editor Appears to lack the a browser side feature to control / allow the use of a browsers right click menu inside of an eZ xml text field with a default installation of the Online Editor. Nor does it provide a client side feature enable or disable this behavior on a per session or instance basis. Which prevents the use of a many browser plugins / features when you right click inside of an eZ xml text field and the editor is enabled. </li>
</ul>
<a name="eztoc579_4" id="eztoc579_4"></a><h2>Solution</h2><p>Disable the eZ publish OE Right Click Context Menu (permanently in the source code)</p><p>Simply edit this file 'ezmozillaeditor.js' located in your eZ publish installation at 'extension/ezdhtml/design/standard/javascripts/ezdhtml/'</p>
<ul>
<li>Change these lines:</li>
</ul>
<pre class="php" style="font-family:monospace;">editorDoc<span style="color: #339933;">.</span>addEventListener<span style="color: #009900;">(</span> <span style="color: #0000ff;">"contextmenu"</span><span style="color: #339933;">,</span> disableDefaultContextMenu<span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">false</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
editorDoc<span style="color: #339933;">.</span>addEventListener<span style="color: #009900;">(</span> <span style="color: #0000ff;">"mousedown"</span><span style="color: #339933;">,</span> removeContextMenu<span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
editorDoc<span style="color: #339933;">.</span>addEventListener<span style="color: #009900;">(</span><span style="color: #0000ff;">"contextmenu"</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">{</span>showContextMenu<span style="color: #009900;">(</span>editorID<span style="color: #339933;">,</span>indexDir<span style="color: #339933;">,</span>objectID<span style="color: #339933;">,</span>objectVersion<span style="color: #009900;">)</span><span style="color: #339933;">;</span><span style="color: #009900;">}</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span></pre>
<ul>
<li>Comment them out / Change them to:</li>
</ul>
<pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/*
editorDoc.addEventListener( "contextmenu", disableDefaultContextMenu, false );
editorDoc.addEventListener( "mousedown", removeContextMenu, false);
editorDoc.addEventListener("contextmenu", function(){showContextMenu(editorID,indexDir,objectID,objectVersion);}, false);
*/</span></pre><p>An other perhaps more flexible alternative would be to add a setting in the oe extension to support a per installation setting configuration which could enable or disable a feature similar to this for greater flexibility in the implementation. Yet a better solution would be to offer a per session configuration in the oe which could enable or disable the oe menu with a click of a button and or a keyboard shortcut + right click which could allow per click choice to allow the suppression of the oe’s context sensitive right click menu and allow the browser’s menu to be used in it’s stead. </p> <pre class="php" style="font-family:monospace;">editorDoc<span style="color: #339933;">.</span>addEventListener<span style="color: #009900;">(</span> <span style="color: #0000ff;">"contextmenu"</span><span style="color: #339933;">,</span> disableDefaultContextMenu<span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">true</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
editorDoc<span style="color: #339933;">.</span>addEventListener<span style="color: #009900;">(</span> <span style="color: #0000ff;">"mousedown"</span><span style="color: #339933;">,</span> removeContextMenu<span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
editorDoc<span style="color: #339933;">.</span>addEventListener<span style="color: #009900;">(</span><span style="color: #0000ff;">"contextmenu"</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">{</span>showContextMenu<span style="color: #009900;">(</span>editorID<span style="color: #339933;">,</span>indexDir<span style="color: #339933;">,</span>objectID<span style="color: #339933;">,</span>objectVersion<span style="color: #009900;">)</span><span style="color: #339933;">;</span><span style="color: #009900;">}</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span></pre><p>Hint, Hint, Article Ideas: </p>Sun, 09 Aug 2009 02:42:26 GMTManaging eZ publish Nice Url Length
https://ezpedia.org/solution/managing_ez_publish_nice_url_length
https://ezpedia.org/solution/managing_ez_publish_nice_url_length
<div class="object-center"> <p class="editor_motivation">This is a <a href="/pt/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!</p></div><a name="eztoc559_1" id="eztoc559_1"></a><h2>Summary</h2><p>I saw this question in the forums once.</p><p>The answer at the time was to carefully control the individual object names of possible url attributes both at a class and object level.</p><a name="eztoc559_2" id="eztoc559_2"></a><h2>References</h2>
<ul>
<li>None</li>
</ul>
Sun, 09 Aug 2009 02:40:11 GMTImproving eZ publish Performance Optimization
https://ezpedia.org/solution/improving_ez_publish_performance_optimization
https://ezpedia.org/solution/improving_ez_publish_performance_optimization<p>This page is perhaps one of the most important to the largest number of users in the community. </p><p>Lets face it, we all run eZ publish on a wide range of hardware / software systems and configurations.</p><p>We desperately need to know just how to get the most out of the configurations we are running eZ publish within.</p><p>Performance, Reviews for eZ publish (the process / theory of breaking down the whole thing to find and address the critical bottle necs.</p><p>While I don’t have that just yet, I wanted to share this little tidbit ...</p><a name="eztoc543_1" id="eztoc543_1"></a><h2>Web cacheing with a Proxy</h2><p>Their are performance benifits from using a reverse <a href="/pt/ez/proxy" target="_self">proxy</a> in front of eZ Publish. </p><a name="eztoc543_2" id="eztoc543_2"></a><h2>Content view cache</h2><p>eZ Publish <a href="/pt/ez/web_caching" target="_self">content view cache</a> stores the output from a node view the first time it's accessed and generated. Requests afterwards are served from the viewcache.</p><a name="eztoc543_3" id="eztoc543_3"></a><h2>Disable ProcessCaching</h2><p>If you add this line into your override/site.ini.append.php or siteaccess/corporate/site.ini.append.php ini file you may get a very segnificant reduction in eZ publish processing time per request (cached or uncached!)</p> <pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">[</span>TemplateSettings<span style="">]</span></span>
# reduces latency when disabled
# ProcessCaching<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">enabled</span>
<span style="color: #000099;">ProcessCaching</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">disabled</span></pre><p>Example of my settings in override/site.ini.append.php from a recent project</p> <pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">[</span>TemplateSettings<span style="">]</span></span>
<span style="color: #000099;">Debug</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">disabled</span>
# Debug<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">enabled</span>
<span style="color: #000099;">DebugOutput</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">disabled</span>
# DebugOutput<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">enabled</span>
<span style="color: #000099;">TemplateCache</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">enabled</span>
<span style="color: #000099;">TemplateCompile</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">enabled</span>
# reduces latency when disabled
<span style="color: #000099;">ProcessCaching</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">disabled</span></pre><a name="eztoc543_3_1" id="eztoc543_3_1"></a><h3>References</h3>
<ul>
<li><a href="https://www.ez.no/ez_publish/documentation/configuration/optimization/disabling_the_cache" target="_self">https://www.ez.no/ez_publish/documentation/configuration/optimization/disabling_the_cache</a></li>
</ul>
<ul>
<li><a href="https://ez.no/ez_publish/documentation/development/kernel/cache_block_optimization" target="_self">https://ez.no/ez_publish/documentation/development/kernel/cache_block_optimization</a></li>
</ul>
<ul>
<li><a href="https://ez.no/content/advancedsearch?SearchText=performance&SearchDate=-1&SearchPageLimit=6&SubTreeArray%5B%5D=488&SearchButton=Search" title="https://ez.no/content/advancedsearch?SearchText=performance&SearchDate=-1&SearchPageLimit=6&SubTreeArray%5B%5D=488&SearchButton=Search" target="_blank">Search 'Performance'</a> : eZ publish <a href="https://ez.no/ez_publish/documentation/configuration/optimization" title="https://ez.no/ez_publish/documentation/configuration/optimization" target="_blank"> Optimization</a>, <a href="https://ez.no/ez_publish/documentation/configuration/optimization/caching_for_improved_speed" title="https://ez.no/ez_publish/documentation/configuration/optimization/caching_for_improved_speed" target="_blank">Caching</a>, <a href="https://ez.no/ez_publish/documentation/incoming/smart_viewcache_cleaning_system" title="https://ez.no/ez_publish/documentation/incoming/smart_viewcache_cleaning_system" target="_blank">Smart View Caching</a> </li>
</ul>
Sun, 09 Aug 2009 02:38:41 GMTBuilding eZ publish from svn
https://ezpedia.org/solution/building_ez_publish_from_svn
https://ezpedia.org/solution/building_ez_publish_from_svn<p>From: <i>kracker</i> </p><p>Surprised, I found it! I can’t believe I found it! :D !!! OK, so i’ll .... post it!</p><p>I had been talking yesterday about my modified set of ezpublish build from svn scripts and I stumbled upon them.</p><p>Warning: These are fairly old, incomplete and unmaintained.</p><p><a href="https://download.ezcommunity.net/ezbuild" target="_self">https://download.ezcommunity.net/ezbuild</a></p><p><a href="https://download.ezcommunity.net/ezbuild.tar.gz" target="_self">https://download.ezcommunity.net/ezbuild.tar.gz</a></p><a name="eztoc515_0_1" id="eztoc515_0_1"></a><h3>Installing addons with a SVN-installation</h3><p>From : SEAwolfx</p><p><a href="https://ez.no/community/bugs/while_setup_packages_list_can_not_be_displayed" target="_self">https://ez.no/community/bugs/while_setup_packages_list_can_not_be_displayed</a></p><a name="eztoc515_0_2" id="eztoc515_0_2"></a><h3>The eZ publish Language Translation : ezlupdate</h3><p>From : kracker & SEAwolfx</p><p>Description: ezlupdate compilation and installation, common problem experianced by user</p><p>Most users forget or need to relearn a few key steps in the installation of ezlupdate.</p><p>For example:</p><p>1) Many users forget to set the QTDIR in my environment on the shell ( readme )</p><p>The Include-directory for QT is taken from the shell environment, which could be set with: “export QTDIR=/usr/qt/3/include” before using the ./bin/makedist.sh skript or before compiling manually.</p><p>2) Wrong Sever and Paths ...</p><p>SEAwolfx: do i have to set the paths to pubsvn instead to svn.ez.no ... i think so?!</p><p>SEAwolfx: just look in to the bin/shell/commons.sh</p><p>SEAwolfx: my vars:</p><p>SEAwolfx: REPOSITORY_BASE_URL=”https://pubsvn.ez.no/svn/ezpublish”</p><p>SEAwolfx: TR_REPOSITORY_BASE_URL=”https://pubsvn.ez.no/svn/translations”</p><p>SEAwolfx: REPOSITORY_BRANCH_PATH=”https://pubsvn.ez.no/svn/nextgen/stable/3.7”</p><p>SEAwolfx: wrong paths.</p><p>Further Topics:</p><p>* Building eZPublish from SVN-Sources (<a href="https://download.ezcommunity.net/ezideas/building_ezpublish_from_svn_sources_v1-3.txt" target="_self">building_ezpublish_from_svn_sources_v1-3.txt</a>)</p>Sun, 09 Aug 2009 02:37:33 GMTOverriding kernel error templates
https://ezpedia.org/solution/overriding_kernel_error_templates
https://ezpedia.org/solution/overriding_kernel_error_templates<a name="eztoc222558_1" id="eztoc222558_1"></a><h2>Match conditions</h2><p>Templates used/called by the kernel/error view do indeed have a couple design keys that could be used for override via override.ini(.append.php). Besides the obvious Source filter, it is also possible to use:</p>
<ul>
<li><i>error_type</i>: this is always kernel for the standard modules,</li>
<li><i>error_number</i>: 1 for access denied, etc.</li>
</ul>
<p>For all intents and purposes, however, this is not a viable method of displaying custom error templates because it is not possible to match on a given view.</p><a name="eztoc222558_2" id="eztoc222558_2"></a><h2>Template variables</h2><p>
<i>kernel/error/view.php</i> passes very (very) little useful information to the various error_code templates, so there is nothing natively available in these templates to<br />use for doing things like for example a switch/case on section.</p><p>The best solution at the time of writing is to use <i>$redirect_uri</i>, from which it is possible to extract the module, current node ID, etc.</p><a name="eztoc222558_3" id="eztoc222558_3"></a><h2>Author</h2><p>Based on a summary by Andrew Kelly in <a href="https://ez.no/developer/forum/developer/trouble_overriding_access_denied_template" target="_self">Trouble overriding "Access Denied" template (eZ forums)</a> </p><a name="eztoc222558_4" id="eztoc222558_4"></a><h2>Reference</h2>
<ul>
<li><a href="/pt/ez/kernel_error_codes" target="_self">Kernel error codes</a></li>
<li>Doc: <a href="https://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/error" target="_blank">Error Module Reference</a></li>
</ul>
Sun, 21 Jun 2009 02:04:55 GMTHow to change the datatype of attributes?
https://ezpedia.org/solution/how_to_change_the_datatype_of_attributes
https://ezpedia.org/solution/how_to_change_the_datatype_of_attributes<p>There's no feature currently included with eZ Publish to change an attribute's datatype. However, there are some methods for it already.</p><a name="eztoc212995_1" id="eztoc212995_1"></a><h2>Internally compatible datatypes</h2><p>If a datatype is internally compatible, which means it stores both its class level and object level data in the same way in the database fields of ezcontentobject_attribute and ezcontentclass_attribute, then you can use some simple SQL to change the datatypes. The following example SQL will change all attributes of the datatype with identifier "places" to the datatype with identifier "ezinteger":</p> <pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentclass_attribute <span style="color: #993333; font-weight: bold;">SET</span> data_type_string<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'ezinteger'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> data_type_string<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'places'</span>;
<span style="color: #66cc66;">[</span><span style="color: #993333; font-weight: bold;">UPDATE</span> ezcontentobject_attribute <span style="color: #993333; font-weight: bold;">SET</span> data_type_string<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'ezinteger'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> data_type_string<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'places'</span>;
</pre><a name="eztoc212995_2" id="eztoc212995_2"></a><h2>Non-internally compatible datatypes</h2><p>There is an experimental extension available at <a href="https://ez.no/developer/contribs/datatypes/datatypes" target="_self">https://ez.no/developer/contribs/datatypes/datatypes</a>. You can write plug-ins for it to handle conversion of specific datatypes.</p><a name="eztoc212995_3" id="eztoc212995_3"></a><h2>References</h2>
<ul>
<li>Forum: <a href="https://ez.no/developer/forum/developer/change_object_content_class" target="_blank">Change Object Content Class</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/extensions/converting_ezstring_to_ezxml_with_ezchangeclass_extension" target="_blank">Converting ezstring to ezxml with ezchangeclass extension</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/setup_design/changing_an_attribute_datatype" target="_blank">Changing an attribute datatype</a> (Outdated information)</li>
<li>Contribution: <a href="https://ez.no/community/contribs/applications/object_content_class_change" target="_blank">Object content class change</a></li>
</ul>
Sun, 21 Jun 2009 01:06:02 GMTDynamic Layouts - Managing Style as Content
https://ezpedia.org/solution/dynamic_layouts_managing_style_as_content
https://ezpedia.org/solution/dynamic_layouts_managing_style_as_content <a name="eztoc63129_1" id="eztoc63129_1"></a><h2>About</h2> <p>This is a different approach to template design. It is the creation of a container class, <b>Div</b>, that allows the content editor (or designer) to style the <b>div</b> and store the settings as content.</p> <p>The div content is object relations into the system. This allows a great amount of design control, without requiring template or CSS modifications.</p> <a name="eztoc63129_2" id="eztoc63129_2"></a><h2>Application</h2> <p>The intent of this class and template is to allow page-specific styles, images, and layouts to be applied to single pages, without creating node override templates or custom classes. Page-specific images that are placed in CSS files create a significant amount of overhead, and this alleviates that overhead, and makes the images more manageable.</p> <a name="eztoc63129_3" id="eztoc63129_3"></a><h2> <b>Notes</b> </h2> <p>The objective of the class is primarily layout, to divide the {$module_result.content} area into divs that can be managed as eZ content, instead of templates with CSS files. It is a recursive looping template, that first delivers a named div, then the style tags of the container, followed by the styled div, and including the children, with the same approach. The children use object relations to refer to content within the system.</p> <a name="eztoc63129_4" id="eztoc63129_4"></a><h2>Class</h2> <p>The class has the following attributes:</p>
<ul>
<li> Name - Name of div, and object/node </li>
<li> Class - General CSS class - can be used in conjunction with CSS files </li>
<li> Style - Text block with any style tag content. {} will be added by the template </li>
<li> Background Image - Web ready background image. Original image will be used. Height and width can be entered manually, or omitted. </li>
<li> Content - Optional object relations to content within the system. node/view/line is used to display content </li>
</ul>
<a name="eztoc63129_5" id="eztoc63129_5"></a><h2>Template</h2> <pre class="" style="font-family:monospace;"><span class="br0">{</span>def $children=fetch<span class="br0">(</span>&apos;content&apos;,&apos;list&apos;,hash<span class="br0">(</span>parent_node_id,$node.node_id,sort_by,$node.sort_array<span class="br0">)</span><span class="br0">)</span><span class="br0">}</span>
<div name="<span class="br0">{</span>$node.name|wash<span class="br0">}</span>">
<style>
#<span class="br0">{</span>$node.name|wash<span class="br0">}</span>
<span class="br0">{</span>ldelim<span class="br0">}</span>
<span class="br0">{</span>$node.data_map.style.content<span class="br0">}</span>
<span class="br0">{</span>if $node.data_map.background_image.has_content<span class="br0">}</span>
background-image: url<span class="br0">(</span><span class="br0">{</span>$node.data_map.background_image.content.original.url|ezroot<span class="br0">(</span>&apos;single&apos;,&apos;full&apos;<span class="br0">)</span><span class="br0">}</span><span class="br0">)</span>;
<span class="br0">{</span>/if<span class="br0">}</span>
<span class="br0">{</span>rdelim<span class="br0">}</span>
</style>
<div id="<span class="br0">{</span>$node.name|wash<span class="br0">}</span>" class="<span class="br0">{</span>$node.data_map.class.content|wash<span class="br0">}</span>" >
<span class="br0">{</span>if $children|count|gt<span class="br0">(</span><span style="">0</span><span class="br0">)</span><span class="br0">}</span>
<span class="br0">{</span>foreach $children as $k => $v<span class="br0">}</span>
<span class="br0">{</span>node_view_gui content_node=$v view="full"<span class="br0">}</span>
<span class="br0">{</span>/foreach<span class="br0">}</span>
<span class="br0">{</span>else<span class="br0">}</span>
<span class="br0">{</span>def $related_objects=fetch<span class="br0">(</span>&apos;content&apos;,&apos;related_objects&apos;,hash<span class="br0">(</span>&apos;object_id&apos;,$node.object.id,&apos;all_relations&apos;, true<span class="br0">(</span><span class="br0">)</span><span class="br0">)</span><span class="br0">)</span><span class="br0">}</span>
<div id="<span class="br0">{</span>$node.name|wash<span class="br0">}</span>" class="<span class="br0">{</span>$node.data_map.class.content|wash<span class="br0">}</span>" >
<span class="br0">{</span>foreach $related_objects as $k => $v<span class="br0">}</span>
<span class="br0">{</span>node_view_gui content_node=$v.main_node view="line"<span class="br0">}</span>
<span class="br0">{</span>/foreach<span class="br0">}</span>
<span class="br0">{</span>/if<span class="br0">}</span>
</div>
</div>
<span class="br0">{</span>undef<span class="br0">}</span></pre> Fri, 29 Feb 2008 20:34:41 GMTOverriding the eZ Web Interface (ezwebin) with custom designs
https://ezpedia.org/solution/overriding_the_ez_web_interface_ezwebin_with_custom_designs
https://ezpedia.org/solution/overriding_the_ez_web_interface_ezwebin_with_custom_designs <p>The original source for most of this material comes from a <a href="https://serwatka.net/index.php/en/blog/website_interface_customization_tips" target="_self">blog post by an eZ publish developer</a>.</p> <p>If you've installed 3.9.0 with the eZ Web Interface (hereinafter referred to as ezwebin) but need to customize your siteaccess to differ from the demo design, your first step is to get your hierarchies organized to override the default ezwebin design on a per-siteaccess basis.</p> <p><b>Note</b>: pay careful attention to order of ActiveExtensions in following two examples. In case of CSS your extension has to be listed <b>below</b> ezwebin, but for templates <b>above</b> it.</p> <a name="eztoc88974_0_1" id="eztoc88974_0_1"></a><h3> <b>To Modify CSS (Without Modifying Templates)</b> </h3> <p>1. Go to your /extension/directory and replicate the structure of ezwebin for your own design name. For example, if your siteaccess is "my_siteaccess" and your desired design is "my_design" then you'll create a structure as follows:</p> <p>
extension<br />
| -ezwebin<br />
| -my_design<br />
| | -- design<br />
| | | --- ezwebin<br />
| | | |---- images<br />
| | | |---- stylesheets<br />
| | | |---- templates<br />| | -- settings </p> <p>Note that you want to leave the original ezwebin directory intact, but merely mimic its' structure. Also, note that in the my_design/design directory, the correct name of the child is ezwebin (for 3.9.0) as this is where your CSS overrides will be placed and seen by the system.</p> <p>2. Next, you'll want to initialize your design in the system. Go to extension/my_design/settings/ and create a new file named "design.ini.append.php" Inside, specify the following settings: </p> <p>
<?php /*<br />
[ExtensionSettings]<br />
DesignExtensions[]=my_design<br />*/ ?> </p> <p>3. Now is the best time to copy the CSS files and templates from extension/ezwebin/design/ezwebin into your newly created extension/my_design/design/ezwebin so you can modify their contents to suit your design needs.</p> <p>4. Next, you'll need to make the system aware that your new "extension" (conceptually) exists. To do that, go to settings/override/site.ini.append.php and open it for editing. Find the section for [ExtensionSettings] and active your extension LAST (in order) as follows:</p> <p>
[ExtensionSettings]<br />
ActiveExtensions[]<br />
ActiveExtensions[]=ezwebin<br />
ActiveExtensions[]=ezdhtml<br />
ActiveExtensions[]=ezodf<br />ActiveExtensions[]=my_design </p> <p>5. Last, you'll need to edit the settings/siteaccess/my_siteaccess/site.ini.append.php to make it aware that your extension design exists. Add your design FIRST (in order), although it may seem a little counter-intuitive at first glance.</p> <p>
[DesignSettings]<br />
SiteDesign=my_design<br />
AdditionalSiteDesignList[]=ezwebin<br />AdditionalSiteDesignList[]=base </p> <p>6. You're done. Login to your Admin view and clear *all* cache. Voila, your new CSS files will be used.</p> <p>NOTE: At this time, <a href="https://issues.ez.no/IssueView.php?Id=10184&activeItem=1" target="_self">there appears to be a bug</a>. CSS file are honored by the system (but templates are currently not honored).</p> <a name="eztoc88974_0_2" id="eztoc88974_0_2"></a><h3>To Modify Templates (Without Modifying CSS)</h3> <p>1. Go to your /extension/directory and replicate the structure of ezwebin for your own design name. For example, if your siteaccess is "my_siteaccess" and your desired design is "my_design" then you'll create a structure as follows:</p> <p>
extension<br />
| -ezwebin<br />
| -my_design<br />
| | -- design<br />
| | | --- ezwebin<br />
| | | |---- images<br />
| | | |---- stylesheets<br />
| | | |---- templates<br />| | -- settings </p> <p>Note that you want to leave the original ezwebin directory intact, but merely mimic its' structure. Also, note that in the my_design/design directory, the correct name of the child is ezwebin (for 3.9.0) as this is where your TPL overrides will be placed and seen by the system.</p> <p>2. Next, you'll want to initialize your design in the system. Go to extension/my_design/settings/ and create a new file named "design.ini.append.php" Inside, specify the following settings: </p> <p>
<?php /*<br />
[ExtensionSettings]<br />
DesignExtensions[]=my_design<br />*/ ?> </p> <p>3. Now is the best time to copy the CSS files and templates from extension/ezwebin/design/ezwebin into your newly created extension/my_design/design/ezwebin so you can modify their contents to suit your design needs.</p> <p>4. Next, you'll need to make the system aware that your new "extension" (conceptually) exists. To do that, go to settings/override/site.ini.append.php and open it for editing. Find the section for [ExtensionSettings] and active your extension ABOVE ezwebin (in order) as follows:</p> <p>
[ExtensionSettings]<br />
ActiveExtensions[]<br />
ActiveExtensions[]=ezdhtml<br />
ActiveExtensions[]=ezodf<br />
ActiveExtensions[]=my_design<br />ActiveExtensions[]=ezwebin </p> <p>5. Last, you'll need to edit the settings/siteaccess/my_siteaccess/site.ini.append.php to make it aware that your extension design exists. Add your design FIRST (in order), although it may seem a little counter-intuitive at first glance.</p> <p>
[DesignSettings]<br />
SiteDesign=my_design<br />
AdditionalSiteDesignList[]=ezwebin<br />AdditionalSiteDesignList[]=base </p> <p>6. You're done. Login to your Admin view and clear *all* cache. Voila, your new TPL files will be used.</p> <p>NOTE: At this time, <a href="https://issues.ez.no/IssueView.php?Id=10184&activeItem=1" target="_self">there appears to be a bug</a>. TPL file are honored by the system (but stylesheets are currently not honored).</p> <a name="eztoc88974_0_3" id="eztoc88974_0_3"></a><h3>To Modify Both CSS and Templates (Special Case)</h3> <p>You must consider your implementation of eZ publish. This workaround is valid if 1) you have only one frontpage/user view (non-admin view) siteaccess OR 2) if all your frontpage/user view (non-admin view) siteaccesses will use the CSS changes. This work around is not valid if you have multiple siteaccesses which must use different stylesheets. </p> <p>The strategy here is to setup template overrides in the method recommended by eZ Systems, then to craft a workaround so CSS overrides are used (across all non-admin siteaccesses).</p> <p>1. Go to your /extension/directory and replicate the structure of ezwebin for your own design name. For example, if your siteaccess is "my_siteaccess" and your desired design is "my_design" then you'll create a structure as follows:</p> <p>
extension<br />
| -ezwebin<br />
| -my_design<br />
| | -- design<br />
| | | --- ezwebin<br />
| | | |---- images<br />
| | | |---- stylesheets<br />
| | | |---- templates<br />| | -- settings </p> <p>Note that you want to leave the original ezwebin directory intact, but merely mimic its' structure. Also, note that in the my_design/design directory, the correct name of the child is ezwebin (for 3.9.0) as this is where your TPL overrides will be placed and seen by the system.</p> <p>2. Next, you'll want to initialize your design in the system. Go to extension/my_design/settings/ and create a new file named "design.ini.append.php" Inside, specify the following settings: </p> <p>
<?php /*<br />
[ExtensionSettings]<br />
DesignExtensions[]=my_design<br />*/ ?> </p> <p>3. Now is the best time to copy the CSS files and templates from extension/ezwebin/design/ezwebin into your newly created extension/my_design/design/ezwebin so you can modify their contents to suit your design needs.</p> <p>4. Next, you'll need to make the system aware that your new "extension" (conceptually) exists. To do that, go to settings/override/site.ini.append.php and open it for editing. Find the section for [ExtensionSettings] and active your extension ABOVE ezwebin (in order) as follows:</p> <p>
[ExtensionSettings]<br />
ActiveExtensions[]<br />
ActiveExtensions[]=ezdhtml<br />
ActiveExtensions[]=ezodf<br />
ActiveExtensions[]=my_design<br />ActiveExtensions[]=ezwebin </p> <p>5. Last, you'll need to edit the settings/siteaccess/my_siteaccess/site.ini.append.php to make it aware that your extension design exists. Add your design FIRST (in order), although it may seem a little counter-intuitive at first glance.</p> <p>
[DesignSettings]<br />
SiteDesign=my_design<br />
AdditionalSiteDesignList[]=ezwebin<br />AdditionalSiteDesignList[]=base </p> <p>6. Place your modified CSS files in extension/my_design/design/ezwebin/override/stylesheets (reminder: this will affect all your non-admin siteaccesses which use the eZ Web Interface).</p> <p>7. Place any images need by your CSS files into extension/my_design/design/ezwebin/overrides/images</p> <p>8. You're done. Login to your Admin view and clear *all* cache. Voila, both your new TPL files and your new CSS will be used on all siteaccesses which use the ezwebin (eZ Web Interface).</p> <p><b>To Modify Both CSS and Templates (Universal Method)</b> </p> <p>There is not currently a verified workaround strategy which will allow targeting of individual siteaccesses for both modified CSS and Templates. The <a href="https://issues.ez.no/IssueView.php?Id=10184" target="_self">bug report</a> contains some suggested methods, but they are not yet verified as working (please note eZ Systems has asked no further discussion on the bug report itself, so please discuss this issue either on the eZ forums or IRC (Freenode #ezpublish).</p> Mon, 29 Oct 2007 10:22:16 GMTWorking with eZ publish translations
https://ezpedia.org/solution/working_with_ez_publish_translations
https://ezpedia.org/solution/working_with_ez_publish_translations <a name="eztoc136383_1" id="eztoc136383_1"></a><h2>About</h2> <p>eZ publish translations are both simple to create and update.</p> <a name="eztoc136383_2" id="eztoc136383_2"></a><h2>Dependencies</h2>
<ul>
<li> <a href="/pt/ez/qt" target="_self">QT</a> Toolkit </li>
<li> QT Linguist </li>
<li> <a href="/pt/ez/ezlupdate" target="_self">ezlupdate</a> </li>
</ul>
<p>You will want to make certain you have QT Linguist and ezlupdate created and installed properly before continuing.</p> <a name="eztoc136383_3" id="eztoc136383_3"></a><h2>Using QT Linguist</h2> <a name="eztoc136383_3_1" id="eztoc136383_3_1"></a><h3>Using Linguist with eZ publish</h3> <a name="eztoc136383_3_2" id="eztoc136383_3_2"></a><h3>Loading eZ publish translation</h3> <a name="eztoc136383_3_3" id="eztoc136383_3_3"></a><h3>Modifying eZ publish translation</h3> <a name="eztoc136383_3_4" id="eztoc136383_3_4"></a><h3>Saving eZ publish translation</h3> <a name="eztoc136383_4" id="eztoc136383_4"></a><h2>Loading modified eZ publish translation into eZ publish</h2> <a name="eztoc136383_4_5" id="eztoc136383_4_5"></a><h3>Modifying stock eZ publish</h3> <p>...</p> <a name="eztoc136383_4_6" id="eztoc136383_4_6"></a><h3>Using a translation extension</h3> <p>...</p> <a name="eztoc136383_4_7" id="eztoc136383_4_7"></a><h3>Creating an extension translation </h3> <pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> ezexample<span style="color: #000000; font-weight: bold;">/</span>translations<span style="color: #000000; font-weight: bold;">/</span>
jack<span style="color: #000000; font-weight: bold;">@</span>host:<span style="color: #000000; font-weight: bold;">/</span>web<span style="color: #000000; font-weight: bold;">/</span>ez<span style="color: #000000; font-weight: bold;">/</span>$ <span style="color: #000000; font-weight: bold;">/</span>web<span style="color: #000000; font-weight: bold;">/</span>ez<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>ezlupdate <span style="color: #660033;">-u</span> <span style="color: #660033;">--extension</span> ezexample eng-US
Extension mode, directory: ezexample
eZ publish translations directory created: ezexample<span style="color: #000000; font-weight: bold;">/</span>translations<span style="color: #000000; font-weight: bold;">/</span>eng-US
eZ publish translations directory created: ezexample<span style="color: #000000; font-weight: bold;">/</span>translations<span style="color: #000000; font-weight: bold;">/</span>untranslated</pre> <a name="eztoc136383_5" id="eztoc136383_5"></a><h2>External reference</h2> <p>Creating a translation extension</p>
<ul>
<li> <a href="https://ez.no/community/forum/setup_design/translating_from_french_to_english_using_ezwebin" target="_self">Translating from French to English using ezwebin</a> </li>
</ul>
Fri, 10 Aug 2007 04:51:49 GMTWebsite toolbar for custom classes
https://ezpedia.org/solution/website_toolbar_for_custom_classes
https://ezpedia.org/solution/website_toolbar_for_custom_classes <p>By default, the website toolbar in 3.9 is only shown for classes shipped with the website interface. If you want it to be shown for a custom class, add your class' name to the AvailableForClasses[] array in extension/ezwebin/settings/websitetoolbar.ini and clear the cache ;)</p> <p>If your class is a container, you also need to add it to the ContentClassContainers array in the same file to enable creating objects under it.</p>Sat, 19 May 2007 12:01:03 GMTCreating deb packages
https://ezpedia.org/solution/creating_deb_packages
https://ezpedia.org/solution/creating_deb_packages <a name="eztoc134400_1" id="eztoc134400_1"></a><h2>Description</h2> <p>You might want to create custom deb packages of your own supported eZ publish requirements.</p> <p>As many distributions have poor support for PHP 4.4 branch (atm) many users find themselves installing their own software to provide PHP 4.4 or greater.</p> <a name="eztoc134400_1_1" id="eztoc134400_1_1"></a><h3>Examples</h3> <p>Examples of software possibly worth packaging for production server software management.</p>
<ul>
<li> eZ </li>
<li> PHP </li>
<li> Apache </li>
<li> MySQL </li>
</ul>
<a name="eztoc134400_2" id="eztoc134400_2"></a><h2>Custom source repositories</h2> <p><a href="https://www.dotdeb.org/" title="https://www.dotdeb.org/" target="_self">Dotdeb</a> is an unofficial repository containing many packages for the <b>Debian stable</b> (aka “ <i>Sarge</i>“) distribution</p> <p>They have many packages which may meet your basic needs and free you from the need to create a custom package.</p> <a name="eztoc134400_3" id="eztoc134400_3"></a><h2>SQL</h2> <a name="eztoc134400_4" id="eztoc134400_4"></a><h2>Commands</h2> <p>No command summary provided at this time.</p> <p>The basic process is as follows</p>
<ul>
<li> Create file </li>
<li> Build deb </li>
<li> Install PHP </li>
</ul>
<a name="eztoc134400_5" id="eztoc134400_5"></a><h2>Create PHP4.4.6 deb</h2> <a name="eztoc134400_5_2" id="eztoc134400_5_2"></a><h3>Command Desc</h3> <pre class="" style="font-family:monospace;">#</pre> <a name="eztoc134400_5_3" id="eztoc134400_5_3"></a><h3>Command Desc </h3> <pre class="" style="font-family:monospace;">#</pre> <a name="eztoc134400_5_4" id="eztoc134400_5_4"></a><h3>Build deb</h3> <a name="eztoc134400_5_5" id="eztoc134400_5_5"></a><h3> </h3> <pre class="" style="font-family:monospace;">#</pre> <p>Then you might ...</p> <pre class="" style="font-family:monospace;">#</pre> <a name="eztoc134400_5_6" id="eztoc134400_5_6"></a><h3>Install deb</h3> <pre class="" style="font-family:monospace;">#</pre> <a name="eztoc134400_6" id="eztoc134400_6"></a><h2>External reference</h2>
<ul>
<li> Forum: <a href="https://ez.no/community/forum/install_configuration/php_4_3_9_ez_publish_3_9_0" target="_self">PHP 4.3.9 and eZ publish 3.9.0</a> </li>
<li> Tutorial: <a href="https://www.falkotimme.com/howtos/checkinstall/" target="_self">checkinstall</a> </li>
<li> Packages: <a href="https://www.dotdeb.org/" title="https://www.dotdeb.org/" target="_self">Dotdeb</a> </li>
</ul>
Fri, 09 Mar 2007 10:55:31 GMTCreating rpm packages
https://ezpedia.org/solution/creating_rpm_packages
https://ezpedia.org/solution/creating_rpm_packages <a name="eztoc106352_1" id="eztoc106352_1"></a><h2>Description</h2> <p>You might want to create custom rpm packages of your own supported eZ publish requirements.</p> <p>As many distributions have poor support for PHP 4.4 branch (atm) many users find themselves installing their own software to provide PHP 4.4 or greater.</p> <a name="eztoc106352_1_1" id="eztoc106352_1_1"></a><h3>Examples</h3> <p>Examples of software possibly worth packaging for production server software management.</p>
<ul>
<li> eZ </li>
<li> PHP </li>
<li> Apache </li>
<li> MySQL </li>
</ul>
<a name="eztoc106352_2" id="eztoc106352_2"></a><h2>Commands</h2> <p>No command summary provided at this time.</p> <p>The basic process is as follows</p>
<ul>
<li> Create spec file </li>
<li> Build rpm and srpm </li>
<li> Install PHP </li>
</ul>
<a name="eztoc106352_3" id="eztoc106352_3"></a><h2>Create PHP4.4.6 RPM</h2> <a name="eztoc106352_3_2" id="eztoc106352_3_2"></a><h3>Create Spec File</h3> <pre class="" style="font-family:monospace;">root@lotta:~/> vim /usr/src/packages/SPECS/.spec</pre> <a name="eztoc106352_3_3" id="eztoc106352_3_3"></a><h3>Build rpm and srpm</h3> <pre class="" style="font-family:monospace;">root@lotta:~/> cd /usr/src/packages/BUILD
root@lotta:/usr/src/packages/BUILD> rpmbuild -ba .spec</pre> <a name="eztoc106352_3_4" id="eztoc106352_3_4"></a><h3>Install PHP rpm</h3> <pre class="" style="font-family:monospace;">root@lotta:~/> rpm -i /usr/src/packages/RPMS/i586/php-4.4.6-1.i586.rpm</pre> <a name="eztoc106352_4" id="eztoc106352_4"></a><h2>Example Spec Files</h2> <a name="eztoc106352_4_5" id="eztoc106352_4_5"></a><h3>Create PHP4.4.6 RPM for Suse Linux Enterprise Server 10</h3> <p><b>Paste this into the file </b>/usr/src/packages/SPECS/.spec</p> <pre class="" style="font-family:monospace;">%define name php
%define version 4.4.6
%define release <span style="">1</span>
%define _prefix /usr
%define var --with-apxs2=/usr/sbin/apxs2-prefork --with-gd --with-t1lib --with-jpeg-dir --with-png-dir --with-zlib-dir --with-ttf --with-freetype-dir --with-t1lib --enable-gd-native-ttf --enable-gd-jis-conv --enable-bcmath --enable-calendar --with-curl --with-dom --with-xmlrpc --enable-ftp --with-iconv --with-gettext --enable-mbstring --with-mcrypt --with-mhash --enable-sockets
Summary: PHP is a server-side scripting language for creating dynamic Web pages
Name: %<span class="br0">{</span>name<span class="br0">}</span>
Version: %<span class="br0">{</span>version<span class="br0">}</span>
Release: %<span class="br0">{</span>release<span class="br0">}</span>
Source: https://no.php.net/distributions/%<span class="br0">{</span>name<span class="br0">}</span>-%<span class="br0">{</span>version<span class="br0">}</span>.tar.gz
Vendor: The PHP Group
URL: https://www.php.net/
License: The PHP License
Group: System Environment/Libraries
Prefix: != %<span class="br0">{</span>_prefix<span class="br0">}</span>
BuildRoot: /tmp/%<span class="br0">{</span>name<span class="br0">}</span>-buildroot
%files
/bin
/include
/lib
/etc
/man
%defattr<span class="br0">(</span>-,root,root<span class="br0">)</span>
%description
PHP is a server-side scripting language for creating dynamic Web pages.
%prep
%setup -q
%build
echo %<span class="br0">{</span>_prefix<span class="br0">}</span>
./configure --prefix=$RPM_BUILD_ROOT %<span class="br0">{</span>var<span class="br0">}</span>
make
%install
rm -rf $RPM_BUILD_ROOT
make ROOT="$RPM_BUILD_ROOT" install
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Mar <span style="">6</span> <span style="">2007</span> Kim Johansen <[email protected]>
- First draft of the spec file</pre> <a name="eztoc106352_4_6" id="eztoc106352_4_6"></a><h3>Create PHP4.4.6 RPM for CentOS 4.4</h3> <p><b>Paste this into the file </b>/usr/src/packages/SPECS/.spec</p> <pre class="" style="font-family:monospace;">%define name php
%define version 4.4.6
%define release <span style="">1</span>
%define _prefix /usr
%define var --with-apxs2=/usr/sbin/apxs --with-gd --with-t1lib --with-jpeg-dir --with-pn\
g-dir --with-zlib-dir --with-ttf=/usr/include/freetype1 --with-freetype-dir=/usr/include/freetype2 --with\
-t1lib --enable-gd-native-ttf --enable-gd-jis-conv --enable-bcmath --enable-calendar --with-curl --with-d\
om --with-xmlrpc --enable-ftp --with-iconv --with-gettext --enable-mbstring --with-mcrypt --with-mhash --\
enable-sockets
Summary: PHP is a server-side scripting language for creating dynamic Web pages
Name: %<span class="br0">{</span>name<span class="br0">}</span>
Version: %<span class="br0">{</span>version<span class="br0">}</span>
Release: %<span class="br0">{</span>release<span class="br0">}</span>
Source: https://no.php.net/distributions/%<span class="br0">{</span>name<span class="br0">}</span>-%<span class="br0">{</span>version<span class="br0">}</span>.tar.gz
Vendor: The PHP Group
URL: https://www.php.net/
License: The PHP License
Group: System Environment/Libraries
Prefix: != %<span class="br0">{</span>_prefix<span class="br0">}</span>
BuildRoot: /tmp/%<span class="br0">{</span>name<span class="br0">}</span>-buildroot
%files
/bin
/include
/lib
/etc
/man
%defattr<span class="br0">(</span>-,root,root<span class="br0">)</span>
%description
PHP is a server-side scripting language for creating dynamic Web pages.
%prep
%setup -q
%build
echo %<span class="br0">{</span>_prefix<span class="br0">}</span>
./configure --prefix=$RPM_BUILD_ROOT %<span class="br0">{</span>var<span class="br0">}</span>
make
%install
rm -rf $RPM_BUILD_ROOT
make ROOT="$RPM_BUILD_ROOT" install
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Mar <span style="">9</span> <span style="">2007</span> Graham Brookins <[email protected]>
- First draft of the spec file</pre> <a name="eztoc106352_5" id="eztoc106352_5"></a><h2>External reference</h2>
<ul>
<li> Forum: <a href="https://ez.no/community/forum/install_configuration/php_4_3_9_ez_publish_3_9_0" target="_self">PHP 4.3.9 and eZ publish 3.9.0</a> </li>
<li> <a href="https://php.net" target="_blank">PHP</a> </li>
<li> <a href="https://www.rpm.org/max-rpm-snapshot/" target="_blank">RPM HOWTO</a> </li>
</ul>
Fri, 09 Mar 2007 10:55:28 GMTOverriding the default website interface extension
https://ezpedia.org/solution/overriding_the_default_website_interface_extension
https://ezpedia.org/solution/overriding_the_default_website_interface_extension <p>If you want to override the default website interface style sheets and templates, here is one method of acheiving it.</p> <p>Create the following structure in the extension directory:</p> <p>
ezwebin_custom<br />
| - design<br />
| | - ezwebin_custom<br />
| | | - images<br />
| | | - override<br />
| | | | - templates<br />
| | | - stylesheets<br />
| | | - templates<br />| - settings </p> <p>In the extension/ezwebin_custom/settings directory create a file called design.ini.append.php with the following content:</p> <p>
<?php /*<br />
[ExtensionSettings]<br />
DesignExtensions[]=ezwebin_custom<br />*/ ?> </p> <p>Edit settings/override/site.ini.append.php file and add this into the [ExtensionSettings] block:</p> <p>
ActiveExtensions[]=ezwebin_custom<br />Note that ezwebin_custom must be placed BEFORE ezwebin to override it. For example like: </p> <p>
[ExtensionSettings]<br />
ActiveExtensions[]=ezodf<br />
ActiveExtensions[]=ezdhtml<br />
ActiveExtensions[]=ezwebin_custom<br />ActiveExtensions[]=ezwebin </p> <p>Edit the [DesignSettings] block of settings/siteacees/your_default_site_access so that the default SiteDesign matches the name of the design folder in your new extension e.g. design/ezwebin_custom would require setting SiteDesign=ezwebin_custom. Also make sure ezwebin is added to the AdditionalSiteDesignList. Example:</p> <p>
[DesignSettings]<br />
SiteDesign=ezwebin_custom<br />
AdditionalSiteDesignList[]=base<br />AdditionalSiteDesignList[]=ezwebin </p> <p>Copy stylesheets from 'extension/ezwebin/design/ezwebin/stylesheets' to your custom design extension 'extension/ezwebin_custom/design/ezwebin/stylesheets'. Edit these to make style shanges.</p> <p>You should now be able to create system and override templates as you would be used to in previous versions, except you will now be working in the extension/ezwebin_custom/design/ezwebin_custom directory rather than design/your_site_access/.</p> <p>Class and template editing are disabled by default since the 3.9.0 release. A solution to this problem is to <a href="/pt/solution/modify_siteaccessrules_to_allow_advanced_editing" target="_self">modify SiteAccessRules to allow advanced editing</a>.</p>Wed, 07 Mar 2007 10:58:57 GMTCreating and maintaining an eZ publish patch
https://ezpedia.org/solution/creating_and_maintaining_an_ez_publish_patch
https://ezpedia.org/solution/creating_and_maintaining_an_ez_publish_patch <p>While I have little hesitation in creating a patch directory structure within an the related extension or settings extension for the instance of that site installation there is a bit of work in keeping track of these modifications or <a href="/pt/ez/patch" target="_self">patches</a> for future upgrades.</p> <a name="eztoc103135_1" id="eztoc103135_1"></a><h2>Storing patch files in an extension </h2> <p>This makes patching fairly simple to repeat. Sometimes I use a <a href="/pt/ez/patch" target="_self">patch</a> file, sometimes I only use instances of the modified file and original file.</p> <p>Path: [ <i>Patch Base Path</i>] + [ <i>Version of eZ</i>] + [ <i>Relative Stock Path</i>]</p> <pre class="bash" style="font-family:monospace;">extension<span style="color: #000000; font-weight: bold;">/</span>ezexample<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">patch</span>
extension<span style="color: #000000; font-weight: bold;">/</span>ezexample<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">patch</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">3.8</span>
extension<span style="color: #000000; font-weight: bold;">/</span>ezexample<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">patch</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">3.9</span>
extension<span style="color: #000000; font-weight: bold;">/</span>ezexample<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">patch</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">3.10</span>
extension<span style="color: #000000; font-weight: bold;">/</span>ezexample<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">patch</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">3.10</span><span style="color: #000000; font-weight: bold;">/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>shop<span style="color: #000000; font-weight: bold;">/</span>module.php
extension<span style="color: #000000; font-weight: bold;">/</span>ezexample<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">patch</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">3.10</span><span style="color: #000000; font-weight: bold;">/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>shop<span style="color: #000000; font-weight: bold;">/</span>module.php.orig
extension<span style="color: #000000; font-weight: bold;">/</span>ezexample<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">patch</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">3.10</span><span style="color: #000000; font-weight: bold;">/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>shop<span style="color: #000000; font-weight: bold;">/</span>module.php.diff</pre> <a name="eztoc103135_1_1" id="eztoc103135_1_1"></a><h3>Example</h3> <p>Example of extension's which include kernel patches and or patch directory structure. (...)</p> <a name="eztoc103135_2" id="eztoc103135_2"></a><h2>Include path</h2> <p>Still, I can't remember if my tests in modifying the include_path were successful, I don't remember using it regularly after my first encounter with it.</p> <p>The idea being you can add a file path to the php include path configuration variable which should allow you to be able to in affect override a specific stock file without having to actualy replace the stock file.</p> <a name="eztoc103135_2_2" id="eztoc103135_2_2"></a><h3>Example php.ini setting</h3> <p>Example of the php.ini setting requirered to override a stock eZ publish file (kernel or lib) (...)</p> <a name="eztoc103135_3" id="eztoc103135_3"></a><h2>External reference</h2>
<ul>
<li> Forum: <a href="https://ez.no/community/forum/developer/core_extend_kernel_code" target="_self">core extend kernel code</a> </li>
</ul>
Fri, 16 Feb 2007 13:59:21 GMT