Migration j4

More
3 years 3 months ago #81573 by philippeg
Replied by philippeg on topic Migration j4
Merci

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

More
3 years 2 months ago - 3 years 2 months ago #81608 by philippeg
Replied by philippeg on topic Migration j4
Bojour,
nouveau problème
affichage article en utilisant le nouveau template grid

Question subsidiaire pourquoi en reste-t-il que le template grid ? Clairement il me marche pas et foncctionnellement, il ne remplace pas les anciens ..?
0 - Call to undefined method Joomla\CMS\Document\HtmlDocument::addScriptVersion()

Il est possible que vous ne puissiez visiter cette page en raison de :

un lien/favori obsolète
un moteur de recherche possède un listing périmé pour ce site
une adresse erronée
vous n'avez pas accès à cette page
La ressource demandée est introuvable
Une erreur est survenue pendant l'exécution de la requête.

Veuillez essayer l'une des pages suivantes :

Page d'accueil

Si les difficultés persistent, merci de contacter l'administrateur de ce site et de signaler les erreurs ci-dessous.

Call to undefined method Joomla\CMS\Document\HtmlDocument::addScriptVersion()
/home/philippe/joomlaprod/videos-livres-trieves02/components/com_flexicontent/templates/grid-livres/item.php:34
Call stack
# Function Location
1 () JROOT/components/com_flexicontent/templates/grid-livres/item.php:34
2 include() JROOT/libraries/src/MVC/View/HtmlView.php:429
3 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:218
4 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_flexicontent/views/item/view.html.php:2416
5 FlexicontentViewItem->_displayItem() JROOT/administrator/components/com_flexicontent/views/item/view.html.php:57
6 FlexicontentViewItem->display() JROOT/libraries/src/MVC/Controller/BaseController.php:692
7 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/components/com_flexicontent/controller.php:262
8 FlexicontentController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:730
9 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/components/com_flexicontent/flexicontent.php:289
10 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
11 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
12 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
13 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:206
14 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:245
15 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
16 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:63
17 require_once() JROOT/index.php:32
Last edit: 3 years 2 months ago by philippeg.

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

More
3 years 2 months ago #81609 by micker
Replied by micker on topic Migration j4
C'est ton template qu'il faut mettre à jour donne moi le code des lignes 34 a 38 de item.php dans le template grid-livre

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.

More
3 years 2 months ago #81610 by philippeg
Replied by philippeg on topic Migration j4
JFactory::getDocument()->addScriptVersion(JUri::base(true).'/components/com_flexicontent/assets/js/tabber-minimized.js', FLEXI_VHASH);
JFactory::getDocument()->addStyleSheetVersion(JUri::base(true).'/components/com_flexicontent/assets/css/tabber.css', FLEXI_VHASH);
JFactory::getDocument()->addScriptDeclaration(' document.write(\'<style type="text/css">.fctabber{display:none;}<\/style>\'); ');  // temporarily hide the tabbers until javascript runs

// Prepend toc (Table of contents) before item's description (toc will usually float right)

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

More
3 years 2 months ago #81611 by micker
Replied by micker on topic Migration j4
mince il m'en manque tu me donner de la ligne 1 à la ligne 40 ?
merci

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.

More
3 years 2 months ago #81612 by philippeg
Replied by philippeg on topic Migration j4
<?php
/**
 * @version 1.5 stable $Id: item.php 1538 2012-11-05 02:44:34Z ggppdk $
 * @package Joomla
 * @subpackage FLEXIcontent
 * @copyright (C) 2009 Emmanuel Danan - www.vistamedia.fr
 * @license GNU/GPL v2
 *
 * FLEXIcontent is a derivative work of the excellent QuickFAQ component
 * @copyright (C) 2008 Christoph Lukes
 * see www.schlu.net for more information
 *
 * FLEXIcontent is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

defined( '_JEXEC' ) or die( 'Restricted access' );

use Joomla\String\StringHelper;

// USE HTML5 or XHTML
$html5 = $this->params->get('htmlmode', 0); // 0 = XHTML , 1 = HTML5
if ($html5) {  /* BOF html5  */
    echo $this->loadTemplate('html5');
} else {

// first define the template name
$tmpl = $this->tmpl;
$item = $this->item;
$menu = JFactory::getApplication()->getMenu()->getActive();

JFactory::getDocument()->addScriptVersion(JUri::base(true).'/components/com_flexicontent/assets/js/tabber-minimized.js', FLEXI_VHASH);
JFactory::getDocument()->addStyleSheetVersion(JUri::base(true).'/components/com_flexicontent/assets/css/tabber.css', FLEXI_VHASH);
JFactory::getDocument()->addScriptDeclaration(' document.write(\'<style type="text/css">.fctabber{display:none;}<\/style>\'); ');  // temporarily hide the tabbers until javascript runs

// Prepend toc (Table of contents) before item's description (toc will usually float right)
// By prepend toc to description we make sure that it get's displayed at an appropriate place
if (isset($item->toc)) {
    $item->fields->display = $item->toc . $item->fields->display;
}

 

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

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