- Posts: 4
COMMUNITY FORUM
Extra Fields for Administrators Only
- Nelson Ciofi
-
Topic Author
- Offline
- New Member
Less
More
14 years 4 months ago #91883
by Nelson Ciofi
Extra Fields for Administrators Only was created by Nelson Ciofi
Hi all!
I've just signed up here, but i've been using k2 for a long time now.
Recently i've ended in a problem. I need some extra fields to be active just for a certain access level, or be visible only at the item editor form. That way, only admins could have access to certain information of a certain item.
It's not strict necessary it should be "extra fields"... but must be some information that can be added to an item, and that information should not appear on the frontend for regular users.
Any help will be infinitely grateful.
I've just signed up here, but i've been using k2 for a long time now.
Recently i've ended in a problem. I need some extra fields to be active just for a certain access level, or be visible only at the item editor form. That way, only admins could have access to certain information of a certain item.
It's not strict necessary it should be "extra fields"... but must be some information that can be added to an item, and that information should not appear on the frontend for regular users.
Any help will be infinitely grateful.
Please Log in or Create an account to join the conversation.
- Nelson Ciofi
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
14 years 4 months ago #91884
by Nelson Ciofi
Replied by Nelson Ciofi on topic Extra Fields for Administrators Only
Up.
I'm not a pro in php, in fact i'm totally n00b to it... but i thought about a thing. Is there any .php file that i can edit so the unpublished extra fields will still appear in the backend edit form ?! Something i may change or delete... anything...
That solution would bring my problems to an end. Please, anyone.
I'm not a pro in php, in fact i'm totally n00b to it... but i thought about a thing. Is there any .php file that i can edit so the unpublished extra fields will still appear in the backend edit form ?! Something i may change or delete... anything...
That solution would bring my problems to an end. Please, anyone.
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 4 months ago #91885
by william white
Replied by william white on topic Extra Fields for Administrators Only
You can probably do an override for the front end and use code similar to this
You can probably also do an override for the admin side like this from Oilvier
Try using #= instead of == in the appropriate place in the foreach loop you are concerned with and use the administrator user type
You can probably also do an override for the admin side like this from Oilvier
Try using #= instead of == in the appropriate place in the foreach loop you are concerned with and use the administrator user type
Please Log in or Create an account to join the conversation.
- Nelson Ciofi
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
14 years 4 months ago #91886
by Nelson Ciofi
Replied by Nelson Ciofi on topic Extra Fields for Administrators Only
The greatest problem is i'm not an expert on php. As I said, i'm really a n00b, and I don't know where i must edit the administrator/templates/khepri/html/com_k2/items/default.php.
If you could help me, i just need to show the unpublished extra fields on the backend. It would be enough. My k2 is 2.4.1, and i haven't made any mods so far.
Tks in advance.
If you could help me, i just need to show the unpublished extra fields on the backend. It would be enough. My k2 is 2.4.1, and i haven't made any mods so far.
Tks in advance.
Please Log in or Create an account to join the conversation.