Joomla 'featured flag' in fc-frontend edit form

7 months 5 days 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.

7 months 5 days 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
if (!$app->isAdmin() || !$canEditState)

to (so that it will only check privilege to publish)
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 review. Thanks!

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

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

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

7 months 5 days 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
© 2018 Flexicontent. All Rights Reserved.