Joomla.it Forum

Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => I Template di Joomla 1.6/1.7/2.5 => : yan78 12 Apr 2013, 09:47:42

: Aiuto - Errore ARTcontent
: yan78 12 Apr 2013, 09:47:42
Salve sono nuovo del forum.Ho sviluppato un template ma lo importo in joomla e mi da il seguente errore.Spero che qualcuno mi possa aiutare.ParametriIl file per i parametri /templates/Colonnavertebrale/params.ini è [/size]Scrivibile[/size]![/size][/color]
content[/size][/font][/color]
Element not defined for type = artcontent[/t][/t][/t][/font]
: Re:Aiuto - Errore ARTcontent
: mau_develop 12 Apr 2013, 10:34:37
... a parte che potevi cercare la sezione corretta...

Element not defined for type = artcontent

nell'xml o da qualche parte avrai fatto un field di tipo artcontent ... che sembra non esistere
: Re:Aiuto - Errore ARTcontent
: yan78 12 Apr 2013, 10:41:32
Ti ringrazio per la risposta ma non riesco a trovare l'errore.
Grazie :'(
: Re:Aiuto - Errore ARTcontent
: mau_develop 12 Apr 2013, 12:38:20
non ce l'hai una ricerca di testo?

'type = artcontent'

non sarà scritto in tanti posti....
: Re:Aiuto - Errore ARTcontent
: yan78 12 Apr 2013, 12:45:52
Ciao e grazie ho trovato sta nella cartella parameters ed all'interno si trova il


artcontent.php


Copio il suo interno:

<?php


defined('JPATH_BASE') or die;


require_once JPATH_SITE.'/libraries/joomla/html/parameter/element.php';


class JElementArtContent extends JElement   
{
    var $_name = 'ArtContent';


    function fetchElement($name, $value, &$node, $control_name)
    {
        // Initialize field attributes.
        $text   = $node->attributes('text') ? $node->attributes('text') : '';
        $value  = $node->attributes('value') ? $node->attributes('value') : '';
       
        // get theme name
        $cid        = JRequest::getVar('cid', array(), 'method', 'array');
        $cid        = array(JFilterInput::clean(@$cid[0], 'cmd'));
        $template   = $cid[0];
       
        $dataFolder = JURI::root(true).'/templates/'. $template .'/data';
        $document =& JFactory::getDocument();


        // include js, css files to create modal window
        $pathToModalJs =  JURI::root(true).'/media/system/js/modal.js';
        $document->addScript($pathToModalJs);
        $pathToModalCss = JURI::root(true).'/media/system/css/modal.css';
        $document->addStyleSheet($pathToModalCss);
       
        $templateFolder = dirname(dirname(__FILE__));


        $content = "if ('undefined' != typeof jQuery) document._artxJQueryBackup = jQuery;";
        // join jquery.js file
        $content .= file_get_contents($templateFolder . '/jquery.js');
        $content .= 'jQuery.noConflict();';
        // join loader.js file
        $content .= file_get_contents($templateFolder . '/data/loader.js');
        $content .= 'if (document._artxJQueryBackup) jQuery = document._artxJQueryBackup;';
        $document->addScriptDeclaration($content);


        return '<button class="modal" type="submit" name="'.$control_name.'['.$name.']" id="'.$control_name.$name.'" >'. JText::_($text) .'</button>'
        .'<input type="hidden" id="dataFolder" value="'. $dataFolder .'">'
        .'<div id="log"><>';
    }
}

: Re:Aiuto - Errore ARTcontent
: mau_develop 12 Apr 2013, 13:09:55
e dov'è che lo richiami?
: Re:Aiuto - Errore ARTcontent
: tomtomeight 12 Apr 2013, 21:05:22
Ciao
Se stai sviluppando col noto software per template credo che devi rivolgerti sul forum del produttore, quì non è consentito supportare estensioni, servizi e programmi commerciali, nonché i loro derivati. Grazie.