Keyword

K2 itemform.php in frontend

  • Erich Gormann
  • Erich Gormann's Avatar Topic Author
  • Offline
  • New Member
More
12 years 1 month ago #101790 by Erich Gormann
K2 itemform.php in frontend was created by Erich Gormann
Dear all,

I'am relatively new to K2 and I want to change the code in the frontends "itemform.php" to achieve the following:
Depending on the category the item form in the front end has been opened for I want to control, which tabs of the item form are showed.
So the question is: is it possible to ask/retrieve the category title or name in the itemform.php? I already tried to print out the content of the array $this->params, but it is not present in this array.

Any help is welcome.

Kind regards, Erich

Please Log in or Create an account to join the conversation.

  • Erich Gormann
  • Erich Gormann's Avatar Topic Author
  • Offline
  • New Member
More
12 years 1 month ago #101791 by Erich Gormann
Replied by Erich Gormann on topic Re: K2 itemform.php in frontend
Hi all,

I solved it myelf: kust lace the following lof in the itemform.php:

K2HelperUtilities::getParams('com_k2')->get('category');

It returns the id of the preselected category.

Kind regards, Erich

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum