mercoledì 19 ottobre 2011

AGGIUNGERE UN ELEMENTO AL MENU COMPONENT (istruzioni)

creare cartella
administrator>com_instructions

inserire file php
admin.instructions.php

aggingere codice


<?php
 defined( '_JEXEC' ) or die( 'Restricted access' );
JToolBarHelper::title('Istruzioni', 'generic.png');

?>

<?php

//cerca un articolo di nome ISTRUZIONI

$db =& JFactory::getDBO();
$queryz = "SELECT * FROM jos_content WHERE title = 'ISTRUZIONI'";

$db->setQuery( $queryz);

$rows = $db->loadObjectList();

foreach($rows as $row)
{
$idd=$row->id;
$name1 = $row->title;
$text1= $row->introtext;
$fulltext1= $row->fulltext;
echo $name1."<br>";
echo $text1."<br>";
}



?>


eseguire comando mysql:

INSERT INTO `cartonia_skintouch`.`jos_components` (
`id` ,
`name` ,
`link` ,
`menuid` ,
`parent` ,
`admin_menu_link` ,
`admin_menu_alt` ,
`option` ,
`ordering` ,
`admin_menu_img` ,
`iscore` ,
`params` ,
`enabled`
)
VALUES (
NULL , 'INSTRUCTIONS', 'option=com_instructions', '0', '0', 'option=com_instructions', 'CQI - QuickIcons', 'com_instructions', '0', 'components/com_instructions/images/jsd_16_16.png','0', '', '1'
);






aggiungere a joomla il modulo CQI custom quick icons
collegare istruzioni al pannello di controllo agiungendo una icona ISTRUZIONI  al pannello di controllo

Nessun commento:

Posta un commento