[SOLVED] [Shown to owners] unpublished items appear in category view

More
12 years 5 months ago - 7 years 11 months ago #25531 by agata
I am using 2.0 RC5 r1315 on Joomla 2.5.4

the registered users are allowed to add items from the front-end to a single category in flexicontent. those items are to remain unpublished until the admin reviews them. all this is working fine. the problem is those unpublished items appear in the category view for that user and then lead to a 404 page. is it possible to either stop displaying them until they're reviewed or at least have a custom 404 page with a message those items are still pending?
Last edit: 7 years 11 months ago by ggppdk.

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

More
12 years 5 months ago #25534 by ggppdk
In category view:

Registered users are allowed to list all items that they own, that is why the items are listed, despite not being neither editable nor viewable by the user (if an item is editable by a user THEN it is also forced as viewable REGARDLESS of them being unpublished)

in your case i guess you did not give registered users edit privilege for their new items right?

if you had done so, then they would be also viewable despite them being unpublished, and there would be no 404 error.


Currently since an item is viewable if editable (regardless of being unpublished)
I am am guessing a solution would be to make the items viewable if the owned by the users

Will post here a linked to the updated model file when i make the change

Regards


-- 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
12 years 5 months ago #25538 by agata
thank you, indeed denying editing of one's own items solved the issue, the items are no longer appearing in the category view

if however they were to be viewable before they are published, would be handy if they feature a message informing that the item is not yet public

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

More
12 years 5 months ago #25541 by ggppdk
mmm,
You denied editing owned items?
or granted editing owned items?


-- 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
12 years 5 months ago #25543 by agata
I denied editing to test the behavior of the unpublished items to see if it behaves as expected or if there's a bug. the items disappeared from the category view as they shall

if however I wanted them to be editable, the only logical behavior I can think of is that the items do appear in the category view, are accessible and feature a message they are still pending

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

More
12 years 5 months ago #25544 by ggppdk
All own items should appear to the user when he logs on regardless of being editable.

So you making them un-editable and them being hidden is strange

and also if they were editable in the first place they should have caused 404 error.

Do you use translation groups?


-- 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.293 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