Affichage d'articles non publiés

More
12 years 8 months ago #36966 by ggppdk
Hello,
An item appears to unlogged users despite it being unpublished? (as if it was published?)

This can happen in you enable "ignore publication status" for guest users in ACL configuration

or is the problem something else ?


-- 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
12 years 6 months ago #38625 by pecatte
Bonjour,
j'ai rencontré le même problème.
Le contenu en attente d'approbation aparaissait sans être connecté, même les éléments dans la corbeille!

J'ai pu corriger en modifiant le fichier :
components/com_flexicontent/models/item.php

la ligne 121 :
$item_is_published = $this->_item->state == 1 || $this->_item->state == -5 || $this->_item->state == -1;

il faut enlever l'etat -5 et -1.

la ligne 121 devient :
$item_is_published = $this->_item->state == 1

et du coup, seul les éléments publiés sont visibles par le groupe "public".

EP

PS : Merci à Micker et aux Netasso pour leur tutos... et Merci au développeur de ce composant!

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

More
12 years 6 months ago #38626 by ggppdk
Hello

thanks for your response and efforts

there was some bug NOT RELATED to this line,

so what you did is wrong, you try to fix a bug (or misconfiguration) by adding second bug.

-- instead please update to v2.0.3beta2 (it is stable except some 3rd party plugin might break tabs in rare cases)

in newer revision v2.0.2+ the line is:
Code:
$item_is_published = $this->_item->state == 1 || $this->_item->state == -5 || $this->_item->state == (FLEXI_J16GE ? 2:-1);
-- and it is correct,
what you did will make items in states:
In Progress::Published and Archived

not visible !!!

-- Published states for item view are 3 states:
a. Published : 1
b. In Progress::Published : -5
(FLEXIcontent EXTRA state this is published state !)
c. Archived : -1(J1.5) or 2(J1.6+):

-- Published states for category view are 2 states: 1, -5 ,
... while -1(J1.5) or 2(J1.6+) is used by archived (category) view

So if you click to view an item from the archived (category) view then you will get an error that it is not published

please undo changes , or better update to v2.0.3beta2
code.google.com/p/flexicontent/downloads/list

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.

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