toolbar field - comments

More
11 years 7 months ago #36601 by zouz747
If comments are disabled on a specific content and the toolbar field display_comments is set to yes as a default, you need to get the content's param.
Add to plugin > field > toolbar.php some like:
Code:
$params=$item->parameters;

replace
Code:
$display_comments = $field->parameters->get(FLEXI_J16GE ? 'display_comments' : 'display-comments', 1);
with
Code:
$display_comments = $field->parameters->get(FLEXI_J16GE ? 'display_comments' : 'display-comments', 1) && $params->get('comments', 0);

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

More
11 years 7 months ago #36606 by ggppdk
Replied by ggppdk on topic toolbar field - comments
Hello,
will commit this fix, thanks for report

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

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

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