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

More
13 years 8 months ago - 9 years 2 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: 9 years 2 months ago by ggppdk.

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

More
13 years 8 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 review. Thanks!

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

More
13 years 8 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
13 years 8 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 review. Thanks!

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

More
13 years 8 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
13 years 8 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 review. Thanks!

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

More
13 years 8 months ago #25546 by agata
I'm not using any translations, the site only has 1 language

sorry, I don't know what happened. you're right, for their owner all items (published or unpublished) appear in the category view whether editing is allowed or not and those unpublished items lead to 404

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

More
13 years 8 months ago #25552 by ggppdk
Since owner items are listed in category view,

i am thinking to change the item model to

-- either (a) allow viewing them with a warning that are view to them only because they own the item
-- or (b) instead of 404 access error to Raise a notice and redirect to previous page

what do you think?
i think solution (a) maybe problematic,
also i think maybe we do need a new parameter to control whether to show owned items in category/favourites/tags views

any other opinions?


-- 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 review. Thanks!

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

More
13 years 8 months ago #25558 by agata
if option b is less problematic then I'm fine with it. as long as I'm not getting 404s I'll be happy with anything. an option to choose whether to show unpublished items to owners or not would be awesome

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

More
13 years 8 months ago #25561 by ggppdk
mmm, will provide a solution for this within week, i have opened this defect issue:

code.google.com/p/flexicontent/i ... ail?id=445


-- 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
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
Save