I've set up my Tags plugin according to the directions on the CakeDC
site, but it fails to display the Tag cloud. Specifically, it returns
the following error message:

$sql    =       "SELECT `Tagged`.`10` FROM `taggeds` AS `Tagged`   WHERE
cloud    LIMIT 1"
$error  =       "1054: Unknown column 'Tagged.10' in 'field list'"

If I remove the 'limit' => 10 specification, it returns this error
message:

$sql    =       "SELECT `Tagged`.`id`, `Tagged`.`foreign_key`,
`Tagged`.`tag_id`, `Tagged`.`model`, `Tagged`.`language`,
`Tagged`.`created`, `Tagged`.`modified`, `Tagged`.`times_tagged` FROM
`taggeds` AS `Tagged`   WHERE cloud    LIMIT 1"
$error  =       "1054: Unknown column 'cloud' in 'where clause'"

In neither case is a cloud of tags returned.

Just to be sure, here's what I've got in my model:

var $actsAs = array(
                'Sluggable' => array('label' => 'title', 'overwrite' => true),
                'Search.Searchable',
                'Tags.Taggable',
                //'Containable'
        );

And in the controller action for the page:

$this->set('tags', $this->Post->Tagged->find('cloud'));

And, finally, in my view:

                <?php
                        echo $this->TagCloud->display($tags, array(
                                'before' => 'li size="%size%" class="tag">',
                                'after' => '</li>',
                                'url' => array('controller', 'posts')
                                )
                        );
                ?>
By the way, I added the url param trying to make this work. It doesn't
work with or without it.

I'm sure I'm missing something since others seem to be able to get the
plugin working, but for the life of me, I can't seem to find what I'm
doing wrong. Any help will be greatly appreciated. If I could get
working, I think this would be a fantastic plugin.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to