Joomla 'featured flag' in fc-frontend edit form

More
6 years 1 week ago #72785 by mcmurdok
Hello, I'm using FC 3.2.1.12 and Joomla Joomla! 3.8.6

To toggle the joomla 'featured flag' for items from the fc-frontend-edit-form I extended the form.php by adding $this->form->getInput('featured').
It worked fine although it wasn't official supported. After updating to the newest Flexicontent version, it doesn't seem to work anymore.
The functionality is available only in the backend.
Is it possible to add this functionality to the frontend editor again?

Regards

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

More
6 years 1 week ago #72788 by ggppdk
Hello

if this is important functionality for an existing website

then temporarily do this hack of core file (please avoid such changes to core files unless asked !)

Find about lines 1094 to 1098

github.com/FLEXIcontent/flexicontent-cck...item.php#L1094-L1098

in file
administrator/components/com_flexicontent/models/parentclassitem.php

and change
Code:
if (!$app->isAdmin() || !$canEditState)

to (so that it will only check privilege to publish)
Code:
if (!$canEditState)

I said temporarily above because was thinking to allow it via configuration
but there is no specific ACL rule to use, and i am thinking to avoid adding more ACL , although this would be useful


Then could just add a parameter

"Allow setting featured in frontend"
- No
- Yes if user can publish
- Yes (*)

(*) remember to check featured flag before approving new versions


-- 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
6 years 1 week ago #72789 by ggppdk
Hello

also v3.2.1.13 is out (see github, will add it to auto-update soon), better upgrade and then change file


-- 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
6 years 1 week ago #72794 by mcmurdok
Thanks for your quick response.
After changing line 1933 the same way, too, it worked for me.
Thank you

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

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