Fieldtype

Developer
Supported

EE 1
EE 2
Lonely Cat

Back to this add-on's main page
View Other Add-ons From Wouter Vervloet

     

You must be logged in to post.

Lonely cat and safecracker

Bug Report

GDmac
GDmac

Hello Wouter,
I get a error when using lonely cat in Safecracker

Fatal error: Call to a member function row() on a non-object in
[....] /third_party/lonely_cat/ft.lonely_cat.php on line 32

Wouter Vervloet
# 1
Developer
Wouter Vervloet

Hi GDmac,

Can you check if there is a hidden input field in the code with name=“channel_id”...

Regards,
Wouter

GDmac
# 2
GDmac

Yes, hidden field channel_id is present in safecracker.
I installed your update but now it doesn’t show any categories at all In Safecracker.

Wouter Vervloet
# 3
Developer
Wouter Vervloet

I’ve fixed the error it was throwing, but as it appear SafeCracker doesn’t instantiate the same libraries as the CP does, that is why there are no categories showing up in the dropdown.

I’ll push out a new version tonight (I still have to code it) that will include SafeCracker support…

Greetz,
Wouter

GDmac
# 4
GDmac

No hurry wouter (geen haast wouter, groeten uit NL),

I currently worked around it by using safecracker category select with “no multiple”.
Would be nice to have this fieldtype correct :-)

Greetings
GDmac

Wouter Vervloet
# 5
Developer
Wouter Vervloet

Okay.. I just pushed a new version (0.9.3) to the GitHub repository which includes SafeCracker support.

If there’s anything else, let me know.

Groeten,
Wouter ;)

Wouter Vervloet
# 6
Developer
Wouter Vervloet

I just came up with a nice addition to this fieldtype.

As of version 1.0 (now online) you can output basic category data straight from the field tag without having to resort to the categories loop, so you can disable categories in the channel tag for performance reasons. Usage is included in the README file…