- Posts: 8
COMMUNITY FORUM
Add k2 item from site: what users can see
- hulahopka
-
Topic Author
- Offline
- New Member
So, I would like registered users can add item in few categories from frontend.
I give permissions, but when some users click on ADD ITEM, they can see everything as I see: list of all categories, k2 logo, JCE editor, even MEDIA BOX (with all pictures on server).
How to set predefined category (I have two) in which they can automatically post item. And, how to hide media box.
In screenshot I post what users see now when they click on ADD ITEM, and what I want to they can see.
I would like that they can see and write only:
- title
- choose category (that I set for users writting)
- insert picture
- simple editor for text (like on your forum: B, I, U, PICTURE, LINK)...
- write a text area
If someone knows solution, please, help!!! It is urgent. Is it possible?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
The itemform.php file can be overriden and you can comment out the elements you do not need. More about overriding can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
Please Log in or Create an account to join the conversation.
- Michael Green
-
- Offline
- Junior Member
- Posts: 36
...........................................................................................................................................................................................
hulahopka wrote: Sorry If this question exist, but I searched everything and can't find it.
So, I would like registered users can add item in few categories from frontend.
I give permissions, but when some users click on ADD ITEM, they can see everything as I see: list of all categories, k2 logo, JCE editor, even MEDIA BOX (with all pictures on server).
How to set predefined category (I have two) in which they can automatically post item. And, how to hide media box.
In screenshot I post what users see now when they click on ADD ITEM, and what I want to they can see.
I would like that they can see and write only:
- title
- choose category (that I set for users writting)
- insert picture
- simple editor for text (like on your forum: B, I, U, PICTURE, LINK)...
- write a text area
If someone knows solution, please, help!!! It is urgent. Is it possible?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
I deleted your other post. You will not receive your answer any faster.
The only way to do this is via overriding the itemform.
You need to check which is the current user (or group) using Joomla!'s user object docs.joomla.org/Accessing_the_current_user_object
From that point in your override you can show/ hide elements for specific users.
There is also the option to disallow media embedding (K2 Params) but this will affect all users.
Please Log in or Create an account to join the conversation.