ez projects / eztidy / forum / general support / usage?
You need to be logged in to post messages in the forums. New users may register here.
Member since: Posts: 9 |
Tuesday 09 December 2008 10:55:55 pm I tried to test this, but I am not sure I understand how it is intended to be used.
Is there a server version of tidy that needs to be installed first? I added the operator to a template: {$module_result.content|tidy()}
but got a "operator not registered" error. Once I get the operator to register, do any options need to be passed in the operator for it to work? eZ Premier Partner |
|
Member since: Posts: 73 |
Tuesday 09 December 2008 11:15:27 pm Be certain to check the following
- Check that your using eZ Publish 4.0 - Your ez logs for error warnings and notices. - The extension is enabled for the siteaccess - Regenerate the autoload cache - Clear all standard cache - That 'tidy' is enabled with your php server configuration this extension appears to rely on a 'tidy' class being installed and available. You can confirm this using the phpinfo(); function within a standard php page on the same server. Note: "If you are using PHP 5.0+, the Tidy extension is bundled as part of the standard PHP distribution and you must only install the libtidy library and specify the --with-tidy option as part of your PHP configure parameters." http://www.coggeshall.org/code/tidy/ http://tidy.sourceforge.net/ http://pecl.php.net/package/tidy The extension's installation documentation should include these key instructions a little more clearly than currently. Most people hope for a shell binary method to be available and as good as the php library version (which just is not so). http://svn.projects.ez.no/eztidy/trunk/doc/INSTALL Cheers, Heath Brookins Consulting | http://brookinsconsulting.com/ |
|
Member since: Posts: 9 |
Wednesday 10 December 2008 5:07:01 am Cool - i needed the php-tidy module. Installed via yum and it works good now.
eZ Premier Partner |
|
|
Member since: Posts: 56 |
Friday 19 December 2008 4:56:33 am Thank you for your contribution Guillaume!
eZ Community Partner | North American Experience |
|
Member since: Posts: 73 |
Friday 19 December 2008 4:58:59 am For those without php-tidy installed and available there seems to be an existing solution available from pubsvn.
The following ezpedia article points out a version of an extension called eztidy which can call tidy via shell binary. This method while considerably slower seems simpler to use in a shared hosting environment. http://ezpedia.org/wiki/en/ez/tidy http://pubsvn.ez.no/community/trunk/extension/eztidy http://pubsvn.ez.no/community/tru...xtension/eztidy/autoloads/eztidy.php Cheers, Heath Brookins Consulting | http://brookinsconsulting.com/ |
You need to be logged in to post messages in the forums. New users may register here.