New on eZpedia
https://ezpedia.org
All new articles on eZpedia.en-GBSimple fromString and toString interface for attributes
https://ezpedia.org/ez/simple_fromstring_and_tostring_interface_for_attributes
https://ezpedia.org/ez/simple_fromstring_and_tostring_interface_for_attributes<a name="eztoc452471_1" id="eztoc452471_1"></a><h2>Simple fromString and toString interface for attributes</h2>
<p>
This is a copy of only document available that describes the <b>extremely useful</b> toString and fromString functions of datatypes, which greatly simplify storing and retrieving attributes in php.
</p>
<p>
This is a design document, so there may be some inaccuracies but it seems to work ok into the 4.2 series. It is recommended to verify the format of not-trivial datatypes by doing toString on attribute of that type with data in it and examining output.
</p>
<p>
Source: <a href="https://pubsvn.ez.no/nextgen/trunk/doc/features/3.9/to_from_string_datatype_functionality.txt" target="_self">https://pubsvn.ez.no/nextgen/trunk/doc/features/3.9/to_from_string_datatype_functionality.txt</a>
</p>
<p>
To simplify writing of import export scripts we have added two functions to the ezcontentobjectattribute class. Also related functions with the same name have been added to the datype interfase and to all datatypes in standard eZ Publish distribution exept of ezenum which is now deprecated and ezpackage which is not used.
</p>
<p>
To show possibilities of these functionality two scripts have been added under bin/php/. These scripts are very simple CSV import/export scripts:<br />
- ezcsvimport.php<br />
- ezcsvexport.php<br />
They are very basic and do not pretend to be fully functional CSV import/export for ezpublish though you can use them to do real import/export. Here is a description of formats which are accepted by the datatypes for <br />fromString( &$contentObjectAttribute, $string ), and generated by toString( $contentObjectAttribute ) methods.
</p>
<p>
<b>ezauthor:</b><br />
To separate one author from another '&' char is used, to separate parts of author data '|' is used. The system escapes '|','&','\' with the '\' char.<br />Example of toString result:
</p>
<p>
Administrator User|[email protected]|0&Sergiy|[email protected]|1&SP|[email protected]|2
</p>
<p>
To make it easy to parse such kind of strings the class ezstringutils is added under lib/ezutils. It has to functions as a members.<br />explodeStr( $str, $delimiter = '|' ) and implodeStr( $str, $delimiter = '|' ). The first one explodes string to an array with delimiter char, the difference from PHP explode/implode is that these functions do propper escaping/unescaping of all values.
</p>
<p>
<b>ezbinaryfile:</b><br />
toString function of this datatype return string of format:<br />
filepath|original_filename<br />
filepath is to a file in filesystem so you can make copy of the file.<br />
original_filename is the original filename of uploaded file as string.<br />
To import binary file to the attribute you need to supply it with full path <br />to the source file, which will be copied into system.
</p>
<p>
<b>ezboolean:</b><br />Returns and accepts 1 or 0 for true and false accordingly.
</p>
<p>
<b>ezcountry:</b><br />
Returns comma-separated list of selected countries locale strings, ex.:<br />rus-RU,eng-GB,nor-NO
</p>
<p>
<b>ezdate:</b><br />Returns and accepts unix timestamp of the date.
</p>
<p>
<b>ezdatetime:</b><br />Returns and accepts unix timestamp of the date.
</p>
<p>
<b>ezemail</b>:<br />Returns and accepts email address.
</p>
<p>
<b>ezenum:</b><br />Not supported (deprecated)
</p>
<p>
<b>ezfloat:</b><br />Returns and accepts float number.
</p>
<p>
<b>ezimage:</b><br />Returns path to file containing original alias (size) of the image, so it can be copied. Accepts full path to original image you want to import, it will be copied into system.
</p>
<p>
<b>ezinisetting:</b><br />Returns and accepts value of an inisetting.
</p>
<p>
<b>ezinteger:</b><br />Returns and accepts integer value.
</p>
<p>
<b>ezisbn:</b><br />Returns and accepts ISBN number as string
</p>
<p>
<b>ezkeyword:</b><br />Returns and accepts comma separated list of keywords.
</p>
<p>
<b>ezmatrix:</b><br />Identical to ezauthor datatype. The columns are sparated with '|' and rows are separated with '&'
</p>
<p>
<b>ezmedia:</b><br />
toString function of this datatype return string of format:<br />
filepath|original_filename<br />
filepath is to a file in filesystem so you can make copy of the file.<br />
original_filename is the original filename of uploaded file as string.<br />
To import binary file to the attribute you need to supply it with full path <br />to the source file, which will be copied into system.
</p>
<p>
<b>ezmultioption:</b><br />
The first '&' separated value is the name of multioption set, then each '&' separated string represents <br />
each option in multioption set. This string it self is '|' separated value, that consist of, in this order:<br />
_name_ of the option and the _id_ of option item which should be selected by default. After these two <br />values we have option_value and additional price for the option item.
</p>
<p>
<b>ezmultiprice:</b><br />
The structure of a data handled by this data type is<br />
currency_name_1|value_1|type_of_price_1|currency_name_2|value_2|type_of_price_2|......currency_name_n|value_n|type_of_price_n|<br />
Where currency_name is thre char currency name like EUR,USD and so on,<br />
value is the price in this currency, <br />
and type can be AUTO or CUSTOM dependin on if the price in this currency <br />has been inserted by user or calculated automaticaly.
</p>
<p>
<b>ezobjectrelation:</b><br />Returns and accepts ID of related object.
</p>
<p>
<b>ezobjectrelationlist:</b><br />'-' separated list of related object ID's.
</p>
<p>
<b>ezoption:</b><br />'|' separated list of name of the option and then | sparated list of option_item|additional item price values.
</p>
<p>
<b>ezprice:</b><br />'|' separated list of price, VAT id, and flag wether VAT is included to the price or not.
</p>
<p>
ezproductcategory:<br />
Returns '|' separated string with product category name and category id. Accepts just category <br />name as a papameter.
</p>
<p>
<b>ezrangeoption:</b><br />'|' separated string contains name of the option, start,stop and step values for the option.
</p>
<p>
<b>ezselection:</b><br />'|' separated list of selected item names.
</p>
<p>
<b>ezstring:</b><br />Returns and accepts the string value.
</p>
<p>
<b>eztext:</b><br />Returns and accepts the string value of eztext field.
</p>
<p>
<b>eztime:</b><br />String with the time of the day in HH:MM , 24h format
</p>
<p>
<b>ezurl:</b><br />string containing the url
</p>
<p>
<b>ezuser:</b><br />'|' separated string with user login, email, password hash, and password hash type.
</p>
<p>
<b>ezxmltext:</b><br />Returns valid ez publish xml, and expects the same as input.
</p>
Fri, 29 Jan 2010 18:23:15 GMTExtended sort
https://ezpedia.org/ez/extended_sort
https://ezpedia.org/ez/extended_sort<a name="eztoc433795_1" id="eztoc433795_1"></a><h2>Requirements</h2>
<p>
For taking proper advantage of this feature you should know something about:
</p>
<ul>
<li>writing an extended_attribute_filter (<a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/modules/content/fetch_functions/list" target="_blank">fetch content list</a>)</li>
<li>SQL</li>
<li>the eZ Publish <a href="https://ez.no/ezpublish/documentation/reference/database_diagram" target="_blank">database layout</a></li>
</ul>
<a name="eztoc433795_2" id="eztoc433795_2"></a><h2>Function</h2>
<p>
There is an undocumented feature in the eZ Publish <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/modules/content/fetch_functions/list" target="_self">fetch content list</a> function for sorting on arbitrary sql statements. On regular fetches this feature is not available. However, when including an extended_attribute_filter parameter in the fetch, eZ Publish allows the user to sort on any arbitrary sql clause.
</p>
<a name="eztoc433795_3" id="eztoc433795_3"></a><h2>Use</h2>
<p>
Add an empty 'extended_attribute_filter' parameter in the fetch like this: <i>'extended_attribute_filter', hash()</i>. Then add a 'sort_by' parameter, like this: <i>'sort_by', $sql_statement</i>.
</p>
<p>
The sql string in the $sql_statement variable is inserted directly in the ORDER BY sql clause. Tables included by a regular <a href="https://ez.no/doc/ez_publish/technical_manual/4_x/reference/modules/content/fetch_functions/list" target="_self">fetch content list</a> are:
</p>
<ul>
<li>ezcontentobject_tree</li>
<li>ezcontentobject</li>
<li>ezcontentobject_name</li>
<li>ezcontentclass</li>
</ul>
<p>
which means that any fields within these tables can be used in the $sql_statement string. If a <i>sort_by attribute</i> is involved, the ezcontentobject_attribute table are also included.
</p>
<p>
Furthermore, if required one can add other tables in an extended_attribute_filter's code, giving you access to sort on any field or combination of fields in the database.
</p>
<a name="eztoc433795_4" id="eztoc433795_4"></a><h2>Examples</h2> <pre class="eztemplate" style="font-family:monospace;">fetch( 'content', 'list', hash( 'parent_node_id', 2,
'sort_by', array( 'ezcontentclass.identifier ', true() ),
'extended_attribute_filter', hash()
) )
</pre>
<p>
This example will sort the resulting node list by the class identifier string. Note that this will not work if the extended_attribute_filter parameter is not included.
</p>
<pre class="eztemplate" style="font-family:monospace;">fetch( 'content', 'list', hash( 'parent_node_id', 2,
'sort_by', array( array( 'cast( a0.data_text as unsigned )', true() ),
array( 'attribute', true(), 'article/select_attribute' ) ),
'extended_attribute_filter', hash()
) )
</pre>
<p>
This sorts an attribute of the selection datatype in the article class by the selection id as a number (and not by selection id as a string, as is default for this datatype, which makes the sort fail on id's above 9). The second sort element tricks the fetch into including the ezcontentobject_attribute table in the sql, named as a0, but will not have any effect on the actual sorting.
</p>
<pre class="eztemplate" style="font-family:monospace;">fetch( 'content', 'list', hash( 'parent_node_id', 2,
'sort_by', array( 'obj.name ', true() ),
'extended_attribute_filter', hash( 'id', 'ObjectRelationSortFilter',
'params', hash( 'relation_attribute_id', 337,
'related_class_attribute_id', 343 ) )
) )</pre>
<p>
Here is an example on how to sort the nodes by an attribute of the related objects in an object relations attribute.
</p>
<p>
This example requires an extended_attribute_filter to include the right tables, the main function of the code for this follows...see the extended_attribute_filter documentation for setting up this.
</p>
<pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> sqlObjectRelationSort<span style="color: #009900;">(</span><span style="color: #000088;">$params</span><span style="color: #009900;">)</span>
<span style="color: #009900;">{</span>
<span style="color: #000088;">$sqlTables</span><span style="color: #339933;">=</span> <span style="color: #0000ff;">", ezcontentobject_tree AS node
LEFT JOIN ( ezcontentobject_link AS link, ezcontentobject AS obj, ezcontentobject_attribute AS attr )
ON ( node.contentobject_id = link.from_contentobject_id AND
node.contentobject_version = link.from_contentobject_version AND
link.contentclassattribute_id = <span style="color: #006699; font-weight: bold;">{$params['relation_attribute_id']}</span> AND
link.to_contentobject_id = obj.id AND
obj.id = attr.contentobject_id AND
obj.current_version = attr.version AND
attr.contentclassattribute_id = <span style="color: #006699; font-weight: bold;">{$params['related_class_attribute_id']}</span> )"</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sqlJoins</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">' ezcontentobject_tree.node_id = node.node_id AND '</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> <a href="https://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span> <span style="color: #0000ff;">'tables'</span> <span style="color: #339933;">=></span> <span style="color: #000088;">$sqlTables</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'joins'</span> <span style="color: #339933;">=></span> <span style="color: #000088;">$sqlJoins</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'columns'</span> <span style="color: #339933;">=></span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #009900;">}</span>
</pre>
<p>
As you see, this filter requires two parameters. relation_attribute_id is used to specify the attribute id of the object relation. related_class_attribute_id is used to specify the attribute id of the related object that is to be sorted on. This function requires that all nodes are of the same class, and all related objects in the specified object relation attribute are of the same class.
</p>
<p>
This can potentially be further expanded to sort on the attributes of the children of the nodes. This is left as an excercise for the reader.
</p>
<a name="eztoc433795_5" id="eztoc433795_5"></a><h2>Debugging</h2>
<p>
Whenever developing extended_attribute_filters or extended sorting, switch on the SQL output in the debug in settings/override/site.ini.append.php:
</p>
<pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">[</span>DatabaseSettings<span style="">]</span></span>
<span style="color: #000099;">SQLOutput</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">enabled</span>
<span style="color: #000066; font-weight:bold;"><span style="">[</span>DebugSettings<span style="">]</span></span>
<span style="color: #000099;">DebugOutput</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">enabled</span>
</pre>
<p>
If you can't immediately see what is wrong, copy the complete sql statement from debug and paste it into your favourite SQL program. It is a lot easier to make the sql work there than to test it against eZ Publish.
</p>
Tue, 01 Dec 2009 16:00:35 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:53:57 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 GMTHeath
https://ezpedia.org/people/heath
https://ezpedia.org/people/heath<a name="eztoc386282_1" id="eztoc386282_1"></a><h2>About</h2>
<p>
I develop php web applications using eZ Publish
</p>
<p>
I also help others by answering questions on the ez.no <a href="https://ez.no/developer/forum" target="_blank">forums</a>
</p>
<p>
I am interested in contributing to your documentation project.
</p>
<p>
I'm not certain where I will start writing perhaps within your discussions answering questions.
</p>
<a name="eztoc386282_2" id="eztoc386282_2"></a><h2>Links</h2>
<ul>
<li>Google search of ez.no <a href="https://www.google.com/search?q=Heath&as_sitesearch=ez.no/developer/forum" target="_blank">forums</a> for my support of the eZ Community. </li>
<li>I try to answer as many questions and help as many people as possible with eZ Publish.</li>
</ul>
Sat, 22 Aug 2009 10:59:01 GMTInstall
https://ezpedia.org/ez/install
https://ezpedia.org/ez/install
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc386242_1" id="eztoc386242_1"></a><h2>About</h2>
<p>
Helpful information about installing the eZ Publish CMS
</p>
<a name="eztoc386242_2" id="eztoc386242_2"></a><h2>Articles</h2>
<ul>
<li><a href="https://www.howtoforge.com/installing-ez-publish-on-ubuntu-7.10" target="_blank">https://www.howtoforge.com/installing-ez-publish-on-ubuntu-7.10</a></li>
<li><a href="https://wiki.gandi.net/en/hosting/using-linux/tutorials/gandiai/ezpublish" target="_blank">https://wiki.gandi.net/en/hosting/using-linux/tutorials/gandiai/ezpublish</a></li>
<li><a href="https://www.installationwiki.org/Installing_eZ_publish" target="_blank">https://www.installationwiki.org/Installing_eZ_publish</a></li>
<li><a href="https://www.ezsystems.ca/blog/setting_up_an_efficient_environment_for_working_with_ez_publish" target="_blank">https://www.ezsystems.ca/blog/setting_up_an_efficient_environment_for_working_with_ez_publish</a></li>
<li><a href="https://www.siteground.com/tutorials/ezpublish/ezpublish_installation.htm" target="_blank">https://www.siteground.com/tutorials/ezpublish/ezpublish_installation.htm</a></li>
</ul>
<a name="eztoc386242_3" id="eztoc386242_3"></a><h2>References</h2>
<ul>
<li>N/A</li>
</ul>
Sat, 22 Aug 2009 09:45:07 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="/en/layout/set/print/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="/en/layout/set/print/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>
Thu, 20 Aug 2009 23:24:01 GMTCoding standards
https://ezpedia.org/ez/coding_standards
https://ezpedia.org/ez/coding_standards
<div class="object-right">
<p class="editor_motivation">
What follows is based on certified results and has been tested and proven in practice. Please discuss any corrections and additionally needed information before making changes.
</p>
</div><a name="eztoc385874_1" id="eztoc385874_1"></a><h2>About</h2>
<p>
About software coding standards
</p>
<a name="eztoc385874_2" id="eztoc385874_2"></a><h2>General</h2>
<p>
Enforcing a software coding convention is a recommended best prance
</p>
<a name="eztoc385874_3" id="eztoc385874_3"></a><h2>What convention should I use?</h2>
<p>
The answer is simple. It's your choice. Your free to choose.
</p>
<p>
Yet it is strongly recommended that you follow the recommended convention.
</p>
<p>
If you are creating an ezpublish extension / site use the ezpublish conventions as they are directly applicable.
</p>
<p>
However if you are creating an ezcomponent itself you will want to use the ezcomponents conventions as they are directly applicable.
</p>
<a name="eztoc385874_4" id="eztoc385874_4"></a><h2>eZ Publish</h2>
<p>
eZ publish has it's own coding standard convention. This convention has evolved over time but the documentation regarding these improved methodologies.
</p>
<a name="eztoc385874_5" id="eztoc385874_5"></a><h2>eZ Components</h2>
<p>
eZ Components also has it's own coding standard convention
</p>
<a name="eztoc385874_6" id="eztoc385874_6"></a><h2>External references</h2>
<ul>
<li>Forum: <a href="https://ez.no/developer/forum/developer/ezpublish_coding_standards_up_to_date_where" target="_blank">eZ Publish Coding Standards, Up to date, Where.</a></li>
<li>Doc: <a href="https://ez.no/ezpublish/documentation/development/standards/php" title="https://ez.no/ezpublish/documentation/development/standards/php" target="_self">https://ez.no/ezpublish/documentation/development/standards/php</a></li>
<li>Doc: <a href="https://ezcomponents.org/contributing/coding_standards#id8" title="https://ezcomponents.org/contributing/coding_standards#id8" target="_self">https://ezcomponents.org/contributing/coding_standards#id8</a></li>
</ul>
Thu, 20 Aug 2009 22:59:04 GMTeZ Components
https://ezpedia.org/ez/ez_components
https://ezpedia.org/ez/ez_components
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div>
<p>
<i>For a general description of eZ Components, we recommend</i>, <a href="https://en.wikipedia.org/wiki/EZ_Publish" target="_self">eZ Publish on Wikipedia</a> or <a href="https://ezcomponents.org/about" target="_self">eZ Components</a> on eZComponents.org.
</p>
<a name="eztoc385826_1" id="eztoc385826_1"></a><h2>About</h2><a name="eztoc385826_2" id="eztoc385826_2"></a><h2>eZ Publish</h2>
<p>
eZ Publish 4 adds a new installation requirements including eZ Components which must be installed and available.
</p>
<a name="eztoc385826_3" id="eztoc385826_3"></a><h2>Articles</h2><a name="eztoc385826_4" id="eztoc385826_4"></a><h2>Reviews</h2><a name="eztoc385826_5" id="eztoc385826_5"></a><h2>References</h2>Thu, 20 Aug 2009 16:32:47 GMTeZ Publish
https://ezpedia.org/ez/ez_publish
https://ezpedia.org/ez/ez_publish
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div>
<p>
<i>For a general description of eZ Publish, we recommend</i>, <a href="https://en.wikipedia.org/wiki/EZ_Publish" target="_self">eZ Publish on Wikipedia</a>.
</p>
<a name="eztoc385802_1" id="eztoc385802_1"></a><h2>About</h2>
<p>
eZ Systems website ez.no is a primary source of resources related to everything eZ Publish.
</p>
<a name="eztoc385802_2" id="eztoc385802_2"></a><h2>Install</h2>
<ul>
<li>Checkout this article about <a href="/en/layout/set/print/ez/install" target="_self">Installation</a> it has great 3rd party articles about installing eZ Publish.</li>
</ul>
<a name="eztoc385802_3" id="eztoc385802_3"></a><h2>Vendors</h2>
<p>
eZ systems is the creator and primary supplier of eZ Publish software and services. eZ Systems has a number of partners worldwide which also offer additional services, software and support.
</p>
<a name="eztoc385802_4" id="eztoc385802_4"></a><h2>Articles</h2>
<ul>
<li>None</li>
</ul>
<a name="eztoc385802_5" id="eztoc385802_5"></a><h2>References</h2>
<ul>
<li>None</li>
</ul>
Thu, 20 Aug 2009 15:14:00 GMTWei Dai
https://ezpedia.org/people/wei_dai
https://ezpedia.org/people/wei_dai
<p>
<b>About Me:</b>
</p>
<p>
I come from China and live in China. David Adam is my English Name. :)
</p>
<ul>
<li>Date of Birth: 1979-02-14</li>
<li>Home Town: Xiangtan, Hunan, Provence - Do you know the first Communist Leader of China, Mao? This is where he came from.</li>
<li>Employer: <a href="https://bysoft.fr" target="_blank">Bysofts</a> Since 2008</li>
</ul>
<p>
I am interested in many things, including philosophy, sociology and economics.I am also a Zend Ceritified PHP5 engineer and Certified eZ Publish Developer. ^_^
</p>
<a name="eztoc385514_0_0_1" id="eztoc385514_0_0_1"></a><h4>What I want to do:</h4>
<p>
I can translate articles in English into Chinese, write articles in English and Chinese, and perhaps share some extensions from our own projects.
</p>
<a name="eztoc385514_0_0_2" id="eztoc385514_0_0_2"></a><h4>Show your appreciation:</h4>
<p>
If you want to show your appreciation for the things I help you with ...
</p>
<p>
</p>
<p>
Then please think about <i>doing</i> something back:
</p>
<p>
</p>
<ul>
<li> </li>
<li>
Correct the mistakes I made in some articles or comments. :)<br /> </li>
<li>Support our work, fund development and documentation which meets your own unique needs.</li>
<li> Share your own extensions as <i>free</i> software</li>
<li> Support organizations that support free up control of media and information in China. Pro liberty.</li>
</ul>
<p>
</p>
<p>
Free your mind and spread freedom.
</p>
<p>
</p>
<p>
Thank you!
</p>
<a name="eztoc385514_0_1" id="eztoc385514_0_1"></a><h3>Website</h3>
<p>
<a href="https://readtheweb.info" target="_self">readtheweb</a> My personal blog on web development and other interesting things.
</p>
Thu, 20 Aug 2009 04:16:19 GMTFAQ For eZ Publish 3
https://ezpedia.org/ez/faq_for_ez_publish_3
https://ezpedia.org/ez/faq_for_ez_publish_3
<p>
This page contains answers to some of the most frequently-asked questions from the forum.
</p>
<a name="eztoc385034_1" id="eztoc385034_1"></a><h2>Preventing php maximum execution time exceeded errors </h2>
<p>
If loading a page takes very long and then finally you get an fatal error "Maximum execution time of 30 seconds exceeded". What to do now?
</p>
<p>
If your looking for solution to preventing php <a href="/en/layout/set/print/ez/maximum_execution_time_exceeded" target="_self">maximum execution time exceeded</a> errors, Increasing the <a href="https://www.php.net/manual/en/ref.info.php#ini.max-execution-time" target="_self">max_execution_time</a> PHP setting will mostly fix this problem. However, sometimes there are other solutions to the <a href="/en/layout/set/print/ez/maximum_execution_time_exceeded" target="_self">maximum execution time exceeded</a> errors. You may also see this <a href="https://ez.no/community/forum/install_configuration/fatal_error_maximum_execution_time_of_30_seconds" target="_self">forum thread</a>.
</p>
<a name="eztoc385034_2" id="eztoc385034_2"></a><h2>How do I remove index.php from URLs?</h2>
<p>
Have a look at <a href="https://ezpedia.org/wiki/en/ez/solution_removing_index_php_from_urls" target="_self">this article</a>.
</p>
<a name="eztoc385034_3" id="eztoc385034_3"></a><h2>Improving eZ publish environment and performance</h2>
<p>
If your having performance problems review this <a href="https://ez.no/community/forum/setup_design/improving_ez_publish_environment_and_performance" target="_self">forum discussion</a>.
</p>
<a name="eztoc385034_4" id="eztoc385034_4"></a><h2>Improving web server performance</h2>
<p>
If your looking for the very best eZ Publish <a href="/en/layout/set/print/ez/web_server_requirements" target="_self">web server</a> <a href="/en/layout/set/print/ez/performance" target="_self">performance</a> have a look at this <a href="/en/layout/set/print/ez/lighthttpd" target="_self">article on lighttpd</a>.
</p>
<a name="eztoc385034_5" id="eztoc385034_5"></a><h2>Disabling language selection when creating content objects</h2>
<p>
If your looking for a way to <a href="https://ez.no/community/forum/setup_design/disabling_language_selection_in_forum" target="_self">disabling language selection</a> durring the creation of content objects in the admin, forum, etc see this forum thread.
</p>
<a name="eztoc385034_6" id="eztoc385034_6"></a><h2>Retrieving all packages for eZ Publish 3.8</h2>
<p>
If your looking for a way to retrieve all <a href="/en/layout/set/print/solution/package_retrieving_3_8_packages" target="_self">packages for an eZ Publish 3.8</a> installation, consider <a href="/en/layout/set/print/learning/upgrading" target="_self">upgrading</a> x)
</p>
<a name="eztoc385034_7" id="eztoc385034_7"></a><h2>Converting encoding from iso-8859-1 to utf-8</h2>
<p>
If your looking for a way to convert your encoding from iso-8859-1 to utf-8 have a look at this <a href="https://ez.no/community/forum/general/convert_from_iso_8859_1_encoding_to_utf_8" target="_self">forum thread</a>.
</p>
<a name="eztoc385034_8" id="eztoc385034_8"></a><h2>Importing content into eZ Publish</h2>
<p>
If your looking for solutions to importing content into eZ Publish have a detailed review of <a href="/en/layout/set/print/ez/import" target="_self">this article on import</a>.
</p>
<a name="eztoc385034_9" id="eztoc385034_9"></a><h2>Supporting a payment gateway in eZ publish</h2>
<p>
If your looking for information on how to support a payment gateway in eZ Publish have a <a href="/en/layout/set/print/ez/payment_gateway" target="_self">thorough review of this article</a> and it's references.
</p>
<a name="eztoc385034_10" id="eztoc385034_10"></a><h2>Comparing eZ publish with other software packages</h2>
<p>
Have a look at <a href="/en/layout/set/print/ez/comparison" target="_self">this article</a> with references to several different discussions on this topic.
</p>
<a name="eztoc385034_11" id="eztoc385034_11"></a><h2>Variable $node is not provided in pagelayout.tpl</h2>
<p>
This is just <a href="https://ez.no/deveAloper/forum/developer/caching_problem" target="_self">one</a> of <a href="https://ez.no/developer/forum/install_configuration/no_more_node_variable_in_pagelayout" target="_self">several</a> different <a href="https://ez.no/developer/forum/setup_design/folder_attribute_is_empty_when_page_is_reloaded" target="_self">examples</a> of a rather long story ends with the user creating and populating this variable by custom modification within their own pagelayout.tpl as this variable is no longer provided by the <a href="https://ez.no/ezpublish/documentation/customization/custom_design/template_variables_set_by_ezpublish" target="_self">default template variables set by eZ Publish</a> internally.
</p>
Wed, 19 Aug 2009 07:25:47 GMTutf8
https://ezpedia.org/ez/utf8
https://ezpedia.org/ez/utf8
<div class="object-right">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div>
<p>
For a general description of utf8 we recommend <a href="https://en.wikipedia.org/wiki/UTF-8" target="_self">utf8 on Wikipedia</a>.
</p>
<a name="eztoc384272_1" id="eztoc384272_1"></a><h2>About</h2>
<p>
utf8
</p>
<a name="eztoc384272_2" id="eztoc384272_2"></a><h2>About</h2>
<ul>
<li>N/A</li>
</ul>
Tue, 18 Aug 2009 11:17:33 GMTHow to send email to users
https://ezpedia.org/ez/how_to_send_email_to_users
https://ezpedia.org/ez/how_to_send_email_to_users<a name="eztoc384120_1" id="eztoc384120_1"></a><h2>About</h2>
<p>
Often customers ask to send users to website users.
</p>
<p>
This can be achieved by one of any number of means.
</p>
<a name="eztoc384120_2" id="eztoc384120_2"></a><h2>Question</h2>
<p>
I need to send an email to all registered members of a customer ecommerce site with existing users, forums and shop orders. How can this be achieved?
</p>
<a name="eztoc384120_3" id="eztoc384120_3"></a><h2>Solutions</h2>
<ul>
<li>Take a look at the features offered by the more recently updated phplist extension.</li>
</ul>
<a name="eztoc384120_4" id="eztoc384120_4"></a><h2>References</h2>
<ul>
<li><a href="https://projects.ez.no/phplist" title="https://projects.ez.no/phplist" target="_self">https://projects.ez.no/phplist</a></li>
</ul>
Mon, 17 Aug 2009 15:47:09 GMTHow to enable large file upload support
https://ezpedia.org/ez/how_to_enable_large_file_upload_support
https://ezpedia.org/ez/how_to_enable_large_file_upload_support
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc384096_1" id="eztoc384096_1"></a><h2>About</h2>
<p>
Web applications basically must usually be configured to support large file uploads as well as web servers.
</p>
<p>
I can't begin to remember to forget the first time I configured eZ Publish v1.x and Apache 1.x to support large file uploads.
</p>
<a name="eztoc384096_2" id="eztoc384096_2"></a><h2>Example</h2>
<p>
Here is an example solution
</p>
<a name="eztoc384096_2_1" id="eztoc384096_2_1"></a><h3>Steps</h3>
<p>
It sounds like you want to optimize your web server and php configurations together to avoid this error.
</p>
<ol>
<li>Evaluation: Which version of apache are you running?
<ol>
<li>Apache 1.3.x</li>
</ol>
<ul>
<li>This sounds strikingly similar to an apache 1.3 (large file upload) configuration issue I've learned to avoid over the years. set LimitRequestBody to an int (file size in bytes) value larger than your largest file.</li>
<li>I found I often needed this apache settings change along with the php settings changes to enable large file uploads with apache 1.3</li>
<li>Based on the size of the file being uploaded. Consider raising the values of the post_max_size to a larger value than the file being uploaded, as well as the value of max_input_time and max_execution_time beyond the amount of time required to complete the upload of the file.</li>
</ul>
</li>
<li>eZ 4.x, Edit ... to enable large file support withing web application.
<ol>
<li>Example missing. Must not be required (per say)</li>
</ol>
</li>
<li>PHP 5.x, Edit relevant php.ini configuration values
<ol>
<li> <pre class="ini" style="font-family:monospace;"><span style="color: #000099;">max_execution_time</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> <span style="">45</span> </span><span style="color: #666666; font-style: italic;">; Maximum execution time of each script, in seconds</span>
<span style="color: #000099;">max_input_time</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> <span style="">60</span> </span><span style="color: #666666; font-style: italic;">; Maximum amount of time each script may spend parsing request data</span>
<span style="color: #666666; font-style: italic;">;max_input_nesting_level = 64 ; Maximum input variable nesting level</span>
<span style="color: #000099;">memory_limit</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 258M </span><span style="color: #666666; font-style: italic;">; Maximum amount of memory a script may consume (128MB)</span>
<span style="color: #666666; font-style: italic;">; Maximum size of POST data that PHP will accept.</span>
<span style="color: #000099;">post_max_size</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 201M</span>
<span style="color: #666666; font-style: italic;">; Whether to allow HTTP file uploads.</span>
<span style="color: #000099;">file_uploads</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> On</span>
<span style="color: #666666; font-style: italic;">; Temporary directory for HTTP uploaded files (will use system default if not</span>
<span style="color: #666666; font-style: italic;">; specified).</span>
<span style="color: #666666; font-style: italic;">;upload_tmp_dir =</span>
<span style="color: #666666; font-style: italic;">; Maximum allowed size for uploaded files.</span>
<span style="color: #000099;">upload_max_filesize</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 201M</span>
</pre></li>
</ol>
</li>
<li>Clear eZ Caches and Restart Apache services</li>
</ol>
<a name="eztoc384096_3" id="eztoc384096_3"></a><h2>References</h2>
<ul>
<li>Forum: <a href="https://ez.no/developer/forum/general/how_upload_big_multimedia_file" target="_blank">How upload big multimedia file</a></li>
<li>Doc: <a href="/en/layout/set/print/view-source:https://httpd.apache.org/docs/1.3/mod/core.html#limitrequestbody" target="_self">https://httpd.apache.org/docs/1.3/mod/core.html#limitrequestbody</a></li>
<li>Forum: <a href="/en/layout/set/print/view-source:https://stackoverflow.com/questions/757111/large-file-upload-errors-with-php" target="_self">https://stackoverflow.com/questions/757111/large-file-upload-errors-with-php</a></li>
<li>Forum: <a href="/en/layout/set/print/view-source:https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Q_23213263.html" target="_self">https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Q_23213263.html</a></li>
</ul>
Mon, 17 Aug 2009 15:31:07 GMTView count
https://ezpedia.org/ez/view_count
https://ezpedia.org/ez/view_count<a name="eztoc383792_1" id="eztoc383792_1"></a><h2>About</h2>
<p>
eZ Publish provides a feature not enabled by default to count page views.
</p>
<a name="eztoc383792_2" id="eztoc383792_2"></a><h2>References</h2>
<ul>
<li>Doc: N/A</li>
<li>Forum: N/A</li>
</ul>
Mon, 17 Aug 2009 00:31:14 GMTeZ publish 3
https://ezpedia.org/ez/ez_publish_3
https://ezpedia.org/ez/ez_publish_3<a name="eztoc383398_1" id="eztoc383398_1"></a><h2>About</h2>
<p>
eZ publish 3 represented a complete re-write when compared to eZ publish 2
</p>
<a name="eztoc383398_2" id="eztoc383398_2"></a><h2>Features</h2>
<p>
eZ publish 3 introduced several core new features
</p>
<ul>
<li>content objects</li>
<li>content module</li>
<li>siteaccess settings</li>
<li>override settings</li>
<li>design extensions</li>
</ul>
Sun, 16 Aug 2009 11:37:35 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="/en/layout/set/print/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="/en/layout/set/print/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="/en/layout/set/print/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>
<p>
</p>
<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>
<p>
</p>
<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>
<p>
</p>
<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>
Thu, 13 Aug 2009 10:51:01 GMTMigrating
https://ezpedia.org/ez/migrating
https://ezpedia.org/ez/migrating
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc381585_1" id="eztoc381585_1"></a><h2>About</h2><a name="eztoc381585_2" id="eztoc381585_2"></a><h2>Reference</h2>Sun, 09 Aug 2009 21:41:46 GMTFeeds
https://ezpedia.org/ez/feeds
https://ezpedia.org/ez/feeds
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc381577_1" id="eztoc381577_1"></a><h2>About</h2>
<p>
Syndicated feeds of content about eZ Publish [1]
</p>
<p>
Members of the community maintain these resources.
</p>
<a name="eztoc381577_2" id="eztoc381577_2"></a><h2>Reference</h2>
<ul>
<li>[1] Article: <a href="/en/layout/set/print/project/ez_ecosystem_rss_feeds" target="_self">eZ Ecosystem OPML of Feeds</a></li>
</ul>
Sun, 09 Aug 2009 21:22:13 GMTAmazon
https://ezpedia.org/ez/amazon
https://ezpedia.org/ez/amazon
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc381377_1" id="eztoc381377_1"></a><h2>About</h2>
<p>
eZ Publish can be used with an Amazon API(s)
</p>
<a name="eztoc381377_2" id="eztoc381377_2"></a><h2>Extensions</h2>
<p>
JV Amazon Advertising allows you to query Amazon huge product catalog by using Amazon Product Advertising API
</p>
<p>
<a href="https://projects.ez.no/jvamazonadvertising" target="_blank">https://projects.ez.no/jvamazonadvertising</a>
</p>
<p>
IB Amazon Website Integration extension allows you to integrate products from Amazon with your site. After enabling this extension you've got an oportunity to search products on Amazon using a keyword and product category selection.
</p>
<p>
<a href="https://ez.no/developer/contribs/solutions/ib_amazon_website_integration" target="_blank">https://ez.no/developer/contribs/solutions/ib_amazon_website_integration</a>
</p>
<p>
xrowCDN connects eZ Publish with a Content Delivery Network
</p>
<p>
<a href="https://projects.ez.no/xrowcdn" target="_blank">https://projects.ez.no/xrowcdn</a>
</p>
<a name="eztoc381377_3" id="eztoc381377_3"></a><h2>Known Issues</h2>
<ul>
<li>N/A</li>
</ul>
<a name="eztoc381377_4" id="eztoc381377_4"></a><h2>References</h2>
<ul>
<li>N/A</li>
</ul>
Sun, 09 Aug 2009 13:13:08 GMTPostgresql
https://ezpedia.org/ez/postgresql
https://ezpedia.org/ez/postgresql
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc381369_1" id="eztoc381369_1"></a><h2>About</h2>
<p>
eZ Publish support Postgresql
</p>
<a name="eztoc381369_2" id="eztoc381369_2"></a><h2>Known Issues</h2>
<ul>
<li>N/A</li>
</ul>
<a name="eztoc381369_3" id="eztoc381369_3"></a><h2>References</h2>
<ul>
<li>N/A</li>
</ul>
Sun, 09 Aug 2009 13:09:21 GMTPHPDoc
https://ezpedia.org/ez/phpdoc
https://ezpedia.org/ez/phpdoc
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc381361_1" id="eztoc381361_1"></a><h2>About</h2>
<p>
In the future eZ Publish will switch to using PHPDoc *
</p>
<a name="eztoc381361_2" id="eztoc381361_2"></a><h2>Description</h2><a name="eztoc381361_3" id="eztoc381361_3"></a><h2>Examples</h2><a name="eztoc381361_4" id="eztoc381361_4"></a><h2>References</h2>
<ul>
<li>Doc: N/A</li>
<li>Forum: N/A</li>
<li>Project: <a href="https://www.phpdoc.org/" target="_self"><i>phpDocumentor</i>: The complete documentation solution for PHP</a></li>
</ul>
Sun, 09 Aug 2009 12:46:11 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>
Sun, 09 Aug 2009 10:23:08 GMTJSON
https://ezpedia.org/ez/json
https://ezpedia.org/ez/json
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc381281_1" id="eztoc381281_1"></a><h2>About</h2>
<p>
About JSON
</p>
<a name="eztoc381281_2" id="eztoc381281_2"></a><h2>Extensions</h2>
<ul>
<li><a href="https://projects.ez.no/ezcore" target="_blank">ezcore</a></li>
<li><a href="https://projects.ez.no/json" target="_blank">json</a></li>
<li><a href="https://projects.ez.no/ggwebservices" target="_blank">ggwebservices</a></li>
<li><a href="https://projects.ez.no/ggxmlview" target="_blank">ggxmlview</a></li>
</ul>
<a name="eztoc381281_3" id="eztoc381281_3"></a><h2>Reference</h2>
<ul>
<li>N/A</li>
</ul>
Sun, 09 Aug 2009 09:45:18 GMTCollected Information
https://ezpedia.org/ez/collected_information
https://ezpedia.org/ez/collected_information
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc381273_1" id="eztoc381273_1"></a><h2>About</h2>
<p>
About collected information
</p>
<a name="eztoc381273_2" id="eztoc381273_2"></a><h2>References</h2>
<ul>
<li>Doc: N/A</li>
</ul>
Sun, 09 Aug 2009 06:50:55 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="/en/layout/set/print/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>
Thu, 06 Aug 2009 11:11:46 GMTGit
https://ezpedia.org/ez/git
https://ezpedia.org/ez/git
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc380381_1" id="eztoc380381_1"></a><h2>About</h2>
<p>
Git for eZ Publish
</p>
<a name="eztoc380381_2" id="eztoc380381_2"></a><h2>Resources</h2>
<ul>
<li><a href="https://git.forge.ymc.ch/" target="_blank">https://git.forge.ymc.ch/</a></li>
</ul>
<a name="eztoc380381_3" id="eztoc380381_3"></a><h2>References</h2>
<ul>
<li>Doc: <a href="https://www.ymc.ch/content/download/519729/3482001/file/gitforez.pdf" target="_self">gitforez.pdf</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/suggestions/switch_to_git" target="_blank">Switch to Git</a></li>
<li>Blog: <a href="https://www.koch.ro/blog/index.php?/archives/109-Community-GIT-repository-for-eZ-Publish.html" target="_self">Community GIT repository for eZ Publish</a> </li>
</ul>
Wed, 05 Aug 2009 06:56:32 GMTDatabase Usage
https://ezpedia.org/ez/database_usage
https://ezpedia.org/ez/database_usage<a name="eztoc379813_1" id="eztoc379813_1"></a><h2>About</h2>
<p>
Database Disk Usage can be minimized by regularly removing temporary information stored.
</p>
<a name="eztoc379813_2" id="eztoc379813_2"></a><h2>References</h2>
<ul>
<li>Article: <a href="/en/layout/set/print/ez/disk_usage" target="_self">Disk Usage</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/general/huge_database" target="_blank">Huge Database</a></li>
<li>Forum: <a href="https://ez.no/community/forum/developer/cleanup_database" target="_self">Cleanup database?</a></li>
<li>Forum: <a href="https://ez.no/community/forum/general/ezsession_table_size_700_mb" target="_self">ezsession table size (700+ MB)</a></li>
</ul>
Mon, 03 Aug 2009 10:47:06 GMTBash Profile
https://ezpedia.org/ez/bash_profile
https://ezpedia.org/ez/bash_profile<a name="eztoc376077_0_1" id="eztoc376077_0_1"></a><h3>eZ Publish Community Bash Profile</h3>
<p>
A simple standardized bash profile addition with useful modifications for use with eZ Publish.
</p>
<a name="eztoc376077_0_2" id="eztoc376077_0_2"></a><h3>Bash</h3>
<p>
Example #1, Standardized bash profile
</p>
<pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># 2009.07.19 | Initial example idea (very ruff, apologies)</span>
<span style="color: #666666; font-style: italic;"># regularly run scripts, cronjobs, and or other commands</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> ezpgenerateautoloads.php = <span style="color: #ff0000;">"php ./bin/php/ezpgenerateautoloads.php $1"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> ga = <span style="color: #ff0000;">"php ./bin/php/ezpgenerateautoloads.php $1"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> clearcache.sh = <span style="color: #ff0000;">"php ./bin/php/ezcache.php $1"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> clearcache = <span style="color: #ff0000;">"php ./bin/php/ezcache.php $1"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> ezcache = <span style="color: #ff0000;">"php ./bin/php/ezcache.php $1"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> clr = <span style="color: #ff0000;">"php ./bin/php/ezcache.php $1"</span>;
<span style="color: #666666; font-style: italic;"># commands</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">removesvndirs</span>=<span style="color: #ff0000;">"find . -name *~ -print0|xargs -0 rm -vrf"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">cleandirs</span>=<span style="color: #ff0000;">"find . -name *~ -print0|xargs -0 rm -vrf; find . -name *.svn -print0|xargs -0 rm -vrf; find . -name *.DS* -print0|xargs -0 rm -vrf;"</span>
<span style="color: #666666; font-style: italic;"># logs</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> tailapache = <span style="color: #ff0000;">"tail -n 300 /var/log/apache/error_log $1"</span>;
<span style="color: #7a0874; font-weight: bold;">alias</span> tailezp = <span style="color: #ff0000;">"tail -n 350 ./var/log/error.log & tail -n 350 ./var/log/storage.log & tail -n 350 ./var/log/warning.log & tail -n 350 ./var/log/notice.log &"</span>;
</pre>
<p>
Example #1, Standardized bash profile
</p>
<a name="eztoc376077_0_3" id="eztoc376077_0_3"></a><h3>Tcsh</h3>
<p>
Example #2, Standardized tcsh profile
</p>
<pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Example</span>
</pre>
<p>
Example #2, Standardized tcsh profile
</p>
<a name="eztoc376077_1" id="eztoc376077_1"></a><h2>Reference</h2>
<ul>
<li>Bash</li>
<li>Sh</li>
<li>Tcsh</li>
</ul>
Sun, 19 Jul 2009 21:10:05 GMTProfile
https://ezpedia.org/ez/profile
https://ezpedia.org/ez/profile
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc376037_1" id="eztoc376037_1"></a><h2>eZ Publish User 'Profile'.</h2>
<p>
In most cases with eZ Publish users themselves are simply content objects of class '<a href="https://ez.no/doc/ez_publish/technical_manual/4_0/reference/content_classes/users/user" target="_blank">User</a>' which may be defined or redefined as needed.
</p>
<a name="eztoc376037_2" id="eztoc376037_2"></a><h2>eZ Publish Community Bash Profile</h2>
<p>
A simple standardized <a href="/en/layout/set/print/ez/bash_profile" target="_self">shell profile</a> examples.
</p>
<a name="eztoc376037_3" id="eztoc376037_3"></a><h2>References</h2>
<ul>
<li>Doc: <a href="https://ez.no/doc/ez_publish/technical_manual/4_0/images/concepts_and_basics/class_edit_interface" target="_blank">Editing Class Definitions</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/setup_design/solved_edit_user_profile_disable_version" target="_self">[SOLVED] Edit User <i>profile</i> -> disable version / Setup & design / Forum</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/setup_design/howto_profile_page" target="_self">HowTo <i>profile</i> page? / Setup & design / Forum</a></li>
</ul>
Sun, 19 Jul 2009 21:05:16 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, 19 Jul 2009 18:38:48 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>Fri, 17 Jul 2009 11:41:35 GMTeZ ODF
https://ezpedia.org/project/ez_odf
https://ezpedia.org/project/ez_odf
<div class="object-center">
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div>
<div class="object-center">
<p class="version_info">
This feature is available since <a href="/en/layout/set/print/ez/ez_publish_3_9" target="_self">eZ publish 3.9</a>.
</p>
</div>
<p>
The Open Document Format extension or in short ezodf allows you to import and export eZ publish content objects to the <a href="/en/layout/set/print/ez/opendocument" target="_self">OASIS Open Document Format</a>. From eZ publish 3.9 on, ezodf is included in the standard eZ publish distribution.
</p>
<p>
Before it's inclusion in eZ publish 3.9, the ezodf extension was called oo. The extension first allowed import and export of OpenOffice.org Writer documents (<a href="https://ez.no/community/contribs/import_export/openoffice_org_extension" target="_self">OpenOffice.org extension contribution page at ez.no</a>), but later on it moved to the OpenDocument format (<a href="https://ez.no/community/contribs/import_export/oasis_open_document_extension" target="_self">OASIS OpenDocument extension contribution page at ez.no</a>).
</p>
<div class="object-center"><a name="eztoc223934_1" id="eztoc223934_1"></a><h2>About</h2>
<p>
For some of the nice feature of the ODF extension, like MS Word import and export and PDF generation via OpenOffice.org you need OpenOffice.org installed on your server and running as daemon.
</p>
<p>
You can follow the <a href="https://ez.no/doc/extensions/odf_import_export" target="_self">installation guide</a> from the official ezodf documentation.
</p>
<a name="eztoc223934_2" id="eztoc223934_2"></a><h2>Solution: Converting MS Word or PDF on Mac</h2>
<p>
These instructions were written from the perspective of attempting to manipulating ms word or pdf documents on Mac OS X 10.4.11 Intel
</p>
<p>
First install open office, you may prefer to install this MacOS port of open office called, neooffice / <a href="https://www.neooffice.org/neojava/" target="_blank">neojava</a>.
</p>
<a name="eztoc223934_2_1" id="eztoc223934_2_1"></a><h3>Step 1, Install <a href="https://www.neooffice.org/neojava/" target="_self">NeoJava</a></h3><a name="eztoc223934_2_2" id="eztoc223934_2_2"></a><h3>Step 2, Follow eZ ODF <a href="https://ez.no/doc/extensions/odf_import_export" target="_self">Installation documentation</a> steps almost to completion (wait till next step before starting daemon).</h3>
<ul>
<li>Install extension, macro, daemon, etc</li>
</ul>
<a name="eztoc223934_2_2_1" id="eztoc223934_2_2_1"></a><h4>Optional, Step 3, Before starting the daemon via command shell ...</h4>
<p>
Edit the file, extension/ezodf/daemon.php with a PHP editor and change line 40:
</p>
<pre class="text" style="font-family:monospace;">$ooexecutable = "openoffice.org-2.0";
to
$ooexecutable = "/Applications/NeoOffice.app/Contents/MacOS/soffice";</pre><a name="eztoc223934_2_3" id="eztoc223934_2_3"></a><h3>Summary</h3>
<p>
That's all and now you can work with it.
</p>
<a name="eztoc223934_2_3_2" id="eztoc223934_2_3_2"></a><h4>Works sometimes</h4>
<ul>
<li>Export PDF with errors in charset … ô </li>
<li>Export .doc with errors in charset</li>
<li>Import .doc, no socket</li>
</ul>
<a name="eztoc223934_2_3_3" id="eztoc223934_2_3_3"></a><h4>Templates</h4>
<p>
Also perhaps you want to offer some money for the open funding of new PDF templates for cooler PDFs out of eZ Publish:
</p>
<ul>
<li><a href="https://ez.no/developer/open_funding/open_funding_projects/pdf_templating_export" target="_self">https://ez.no/developer/open_funding/open_funding_projects/pdf_templating_export</a></li>
</ul>
<a name="eztoc223934_2_4" id="eztoc223934_2_4"></a><h3>Tested</h3>
<p>
This article was tested with the following
</p>
<ol>
<li>October 2007: XAMPP for MacOS X 0.7.0, 7</li>
</ol>
<ul>
<li>eZ Publish Version: 4.0.0rc1</li>
<li>PHP Version: 5.2.4</li>
</ul>
<ol>
<li>October 2007: XAMPP for MacOS X 0.7.0, 7</li>
</ol>
<ul>
<li>Functionality tested, Import / Export .doc and Export PDF</li>
<li>Webserver software, ApacheFriends' <a href="https://www.apachefriends.org/de/xampp-macosx.html" target="_blank">Xampp</a></li>
<li>eZ Publish Version: 3.10.0</li>
<li>PHP Version: 4.4.7</li>
</ul>
<a name="eztoc223934_3" id="eztoc223934_3"></a><h2>Issues</h2>
<ul>
<li>Perhaps of bug in Online Editor < 5.0</li>
</ul>
</div></div><a name="eztoc374889_1" id="eztoc374889_1"></a><h2>Installation Dependencies</h2>
<ul>
<li>Error: "sh: openoffice.org-2.0: command not found".</li>
</ul>
<p>
Commonly based this error in your reported error text informs you that you should add the program binary to your <a href="https://ubuntuforums.org/showthread.php?t=650327" target="_blank">shell path</a> and try executing the program again.
</p>
<ul>
<li>Error: "Set DISPLAY environment variable, use -display option or check permissions of your X-Server".</li>
</ul>
<p>
Often the problem is that the software requires open office to start and execute one of it's own conversion macros. This in turn requires the graphical X Window environment already installed, configured and running properly. It may not display a gui application window and refuse to start without one.
</p>
<a name="eztoc374889_1_1" id="eztoc374889_1_1"></a><h3>Possible Solutions</h3>
<ul>
<li>Install and run a standard X Window service on the server. Negatives: Consumes much more memory and and system resources. Positives: The simplest solution to setup and troubleshoot since you have a chance to see what is actually happening through the X Window gui screen.</li>
<li>Install and run a standard X Window service on a remote computer and set the shell environment variable, 'DISPLAY' on the eZ Publish server to direct the server's visual output to the remote machine. Advantages: This will naturally save on ram and system resources exausted while also introducing another dependency on one more server computer. Often depending on the networks involved this practice is discouraged in most non-LAN networks for performance reasons.</li>
<li>Install and run xvfb on the eZ Publish server (or the variant, xvnc). This saves on memory and introduces no external dependencies.</li>
</ul>
<div class="object-center"><a name="eztoc374997_4" id="eztoc374997_4"></a><h2>About</h2><a name="eztoc374997_5" id="eztoc374997_5"></a><h2>Summary</h2><a name="eztoc374997_6" id="eztoc374997_6"></a><h2>References</h2></div><a name="eztoc374889_2" id="eztoc374889_2"></a><h2>References</h2>
<ul>
<li>Doc: <a href="https://ez.no/doc/extensions/odf_import_export" target="_self">ODF Iimport and export documentation (pdf)</a></li>
<li>Solution: <a href="/en/layout/set/print/solution/ez_odf_creating_importing_and_exporting_odf_pdf_documents" target="_self">eZODF - Creating, Importing and Exporting ODF/PDF Documents</a></li>
<li>Solution: <a href="/en/layout/set/print/project/ez_odf_converting_ms_word_or_pdf_on_mac_osx_10_4_11_intel" target="_self">eZODF - Converting MS Word or PDF on Mac OSX 10.4.11 Intel</a></li>
<li>Article: <a href="/en/layout/set/print/ez/open_document_format_extension" target="_self">Open Document Format extension</a></li>
<li>Forum:<a href="https://ez.no/developer/forum/setup_design/deamon_reported_error#msg189559" target="_self">Deamon reported error</a></li>
<li>Search: <a href="/en/layout/set/print/google.com/?q=openoffice+headless" target="_self">OpenOffice Headless</a></li>
</ul>
Fri, 17 Jul 2009 09:55:35 GMTRewrite
https://ezpedia.org/ez/rewrite
https://ezpedia.org/ez/rewrite<a name="eztoc365441_1" id="eztoc365441_1"></a><h2>Related</h2>
<div class="object-center"><a name="eztoc136591_1" id="eztoc136591_1"></a><h2>About</h2>
<p>
mod_rewrite uses a rule-based rewriting engine (based on a regular-expression parser) to rewrite requested URLs on the fly.
</p>
<p>
It supports an unlimited number of rules and an unlimited number of attached rule conditions for each rule, to provide a really flexible and powerful URL manipulation mechanism.
</p>
<a name="eztoc136591_2" id="eztoc136591_2"></a><h2>Quotes</h2>
<ul>
<li>``The great thing about mod_rewrite is it gives you all the configurability and flexibility of Sendmail. The downside to mod_rewrite is that it gives you all the configurability and flexibility of Sendmail.'' -- Brian Behlendorf | Apache Group</li>
<li>`` Despite the tons of examples and docs, mod_rewrite is voodoo. Damned cool voodoo, but still voodoo. '' -- Brian Moore</li>
</ul>
<a name="eztoc136591_3" id="eztoc136591_3"></a><h2>Performance</h2>
<p>
mod_rewrite enabled apache services perform faster than <a href="/en/layout/set/print/ez/htaccess" target="_self">.htaccess</a> for production services; performance best practices solution.
</p>
<a name="eztoc136591_4" id="eztoc136591_4"></a><h2>Enable mod_rewrite</h2>
<ul>
<li><a href="https://ez.no/doc/ez_publish/technical_manual/3_8/installation/virtual_host_setup" target="_self">Virtual host setup</a></li>
</ul>
<a name="eztoc136591_5" id="eztoc136591_5"></a><h2>Alternatives</h2><a name="eztoc136591_5_1" id="eztoc136591_5_1"></a><h3>.htaccess apache configuration rules</h3>
<p>
These <a href="/en/layout/set/print/ez/htaccess" target="_self">.htaccess</a> files are faster to use for development without additional configuration.
</p>
<p>
These are useful for some users who avoid apache configuration or virtual host configurations.
</p>
<a name="eztoc136591_6" id="eztoc136591_6"></a><h2>External references</h2>
<ul>
<li><a href="https://www.ilovejackdaniels.com/apache/mod_rewrite-cheat-sheet/" target="_self"><b>mod_rewrite</b> Cheat Sheet</a></li>
<li><a href="https://httpd.apache.org/docs/1.3/mod/mod_rewrite.html" target="_self"><b>mod_rewrite</b> - Apache 1.3</a></li>
<li><a href="https://httpd.apache.org/docs/2.0/mod/mod_rewrite.html" target="_self"><b>mod_rewrite</b> - Apache 2.0</a></li>
</ul>
</div>
<ul>
<li><a href="/en/layout/set/print/ez/mod_rewrite" target="_self">mod_rewrite</a></li>
<li><a href="/en/layout/set/print/solution/switching_to_rewrite_rules" target="_self">Switching to rewrite rules</a></li>
<li><a href="/en/layout/set/print/solution/switching_to_rewrite_rules_removing_index_php_from_urls_and_redirecting_old_requests" target="_self">Solution: removing index.php</a></li>
<li><a href="/en/layout/set/print/ez/faq" target="_self">FAQ</a></li>
</ul>
Tue, 23 Jun 2009 10:29:13 GMTCaptcha
https://ezpedia.org/ez/captcha
https://ezpedia.org/ez/captcha
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc360943_1" id="eztoc360943_1"></a><h2>Extensions related to spam-prevention</h2>
<ul>
<li><a href="https://projects.ez.no/akismet" target="_self">Akismet</a></li>
<li><a href="https://ez.no/community/contribs/datatypes/antispam" target="_self">Antispam</a></li>
<li><a href="https://ez.no/community/contribs/datatypes/datatype_ezcaptcha" target="_self">eZCaptcha</a></li>
<li><a href="https://ez.no/developer/contribs/applications/ez_human_captcha" target="_self">eZ Human Captcha</a></li>
<li><a href="https://ez.no/community/contribs/workflow/peter_s_custom_anti_spam_image" target="_self">Peter's Custom Anti-Spam Image</a></li>
<li>reCAPTCHA: <a href="https://ez.no/developer/contribs/applications/recaptcha_ez3" target="_self">for eZ Publish 3</a>, <a href="https://ez.no/developer/contribs/applications/recaptcha_ez4" target="_self">for eZ Publish 4</a> </li>
</ul>
<a name="eztoc360943_2" id="eztoc360943_2"></a><h2>References</h2>
<ul>
<li>See: <a href="/en/layout/set/print/ez/spam" target="_self">Spam</a></li>
</ul>
Sun, 21 Jun 2009 01:51:46 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="/en/layout/set/print/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="/en/layout/set/print/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>
Sat, 20 Jun 2009 19:01:46 GMTeZ Publish 4.5
https://ezpedia.org/ez/ez_publish_4_5
https://ezpedia.org/ez/ez_publish_4_5
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div>Sat, 20 Jun 2009 18:07:25 GMTeZ Publish 4.4
https://ezpedia.org/ez/ez_publish_4_4
https://ezpedia.org/ez/ez_publish_4_4
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div>Sat, 20 Jun 2009 18:06:48 GMTeZ Publish 4.3
https://ezpedia.org/ez/ez_publish_4_3
https://ezpedia.org/ez/ez_publish_4_3
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div>Sat, 20 Jun 2009 17:57:15 GMTeZ Publish 4.2
https://ezpedia.org/ez/ez_publish_4_2
https://ezpedia.org/ez/ez_publish_4_2
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div>Sat, 20 Jun 2009 17:56:21 GMTBitnami
https://ezpedia.org/ez/bitnami
https://ezpedia.org/ez/bitnami<a name="eztoc358639_1" id="eztoc358639_1"></a><h2>About</h2>
<p>
BitNami eZ Publish Stack is an easy to use installer for eZ Publish
</p>
<p>
eZ Publish is an Enterprise Content Management platform with an easy to use out of the box Web Content Management System.
</p>
<p>
This makes installing the software required to run eZ Publish on your computer simple and easy.
</p>
<p>
It provides a standalone webserver, dbserver, php and eZ Publish.
</p>
<a name="eztoc358639_2" id="eztoc358639_2"></a><h2>BitNami Stacks</h2>
<p>
eZ Publish is available as a free Open Source distribution and serves as the foundation for the rest of the eZ Publish Product Family.
</p>
<p>
The BitNami eZ Publish stack was packaged using BitRock's <a href="https://installbuilder.bitrock.com/index.html" target="_blank">cross platform installer</a> tool.
</p>
<p>
Many other web application software has been made available as <a href="https://bitnami.org/stacks" target="_blank">BitNami Stacks</a>.
</p>
<a name="eztoc358639_3" id="eztoc358639_3"></a><h2>Tips</h2>
<ul>
<li>BitnamiForums: <a href="https://bitnami.org/forums/forums/ez-publish/topics/install-via-command-line" target="_blank">Installing via Command Line</a></li>
<li>Check DB for utf8 characterset</li>
<li>Avoid Bitnami installations with older versions of eZ Publish <= 3.10</li>
<li><a href="https://ezcomponents.org/docs/install#installation" target="_blank">Install ezcomponents</a> yourself (this is not provided by default)</li>
<li>Disclaimer: These environments created by the Bitnami are not recommended for production hosting of eZ publish.</li>
</ul>
<a name="eztoc358639_4" id="eztoc358639_4"></a><h2>eZ Publish Installer</h2>
<p>
This software is based the BitNami software but very different in it's installation and configuration. This separate installaer is maintained by eZ Systems.
</p>
<ul>
<li>Official release announcement on ez.no, <a href="https://ez.no/company/news/new_installer_released_ez_publish_is_only_a_few_clicks_away" target="_self">New installer released : eZ Publish is only a few clicks away!</a></li>
<li>Initial announcement on ez.no, <a href="https://ez.no/developer/news/ez_publish_4_1_0alpha1_released" target="_blank">eZ Publish 4.1.0alpha1 release news</a></li>
<li>Download: eZ Systems - <a href="https://ez.no/download/ez_publish_installer" target="_self">eZ Publish Installer</a> (different solution) </li>
<li>Forum: <a href="https://ez.no/developer/forum/ez_publish_installer" target="_self">eZ Publish Installer</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/ez_publish_installer/ez_publish_installer_press_articles" target="_self">eZ Publish Installer Press Articles</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/ez_publish_installer/reviewing_the_ez_publish_installer" target="_self">Reviewing the eZ Publish Installer</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/install_configuration/free_easy_to_use_all_in_one_installer_for_ez_publish" target="_self">Free easy to use all in one installer for eZ Publish</a></li>
<li>Download: eZ Systems - <a href="https://ez.no/download/ez_publish_installer" target="_self">eZ Publish Installer</a> (different solution)</li>
</ul>
<a name="eztoc358639_5" id="eztoc358639_5"></a><h2>External References</h2>
<ul>
<li>Changelog: <a href="https://bitnami.org/files/stacks/ezpublish/changelog.txt" target="_blank">Bitnami Changelog for the eZ Publish Stack</a></li>
<li>Readme: <a href="https://bitnami.org/files/stacks/ezpublish/README.txt" target="_blank">Bitnami Readme for the eZ Publish Stack</a></li>
<li>Download: <a href="https://bitnami.org/stack/ezpublish" target="_self">Bitnami : eZ Publish Stack</a></li>
<li>Forum: <a href="https://bitnami.org/forums/forums/28" target="_self">Bitnami eZ Publish Stack Forum</a></li>
</ul>
Sat, 13 Jun 2009 13:23:58 GMTeZ Publish 4.1 extension incompatibilities
https://ezpedia.org/ez/ez_publish_4_1_extension_incompatibilities
https://ezpedia.org/ez/ez_publish_4_1_extension_incompatibilities
<p>
eZ Publish 4.1 introduced a new way of loading certain plugins from extensions, which is not compatible with eZ Publish 4.0. Therefore your extension might not work on eZ Publish 4.1 and requires some changes.
</p>
<a name="eztoc336437_1" id="eztoc336437_1"></a><h2>Broken plugin types</h2>
<p>
The following plugin types use the new way of loading:
</p>
<ul>
<li><a href="https://projects.ez.no/types/ez_publish/binary_file_handler" target="_self">Binary file handlers</a></li>
<li>Cluster file handlers</li>
<li>Database cluster file handler backends</li>
<li><a href="https://projects.ez.no/types/ez_publish/database_plugin" target="_self">Database plugins</a></li>
<li>eZXML input handlers</li>
<li>eZXML output handlers</li>
<li>Image convertors</li>
<li>Package handlers / creation handlers / installation handlers</li>
</ul>
<a name="eztoc336437_2" id="eztoc336437_2"></a><h2>How to fix?</h2>
<p>
Coming...
</p>
Mon, 30 Mar 2009 18:09:28 GMTSwitching to rewrite rules
https://ezpedia.org/solution/switching_to_rewrite_rules
https://ezpedia.org/solution/switching_to_rewrite_rules<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>Wed, 11 Feb 2009 15:42:24 GMTeZ Flow releases
https://ezpedia.org/project/ez_flow_releases
https://ezpedia.org/project/ez_flow_releases
<table class="renderedtable" border="1" cellpadding="2" cellspacing="0" width="100%">
<tr>
<th valign="top" >
<p>
Release
</p>
</th>
<th valign="top" >
<p>
eZ Publish version
</p>
</th>
</tr>
<tr>
<td valign="top">
<p>
1.0-2
</p>
</td>
<td valign="top">
<p>
4.0.1
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
1.0-0, 1.0-1
</p>
</td>
<td valign="top">
<p>
4.0.0
</p>
</td>
</tr>
</table>
Sun, 18 Jan 2009 08:36:55 GMTWebsite Interface releases
https://ezpedia.org/ez/website_interface_releases
https://ezpedia.org/ez/website_interface_releases
<table class="renderedtable" border="1" cellpadding="2" cellspacing="0" width="100%">
<tr>
<th valign="top" >
<p>
Release
</p>
</th>
<th valign="top" >
<p>
eZ Publish version
</p>
</th>
</tr>
<tr>
<td valign="top">
<p>
1.3-1
</p>
</td>
<td valign="top">
<p>
4.0.1
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
1.3-0
</p>
</td>
<td valign="top">
<p>
4.0.0
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
1.2-1
</p>
</td>
<td valign="top">
<p>
3.9.4, 3.10.0
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
1.2-0
</p>
</td>
<td valign="top">
<p>
3.9.2
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
1.1-1
</p>
</td>
<td valign="top">
<p>
3.9.0
</p>
</td>
</tr>
</table>
Sun, 18 Jan 2009 08:33:18 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="/en/layout/set/print/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>
Fri, 09 Jan 2009 14:15:30 GMTeZ Publish 4
https://ezpedia.org/ez/ez_publish_4
https://ezpedia.org/ez/ez_publish_4
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc313162_1" id="eztoc313162_1"></a><h2>Topics</h2>
<ul>
<li>Cache: You must use the new cache clearing script, 'bin/php/ezcache.php' to clear cache in eZ Publish (separate from autoload cache entirely)</li>
<li>Cache: You must now (almost constantly) regenerate autoload cache when adding or changing the php class contents of extensions with the ez php cli shell script 'bin/php/ezpgenerateautoloads.php' and not the admin module view controls (as these only reload the admin siteaccess enabled extensions within the autoloads which breaks all your user siteaccess extension dependencies, it's a nasty negative feature)</li>
<li>Workflow: The workflow system internals changed key variable names which means custom workflow events must be changed to mstch the new required style in eZ Publish 4.0 (Consider reviewing existing default kernel workflow events for examples of these changes)</li>
</ul>
<a name="eztoc313162_2" id="eztoc313162_2"></a><h2>Updated articles</h2>
<ul>
<li><a href="/en/layout/set/print/ez/xml" target="_self">XML</a></li>
</ul>
<a name="eztoc313162_3" id="eztoc313162_3"></a><h2>Related articles</h2>
<ul>
<li><a href="/en/layout/set/print/learning/migrating_from_the_ezxml_library_to_php_5_dom" target="_self">Migrating from the eZXML library to PHP 5 DOM</a></li>
<li><a href="/en/layout/set/print/learning/howto_troubleshoot_ez_publish_extensions" target="_self">Troubleshooting extensions</a></li>
<li><a href="/en/layout/set/print/ez/api_bc_breaks" target="_self">List of API BC breaks</a></li>
<li><a href="/en/layout/set/print/ez/ez_publish_4_1_extension_incompatibilities" target="_self">eZ Publish 4.1 extension incompatibilities</a></li>
</ul>
<a name="eztoc313162_4" id="eztoc313162_4"></a><h2>References</h2>
<ul>
<li>eZ Publish <a href="https://pubsvn.ez.no/nextgen/trunk/doc/bc/" target="_self">BC API Documentation</a> (Text Only) in the trunk repository.</li>
<li>Forum: <a href="https://ez.no/developer/forum/extensions/access_denied_with_custom_extensions_after_upgrade_to_4_1#msg183177" target="_self">"Access denied" with module extensions after upgrade to eZ Publish 4.1</a></li>
<li>Forum: <a href="https://ez.no/developer/forum/general/workflow_not_working_after_upgrading_3_6_1_to_4_0_1" target="_self">Workflow not working after upgrading 3.6.1 to 4.0.1</a></li>
<li>Doc: <a href="https://ez.no/doc/ez_publish/upgrading/upgrading_to_4_0/from_3_10_x_to_4_0_y" target="_self">Upgrade Documentation 3.x to 4.0</a></li>
</ul>
Mon, 22 Dec 2008 21:21:33 GMTUnpublishing
https://ezpedia.org/ez/unpublishing
https://ezpedia.org/ez/unpublishing
<div class="object-center">
<p class="editor_motivation">
This is a <a href="/en/layout/set/print/template/stub">Stub</a> article. Help the eZ Publish community by expanding it!
</p>
</div><a name="eztoc313087_1" id="eztoc313087_1"></a><h2>About</h2>
<p>
About unpublishing content
</p>
<a name="eztoc313087_2" id="eztoc313087_2"></a><h2>Summary</h2>
<p>
Unpublishing one or multiple content objects can be done in several ways.
</p>
<ul>
<li>delete them
<ul>
<li>at a specified date & time, with <a href="https://ez.no/doc/ez_publish/technical_manual/current/features/cronjobs/the_cronjob_scripts#unpublish" target="_self">the unpublish cronjob</a> </li>
</ul>
</li>
<li>hide them
<ul>
<li>at a specified date & time, with <a href="https://ez.no/doc/ez_publish/technical_manual/current/features/cronjobs/the_cronjob_scripts#hide" target="_self">the hide cronjob</a> </li>
</ul>
</li>
<li>move them to an archive section of your website
<ul>
<li>at a specified date & time, with <a href="https://projects.ez.no/archive" target="_self">the archive extension</a> </li>
</ul>
</li>
</ul>
Mon, 22 Dec 2008 17:45:37 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>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> <span style="color: #000000; font-weight: bold;">/</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> <span style="color: #000000; font-weight: bold;">/</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_5" id="eztoc312302_5"></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_6" id="eztoc312302_6"></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>
Wed, 17 Dec 2008 23:38:54 GMT