Selecting categories in create item form in frontend

More
10 years 11 months ago #42648 by Jean-Paul
Hi,
I am new at testing FC to see if it could replace K2 (which I used some years ago) for more flexibility on a new site.
I've read a large amount of the available doc, plus ACL docs and video tutorials.
Then, I am sorry to say that I am blocked by some problems, and I have a strong hope that you will help :

Configuration
Joomla 3.2.0, FC 2.1.2 r1806 beta

I have categories (catA, catB...), subcats (catA1, catA2..., catB1, catB2...) , and Usergroups accordingly. Each Usergroup can do anything only in its own category content (except Delete). Plus, "A" user can do that "A1" and "A2" users do, etc.
Usergroups are all sons of Register. They cannot enter the Backend.

1- ACL configuration

Letting Create at "Soft Deny" in General and FC config, I Allow group "A" for catA Category and "Article" Type. This way, as an "A" user connected and displaying categorie A in frontend, I get a link "Add new content", but this link leads to a "You are not allowed to add...etc."
On the FAQs, I've found the topic that read the following:

-- in the case of "soft deny"
we need to check category access of all categories,
so indeed there is a bug

-- committed fix in r1809:
# Fixed category 'create' permission not being checked and considered 'denied', when component 'create' permission is set to 'soft deny' (=inheriting an non-assigned)


I thing I've got the same problem. Could it be possible to get that version r1809? I didn't see it on your website (All Downloads, Nightly Builts...)

So I've Allowed "Create" at General config level for the usergroup "A" (I can't save FC Configuration settings probably due to share hosting server limitations - post_max_size=8M and max_input_vars=1000. Yet another problem!)
This way, as an "A" user I get the link "Add new content" and the form. Right! But...

2- Selecting category(ies)
In the Create Item form, only a few categories (2 out of 15) appear in the Category select field. In particular, the current category, subcategories and the other ones, B, C... didn't. As far as I can remenber after a lot of "create" and "delete", the ones which display are the ones imported from Joomla at FC install time... Not 100% sure however :-(
I can't see what makes them different from the ones which didn't display. Even in the DB itself (PhpMyAdmin), I can't see any parameter that could explain that behavior. I searched the FAQs with no more success. I can't see anything related to the menu link neither. Perhaps I'm wrong?

As SuperAdmin in frontend, same problem. In Backend, no problem. All the categories appear.
On localhost with another install (same versions), same problem with a category I just created today!

So I'm a bit lost in my tests an learning efforts. I'm very willing to use FC for this project but at htis point I really need some help.
If requested, I can give admin access to my test site.

Thank a lot for all that you do to help people in a efficient way!
Jean-Paul

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

More
10 years 11 months ago #42652 by ggppdk
Hello

1. i will make tomorrow a latest build so that you can get the "soft-deny" fix
... and then post here

2. about
the categories appearing in item form, these are controlled (like in Joomla article form) by the 'create' privilege only other privs are not relevant for this selector

As SuperAdmin in frontend, same problem. In Backend, no problem. All the categories appear.
On localhost with another install (same versions), same problem with a category I just created today!


In frontend we have "override categories ACL" parameters in the submit menu item, check if you have enabled this, and disable it , and the categories should appear according to ACL


-- 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
10 years 11 months ago #42685 by Jean-Paul
Hi George,
Thanks for your quick answer.
I admit that I didn't pay attention enough to the "categories (item edit form)" ACL parameters, which are "flexi-specific"...
So, in order to keep things as simple and clear as possible (as I have that php.ini problem on my real site), I keep working on localhost.

There, I deleted all my old cats except "Uncategorised", created categories catA and catB, deleted and recreated usergroups groupA and groupB, users ua and ub.
Permissions for groupA were given as shown on this screenshots page (sorry, I let my component in French...):
www.eglise-breiziroise.cef.fr/fl ... shots.html
In short: Allow "Create item/cat" and "categories (item edit form)" on flexi config, inherited Create for catA, and for Article Type: all authors.
I created a menu link to submission form without any overriding (BTW, I guess that this is equivalent to the link "Add new content" that appears for an authorized author in cat. page. Am I right?)
All that done, gone to frontend, logged in as ua (groupA user), click on either the menu link or the automatic link, got the form, and the only cat that appears "active" is Uncategorised. No catA nor catB! In addition, old cats appear as desactivated (grayed).
That surprises me because I've deleted (trashed then deleted) all these cats (see screenshots). I can't even found them in DB ! I emptied Firefox cache with no effect.
I probably miss something. But what?
Thank again for your kind and quick help. I'm now waiting for the new build.
Jean-Paul

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

More
10 years 11 months ago #42698 by ggppdk
Hello

1.
flexicontent has the same TREE-INHERITED permissions for content (category/item) as joomla:
- Create
- Delete
- Edit
- Edit State
- Edit Own


but adds (TREE-INHERITED):
- Edit State own (very useful for allowing user to publish article the have created and they own, this together with edit.own, will also allow them to publish changes to their owned content without approval)
- Delete Own

-- Then there are various, globally INHERITED permissions


-- about submit menu item it is a quick way to override ACL

-- about old categories showing as disabled, try clearing all joomla cache once, do they disappear?

... and i am uploading
v2.1.3 r1813 beta here:
code.google.com/p/flexicontent/downloads/list


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