Migration j4

More
4 years 1 month ago #81573 by philippeg
Replied by philippeg on topic Migration j4
Merci

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

More
4 years 1 month ago - 4 years 1 month 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: 4 years 1 month ago by philippeg.

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

More
4 years 1 month 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
4 years 1 month 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
4 years 1 month 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
4 years 1 month 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.

More
4 years 1 month ago #81614 by micker
Replied by micker on topic Migration j4
remplace par
Code:
/** * @package FLEXIcontent * @copyright (C) 2009-2018 Emmanuel Danan, Georgios Papadakis, Yannick Berges * @author Emmanuel Danan, Georgios Papadakis, Yannick Berges, others, see contributor page * @license GNU/GPL v2 */ defined( '_JEXEC' ) or die( 'Restricted access' ); use Joomla\String\StringHelper; // USE 1: HTML5 or 0: XHTML $html5 = $this->params->get('htmlmode', 0); if ($html5) { // Load html5 layout echo $this->loadTemplate('html5'); } // BOF XHTML else { // first define the template name $tmpl = $this->tmpl; $item = $this->item; $menu = JFactory::getApplication()->getMenu()->getActive(); JFactory::getDocument()->addScript(JUri::base(true).'/components/com_flexicontent/assets/js/tabber-minimized.js', array('version' => FLEXI_VHASH)); JFactory::getDocument()->addStyleSheet(JUri::base(true).'/components/com_flexicontent/assets/css/tabber.css', array('version' => 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['text']->display = $item->toc . $item->fields['text']->display; }

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
4 years 1 month ago #81615 by philippeg
Replied by philippeg on topic Migration j4
Attends mais là tu me dis qu'il va me falloir remplacer tous mes templates ????????
CE template doit être un template dupliqué de la précédente version pour J3 .....or dupliquer les templates, c'est ce qui est préconisé comme bonne démarche .. donc tous les templates dupliqués sont soit à refaire soit il faut changer du code ...ert elle est où la compatibilité ascendante ?  

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

More
4 years 1 month ago #81616 by philippeg
Replied by philippeg on topic Migration j4
Autre problème lié au tempalte grid puisqu'il ne reste plus que celui-là ( ou presque ); je n'arrive pas à afficher l'image dans une vue catégorie voir ci-joint à la place j'ai un dessein

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

More
4 years 1 month ago #81617 by micker
Replied by micker on topic Migration j4
hello
pour la compatibillité le soucis viens de joomla qui a changer ces appels (dépreciation de code) nous ni pouvons rien
en soit c'est juste changer une ligne dans tes vieux template c'est tout
JFactory::getDocument()->addStyleSheetVersion(JUri::base(true).'/components/com_flexicontent/assets/css/tabber.css', FLEXI_VHASH);
pour
JFactory::getDocument()->addStyleSheet(JUri::base(true).'/components/com_flexicontent/assets/css/tabber.css', array('version' => FLEXI_VHASH));
nous ne pouvons pas prendre le risque de toucher au template custom des utilisateurs lors de l'update ...
pour l'image oui le bug est référencé dans github et voici la solution de contournement
dans le theme grid : dans la gestion des image met l'option fallback a flexi_no_fallback

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