- Posts: 12
COMMUNITY FORUM
Simplifying front-end editor form
- ross
- Topic Author
- Offline
- New Member
Less
More
10 years 9 months ago #122677
by ross
Simplifying front-end editor form was created by ross
Hi!
My goal is to allow users post items that contain only text. So I want to remove all unnecessary tabs in front-end editor - like categories, images and so on.
For most of this additional options I can just comment the relevant code in itemform.php file (or using css and "display:none")
But I can't get rid of some important options, like title or category.
Can someone help me with this?
(my thought is to state in itemform.php that title will always be "X" and category always be "Y" and use CSS to hide this options from users. My coding skills are really poor so sorry if my thought are idiotic)
My goal is to allow users post items that contain only text. So I want to remove all unnecessary tabs in front-end editor - like categories, images and so on.
For most of this additional options I can just comment the relevant code in itemform.php file (or using css and "display:none")
But I can't get rid of some important options, like title or category.
Can someone help me with this?
(my thought is to state in itemform.php that title will always be "X" and category always be "Y" and use CSS to hide this options from users. My coding skills are really poor so sorry if my thought are idiotic)
Please Log in or Create an account to join the conversation.
- olsen
- Offline
- Elite Member
- Joomla and K2 Freelancer
10 years 9 months ago #122678
by olsen
Didn't solve your issues?? Why dont you consider hire me? Email me or contact me www.xevedigital.com for details
Replied by olsen on topic Re: Simplifying front-end editor form
There are already options to hide frontend editor tabs in the K2 options. Check the frontend options tab and hide the tabs you dont want display.
Other fields must be hidden trouch the template file as you mention.
Other fields must be hidden trouch the template file as you mention.
Didn't solve your issues?? Why dont you consider hire me? Email me or contact me www.xevedigital.com for details
Please Log in or Create an account to join the conversation.
- ross
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
10 years 9 months ago #122679
by ross
Replied by ross on topic Re: Simplifying front-end editor form
Can someone tell me what should I write in itemform.php to set "title" to some default value "X" and set "category" to the only available category "y"? After that I will hide this from user using CSS
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 9 months ago #122680
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Simplifying front-end editor form
You can use jQuery's val() function api.jquery.com/val/
example: stackoverflow.com/questions/6041294/jquery-change-value-on-input
example: stackoverflow.com/questions/6041294/jquery-change-value-on-input
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.