Keyword

show extra fields under title

  • vtiger
  • vtiger's Avatar Topic Author
  • Offline
  • Premium Member
More
10 years 8 months ago #123129 by vtiger
show extra fields under title was created by vtiger
good morning, i tried to create extra field in the " add item" page for the users.
I want add field where users send other informations like country, job, etc



But the extra fields are not show directly, i must click on Extra field tab. I want that extra field are under title

If you know other solutions for create form or something like this you are welcome.
Thank you

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

  • vtiger
  • vtiger's Avatar Topic Author
  • Offline
  • Premium Member
More
10 years 8 months ago - 10 years 8 months ago #123130 by vtiger
Replied by vtiger on topic Re: show extra fields under title
i did a research, and I find that i must change category_item.php ( or item.php) in the template of K2

I must add this line in item.php

I changed line 262 to
<span class="itemExtraFieldsValue <?php echo $extraField->alias; ?>"><?php echo $extraField->value; ?></span>

but nothing happen
Attachments:

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 8 months ago #123131 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: show extra fields under title
You can override the template of the administrator component or you can edit the itemform.php file for your frontend users.

To locate the itemform.php please read this tutorial:
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum