getkirby-v2 / starterkit

This is the deprecated starterkit for Kirby v2.
http://getkirby.com
Other
301 stars 94 forks source link

What replaces $parent if it gone? #10

Closed shoesforindustry closed 9 years ago

shoesforindustry commented 10 years ago

Just trying to port some stuff over to Kirby 2 and found $parent (tagcloud plugin) to be empty in Kirby 2. Is this a bug or has it been deprecated? If deprecated what replaces it?

bastianallgeier commented 10 years ago

I'm not exactly sure what you mean. Could you post the code here, which is broken in Kirby 2?

shoesforindustry commented 10 years ago

Sorry Bastian, I should have documented and it maybe a bit of a red herring. Calling a tag cloud.

$tagcloud = tagcloud($pages->find('articles'), array('limit' => 50, 'sort'=>'name', 'sortdir'=>'asc'))

All fine in Kirby 1, I was looking in the tagcloud.php at $parent for error which was empty, of course it is actually failing on the $tagcloud call above. "Fatal error: Cannot use object of type Obj as array in /Users/..../starterkit/kirby/toolkit/lib/a.php on line 414" Apologies if this is to do with plugins not working on the current Kirby 2.

p.s. Also is there any more information on the new plugin format, I'd like to update the 'Alphabetise plugin' ;-)

bastianallgeier commented 10 years ago

I'm going to spend the time after today's beta release with testing and fixing plugin related issues. I'll let you know about this as soon as I found out more.

shoesforindustry commented 10 years ago

Thanks, looking forward to updating my plugins.

ow commented 10 years ago

Whoops, I have this issue too and had opened an issue here: https://github.com/getkirby/toolkit/issues/9