Probably solved?! This is for other people looking for the same thing. That is, if someone can please confirm whether this is the right way to do it... Recap of the problem: I need to access the extra fields to set the title of an item....
And a big problem is this... When an extra field is a select box, the $_POST of course contains the ID, not the VALUE of the selected item. So, in the onBeforeK2Save, I need to have access to the definitions of the extra fields. Is that possible? Thanks!!
I need to read the extra fields in onBeforeK2Save because I have to set the $item->title. The $item->extra_fields is NULL. So far, I can only read the extra fields from the $_POST and there the names are K2ExtraField_1, K2ExtraField_2,...
Maybe something is wrong, because $item->extra_fields is NULL in onBeforeK2Save.
Hello, I've been trying and trying but cannot get it to work. I hope someone can give some useful clues here. I want people to enter calendar events: date, hour, minute, description. Nothing more. So I hide title, alias, publish up,...
OK, great, I am a few steps further now, thanks. Next problem is I can't find any info on how to access the extra fields here. I can read the $_POST, but I only get keys like this: K2ExtraField_1 K2ExtraField_2 Is there a way to get the...
So copying view.html.php to /templates/MYTEMPLATE/html/com_k2/SUBTEMPLATE/view.html.php is enough? That file is not in the templates folder...
Hi, It seems I am not going to solve my problems just by using Extra Fields and from what I read I need to write a K2 plugin. I am a php programmer so that is not a problem, but I need some documentation on how to set things up. I have...
I have to say I am a bit annoyed as well on it being so hard to find class definitions, etc. I can understand K2 have to follow the joomla structure, which is very confusing to say the least...
Hi all, To make things a lot easier for a client, I am simplifying the front-end edit form. For a certain k2 category Events, I have made a menu item New Event, which pops up the New Item window. The client only has to enter the extra...
More