Path

ez projects / eztags / forum / general / eztagscloud


eztagscloud

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

Jean-Luc Nguyen

Member since:
30 November 1999

Posts: 13

Thursday 28 April 2011 4:06:28 pm

Hi,

Do you have some examples on how to use the eztagscloud() template operator?

Thanks!
Up

Edi Modrić

Member since:
22 January 2009

Posts: 76

Thursday 28 April 2011 4:48:10 pm

Hi Jean-Luc,

it's actually pretty simple. It acts the same way as tagscloud operator included in ezwebin.

Just call it like {eztagscloud()} and it should return the tag cloud as the output.

Certified as an eZ Publish advanced developer on Sep 7th 2012
Certified as an eZ Publish basic developer on Jul 16th 2010

@: http://twitter.com/emodric
www: http://www.netgenlabs.com

Up

Jean-Luc Nguyen

Member since:
30 November 1999

Posts: 13

Monday 02 May 2011 12:05:18 pm

Hi Edi,

This is what I thought, but it isn't working for me, and I don't have any error on debug or on php logs. I also saw that we can add $params['sort_by'] and more...

I'll trace the code and see.

Thanks for your answer,

JL.
Up

Edi Modrić

Member since:
22 January 2009

Posts: 76

Monday 02 May 2011 12:30:14 pm

Good luck with that!

Be sure to let us know your findings :)

Certified as an eZ Publish advanced developer on Sep 7th 2012
Certified as an eZ Publish basic developer on Jul 16th 2010

@: http://twitter.com/emodric
www: http://www.netgenlabs.com

Up

Jean-Luc Nguyen

Member since:
30 November 1999

Posts: 13

Monday 02 May 2011 12:44:57 pm

OK, never mind, I thought the template operator would return an array to display on a template, but it actually returns the HTML, as it already uses tagcloud.tpl.

Next time, I'll check the PHP source code before!

Thanks for your help.
Up

Edi Modrić

Member since:
22 January 2009

Posts: 76

Monday 02 May 2011 1:01:07 pm

I'm glad everything is fine! :)

Certified as an eZ Publish advanced developer on Sep 7th 2012
Certified as an eZ Publish basic developer on Jul 16th 2010

@: http://twitter.com/emodric
www: http://www.netgenlabs.com

Up

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