Usage?

You need to be logged in to post messages in the forums. New users may register here.

Mark Marsiglio

Member since:
09 January 2008

Posts: 5

Tuesday 09 December 2008 1: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()}












http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Up

Heath

Member since:
09 January 2008

Posts: 42

Tuesday 09 December 2008 2: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/

Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Up

Mark Marsiglio

Member since:
09 January 2008

Posts: 5

Tuesday 09 December 2008 8:07:01 pm

Cool - i needed the php-tidy module. Installed via yum and it works good now.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Up

Brookins Consulting

Member since:
09 January 2008

Posts: 18

Thursday 18 December 2008 7:56:33 pm

Thank you for your contribution Guillaume!

eZ Partner | North American Experience
http://brookinsconsulting.com/experience

Up

Heath

Member since:
09 January 2008

Posts: 42

Thursday 18 December 2008 7:58:59 pm

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/

Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Up

You need to be logged in to post messages in the forums. New users may register here.