Submit article from frontend (with flexicontent)

More
14 years 8 months ago #4413 by vincentp
Hi,

I set up Flexicontent- and access. I made a submit article link in my menu with the default Flexicontent Submit Article menu item.

Now when I log in the front end as Editor or even Publisher, the Submit Article menu does not list any category in the category select box.

It only lists categories when I log in the frontend as Super Administrator.

I need to have Editors to be able to submit an article to any flexycontent category.

In FlexiAccess I have a Group called Editors which I granted permissions to submit articles in all categories. The Joomla users that have Joomla Editor Rights are added to the FlexiAccess Editor group too.

Why is the Article Sumit form not showing categories?

Any help would be greatly appreciated!
Thank you

Vincent

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

More
14 years 8 months ago #4422 by vistamedia
Hi and thanks for your support :-)
To achieve that, you simply need to go the frontend permissions
Clic on "Articles" and give "Submit" permissions to your group. "Articles" means all categories of the website.
[img

Click for full size - Uploaded with plasq's Skitch

You can see on the following screen that categories automatically herit from the submit permissions
[img

Click for full size - Uploaded with plasq's Skitch

Cheers,
Emmanuel

FLEXIcontent lead developer.
www.vistamedia.fr web agency and custom development.
www.joomla.fr co-administrator.
Please no PM for support request, use the forum for that!!!

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

More
14 years 8 months ago #4428 by vincentp
Hi Emmanuel,

Thank you for your quick reply! Actually I think I did all that, the permissions for editors are like this:


but logged in with an account that has FlexiAccess Editor rights on the front end, I get this submission form:



As you see none of the categories (which are properly displayed in Flexicontent category manager) appear in the category select box. So what did I do wrong?

I do love the clearness of your componenst btw, good job!

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

More
14 years 8 months ago #4435 by vistamedia
You're right it's a bug :( I'll post a fix later in the day.
Thanks for your feedback.

FLEXIcontent lead developer.
www.vistamedia.fr web agency and custom development.
www.joomla.fr co-administrator.
Please no PM for support request, use the forum for that!!!

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

More
14 years 8 months ago #4438 by vincentp
Excellent! There's so many extention developpers who could learn from your support pace ;)

Is there a way to use flexicontent for extended user profile pages? I have seen that option in jSeblod CCK, but that component has a vertical :mrgreen: learning curve. I would love to see it in your component :)

Thanks

Vincent

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

More
14 years 8 months ago #4474 by vistamedia
Hi again and sorry to be late,
Here is the fix.
Edit
Code:
plugins/system/flexiaccess/flexiacessclass.php

Find the function checkUserCats() (should be around line 1316) and replace the entire function by this one.
Code:
function checkUserCats($aro_value) { global $globalcats; $db =& JFactory::getDBO(); $newcats = array(); $query = 'SELECT COUNT(*) FROM #__flexiaccess_acl' . ' WHERE acosection = ' . $db->Quote('com_content') . ' AND ( aco = ' . $db->Quote('add') . ' OR aco = ' . $db->Quote('edit') . ' OR aco = ' . $db->Quote('editown') . ' )' . ' AND arosection = ' . $db->Quote('users') . ' AND aro IN ( ' . $aro_value . ' )' . ' AND axosection = ' . $db->Quote('content') . ' AND axo = ' . $db->Quote('all') ; $db->setQuery($query); if ($db->loadResult()) { foreach ($globalcats as $k => $v) { $newcats[] = $k; } $usercats = array_unique($newcats); return $usercats; } $query = 'SELECT axo FROM #__flexiaccess_acl' . ' WHERE acosection = ' . $db->Quote('com_content') . ' AND ( aco = ' . $db->Quote('submit') . ' OR aco = ' . $db->Quote('edit') . ' OR aco = ' . $db->Quote('editown') . ' )' . ' AND arosection = ' . $db->Quote('users') . ' AND aro IN ( ' . $aro_value . ' )' . ' AND axosection = ' . $db->Quote('category') ; $db->setQuery($query); $usercats = $db->loadResultArray(); $usercats = $usercats ? $usercats : array(); // we add all descendent to the array foreach ($usercats as $usercat) { $newcats[] = $usercat; if ($globalcats[$usercat]->children) { foreach ($globalcats[$usercat]->descendantsarray as $k => $v) { $newcats[] = $v; } } } $usercats = array_unique($newcats); return $usercats; }

It should work then properly.
Concerning user profiles it's on my plans but we need a frontend editing system for that :)
After that, a simple connection plugin, will allow you to do that easily ;)

Cheers,
Emmanuel.

FLEXIcontent lead developer.
www.vistamedia.fr web agency and custom development.
www.joomla.fr co-administrator.
Please no PM for support request, use the forum for that!!!

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.360 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