Include author info in the end of article ...

More
10 years 3 months ago #52756 by witold
Hi,

I am using flexicontent and it works great.
However, so far I had authorinfobox plugin which was displaying author's info in the end of articles. This plugin seems not working in flexicontent.

Is there a way to publish author's description in the end of articles?

I would appreciate help, as I digged through the forum and all the options and could not resolve it ...

thank you,
Witold

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

More
10 years 3 months ago #52770 by ggppdk
Hello

in our description field make sure that parameter

"content plugin triggering" is enabled

and that you have selected NONE content plugin from the list (NONE=means ALL plugins)


-- 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 3 months ago #52774 by witold
Hi,

thanx for hint.

I did it, but anyway the author info from authorinfobox plugin is not showing up. I also tried with cfAuthorDetails plugin extension, also without success.

After disabling System - Flexi content plugin both plugins works great (but there is no Flexi then ...).

Is there any other way to show author description(and also for example his avatar)? (for example a separate field with author's description?)

Thank you,
Witold

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

More
10 years 3 months ago #52779 by ggppdk
Hello

some plguins have an extra check to decide whether to execute,

either use latest GitHub version of FLEXIcontent or try this:

Backup your file:
component/com_flexicontent/classes/flexicontent.fields.php

find inside it function:
triggerContentPlugins

and replace it with:
Code:
static function triggerContentPlugins(&$field, &$item, $method, $view=FLEXI_ITEMVIEW) { $debug = false; static $_plgs_loaded = array(); static $_fields_plgs = array(); static $_initialize = false; static $_view, $_option, $limitstart; static $dispatcher, $fcdispatcher; //$flexiparams = JComponentHelper::getParams('com_flexicontent'); //$print_logging_info = $flexiparams->get('print_logging_info'); // Log content plugin and other performance information //if ($print_logging_info) global $fc_run_times; if (!$_initialize) { // some request and other variables $_view = JRequest::getVar('view'); $_option = JRequest::getVar('option'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); $_initialize = true; // *********************************************************************** // We use a custom Dispatcher to allow selective Content Plugin triggering // *********************************************************************** require_once (JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'helpers'.DS.'dispatcher.php'); $dispatcher = JDispatcher::getInstance(); $fcdispatcher = FCDispatcher::getInstance_FC($debug); } // CASE: FLEXIcontent item view: // Set triggering 'context' to 'com_content.article', (and also set the 'view' request variable) if ($view == FLEXI_ITEMVIEW) { JRequest::setVar('view', 'article'); $context = 'com_content.article'; } // ALL OTHER CASES: (FLEXIcontent category, FLEXIcontent module, etc), // Set triggering 'context' to 'com_content.category', (and also set the 'view' request variable) else { JRequest::setVar('view', 'category'); $context = 'com_content.category'; } if ($debug) echo "<br><br>Executing plugins for <b>".$field->name."</b>:<br>"; if ( !@$_fields_plgs[$field->name] ) { // Make sure the necessary plugin are already loaded, but do not try to load them again since this will harm performance if (!$field->parameters->get('plugins')) { $_plgs = null; if (!@$_plgs_loaded['__ALL__']) { JPluginHelper::importPlugin('content', $plugin = null, $autocreate = true, $dispatcher); $_plgs_loaded['__ALL__'] = 1; } } else { $_plgs = $field->parameters->get('plugins'); $_plgs = $_plgs ? $_plgs : array(); $_plgs = is_array($_plgs) ? $_plgs : explode('|', $_plgs); // compatibility because old versions did not JSON encode the parameters if (!@$_plgs_loaded['__ALL__']) foreach ($_plgs as $_plg) if (!@$_plgs_loaded[$_plg]) { JPluginHelper::importPlugin('content', $_plg, $autocreate = true, $dispatcher); $_plgs_loaded[$_plg] = 1; } } $_fields_plgs[$field->name] = $_plgs; } $plg_arr = $_fields_plgs[$field->name]; // Suppress some plugins from triggering for compatibility reasons, e.g. // (a) jcomments, jom_comment_bot plugins, because we will get comments HTML manually inside the template files $suppress_arr = array('jcomments', 'jom_comment_bot'); FLEXIUtilities::suppressPlugins($suppress_arr, 'suppress' ); // Initialize field for plugin triggering $method_text = isset($field->{$method}) ? $field->{$method} : ''; $field->text = $method_text; $field->introtext = $method_text; // needed by some plugins that do not use or clear ->text property $field->created_by = $item->created_by; $field->title = $item->title; $field->slug = isset($item->slug) ? $item->slug : $item->id; $field->sectionid = !FLEXI_J16GE ? $item->sectionid : false; $field->catid = $item->catid; $field->catslug = @$item->categoryslug; $field->fieldid = $field->id; $field->id = $item->id; $field->state = $item->state; $field->type_id = $item->type_id; // Set the 'option' to 'com_content' but set a flag 'isflexicontent' to indicate triggering from inside FLEXIcontent ... code JRequest::setVar('option', 'com_content'); JRequest::setVar("isflexicontent", "yes"); // Trigger content plugins on field's HTML display, as if they were a "joomla article" if (FLEXI_J16GE) $results = $fcdispatcher->trigger('onContentPrepare', array ($context, &$field, &$item->parameters, $limitstart), $plg_arr); else $results = $fcdispatcher->trigger('onPrepareContent', array (&$field, &$item->parameters, $limitstart), false, $plg_arr); // Restore 'view' and 'option' request variables JRequest::setVar('view', $_view); JRequest::setVar('option', $_option); $field->id = $field->fieldid; $field->{$method} = $field->text; // Restore suppressed plugins FLEXIUtilities::suppressPlugins( $suppress_arr,'restore' ); }


-- 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 3 months ago #52787 by witold
Hi,

thank you very much for such a great support!
After those modifications everything works perfect.

best wishes,
Witold

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

More
10 years 3 months ago #52916 by micker
think to vote for flexicontent on jed

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.759 seconds
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
Save