- Posts: 2
COMMUNITY FORUM
How can I add a field in the K2 item admin?
- T
- Topic Author
- Offline
- New Member
Less
More
10 years 5 days ago - 10 years 5 days ago #132437
by T
How can I add a field in the K2 item admin? was created by T
I want to add a field for private notes in the article item administrator. Does anyone know how I can accomplish this. See attached for illustration.
Attachment not found
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 4 days ago #132438
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: How can I add a field in the K2 item admin?
You can add an extrafield in the backend and hide it in your frontend.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- T
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
10 years 3 days ago #132439
by T
Replied by T on topic Re: How can I add a field in the K2 item admin?
I did try that (along with a CSS display:none), however the content that is entered in the field still shows in the mark-up (ctrl-u on Chrome. )
So...how do you "hide it" in the frontend...there is no setting that allows a developer to hide the content from displaying on the frontend. A hack, still shows the content in the mark-up.
People on the site buy placement (ie: an article/item), so I need a place to keep administrative information such as an Insertion Order number and other private customer information.
So...how do you "hide it" in the frontend...there is no setting that allows a developer to hide the content from displaying on the frontend. A hack, still shows the content in the mark-up.
People on the site buy placement (ie: an article/item), so I need a place to keep administrative information such as an Insertion Order number and other private customer information.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 2 days ago #132440
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: How can I add a field in the K2 item admin?
@Τ
You need to create a template override and then in the loop which is printing the extra fields check the extra field alias. If it's the alias you want to hide then don't print it. Of course this requires basic PHP knowledge.
You need to create a template override and then in the loop which is printing the extra fields check the extra field alias. If it's the alias you want to hide then don't print it. Of course this requires basic PHP knowledge.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.