[solved] Admin sees all articles in Frontend - how to disable?

More
7 years 11 months ago - 7 years 11 months ago #65672 by kath
hi there,

my client with admin-rights sees all articles in frontend - also the non-published ones - when logged-in. He's frequently scared by that.
I want to disable that circumstance for him.
I know I can do it via template-php by checking each item's state.
But is there some config I just did't see that does that?

Thanks a lot!
k :)
Last edit: 7 years 11 months ago by kath.

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

More
7 years 11 months ago #65673 by micker
that joomla acl rules => if user can't see article he can't manage it .... that for

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
7 years 11 months ago #65691 by kath
ok, thanks for your reply.
In case someone needs it: I solved it in my template by checking:
1) $item->state (1 = published, 0 = unpublished, there are more.)
2) $item->publish_down (when not set: '0000-00-00 00:00:00'; when expired: < date('Y-m-d h:m:s'))
with the effect that even admins can edit only in BE (which is desired in my case).
cheers!
The following user(s) said Thank You: gardenho

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

More
5 years 2 months ago #77246 by kath
ok, I'm having the same requirement again, so here I go:

How can I hide my user's own, unpublished items in frontend?

Thanks a lot!
Kath

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

More
5 years 2 months ago #77248 by ggppdk
Hello

Regarding the old question for backend
in component configuration "Items Manager" TAB you can select to list
viewable items
or
editable items (e.g. even if an item is meant for guests (=unlogged users), then your backend authors can still see and edit it)


Regarding the new question for frontend
Authors by default are able to view items they own, even if they are not published
this way they can modify them

There is a trick that you can use to hide them

1. Create a new Radio field
"Hide item"
0%%No
1%%Yes

2. Set default value to 0 (aka do not hide)

3. Make field editable only by admins, and hide it in frontend item form

4. Edit the all items and make hide the unpublished item (set to "Yes") save them
Note even published items need to loaded and saved
- so it is best to configure this in new websites, otherwise you will edit a lot of items

5. At menu item or at top level categories, or at component create a locked filter
(categories) Display TAB / Search Filter TAB / Field Filters TAB

field_id##0

e.g.
57##0


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
5 years 2 months ago #77249 by ggppdk
Hello

if you do the above then

You could automate the creation of the new field "Hide Item" according to "state"
but this will need extra steps, please test my above answer first


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.356 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline