Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » Joomla »

Ayuda con la posicion de mi menu

Estas en el tema de Ayuda con la posicion de mi menu en el foro de Joomla en Foros del Web. MMM.. NECESITO AYUDA CON MI MENU POR FA QUE NO PUEDO COLOCARLO EN MI INDEX.PHP APARECE ESTO QUE LLAMA AL MENU .. <head> <jdoc:include type="head" ...
  #1 (permalink)  
Antiguo 20/05/2010, 14:55
Bee
 
Fecha de Ingreso: mayo-2010
Mensajes: 1
Antigüedad: 13 años, 11 meses
Puntos: 0
Ayuda con la posicion de mi menu

MMM.. NECESITO AYUDA CON MI MENU POR FA QUE NO PUEDO COLOCARLO
EN MI INDEX.PHP APARECE ESTO QUE LLAMA AL MENU ..
<head>
<jdoc:include type="head" />
<?php
include_once(JPATH_ROOT . "/templates/" . $this->template . '/lib/php/menu.php');
include_once(JPATH_ROOT . "/templates/" . $this->template . '/lib/php/gk_head.php');
?>


Y AL IR A ESE ARCHIVO APARECE ESTO

// no direct access
defined('_JEXEC') or die('Restricted access');

$document = &JFactory::getDocument();
$renderer = $document->loadRenderer( 'module' );
$options = array( 'style' => "raw" );
$module = JModuleHelper::getModule( 'mod_mainmenu' );
$main_navigation = false;

$menu_name = $this->params->get("menuname", "mainmenu");
$mtype = $this->params->get("menutype", "moomenu");

if($mtype == "moomenu" or $mtype == "suckerfish") :
$module->params = "menutype=$menu_name\nshowAllChildren=1";
$main_navigation = $renderer->render( $module, $options );
else :
$module->params = "menutype=$menu_name\nshowAllChildren=0";
$main_navigation = $renderer->render( $module, $options );
endif;

?>


YO CREE UN MODULO DE MENU LLAMADO MENUFINAL QUE ES DROPLINE HORIZONTAL Y QUIERO PONERLO EN LA MISMA POSICION DEL ACTUAL PERO SU UBICACION NO APARECE EN LAS OPCIONES PARA COLOCARLO.. YA QUE ESTA INCLUDO DIRECTAMENTE EN EL INDEX.PHP..


REEMPLACE EL MOD_MAIN MENU POR MI MOD_MENUFINAL.. ME APARECE PERO NO ME DA EL EFECTO DE DROPLINE Y NO SE VEN LOS SUBMENUS..
QUE PUEDE ESTAR MALO..???
OJALA ME PUEDAN AYUDAR..
aqui les dejo el codigo que debo borrar que no corrresponde..
ojala me puedan ayudar..

LO DEJE ASI...

// no direct access
defined('_JEXEC') or die('Restricted access');

$document = &JFactory::getDocument();
$renderer = $document->loadRenderer( 'module' );
$options = array( 'style' => "raw" );
$module = JModuleHelper::getModule( 'mod_menufinal' );
$main_navigation = false;

$menu_name = $this->params->get("menuname", "mainmenu");
$mtype = $this->params->get("menutype", "moomenu");

if($mtype == "moomenu" or $mtype == "suckerfish") :
$module->params = "menutype=$menu_name\nshowAllChildren=1";
$main_navigation = $renderer->render( $module, $options );
else :
$module->params = "menutype=$menu_name\nshowAllChildren=0";
$main_navigation = $renderer->render( $module, $options );
endif;

?>



ojala me puedan ayudar o sino decir como posicionar mi menu en el mismo lugar actual que no aparece en el administrator como posicion

OJALA ME PUEDAN AYUDAR
  #2 (permalink)  
Antiguo 20/05/2010, 17:18
Avatar de Larenz
Colaborador
 
Fecha de Ingreso: enero-2007
Ubicación: Nicaragua
Mensajes: 1.398
Antigüedad: 17 años, 3 meses
Puntos: 55
Respuesta: Ayuda con la posicion de mi menu

Realmente medio logro entenderte.. o sea has hecho todo un alboroto. Se supone que la plantilla en cuestión ya viene integrado la función dropdown y tu estás queriendo agregar un menú dropdown, no entiendo completamente, a medias.

Pero bueno, según lo que escribes aún no veo que hayas insertado la posición creada en el archivo templateDetails.xml de tu plantilla. Abre ese archivo y fíjate que dentro de él están escritas las posiciones que tiene la plantilla. Si metes allí un nuevo nombre de posición, entonces lo podrás ver en el backend de Joomla.

Aunque prácticamente este ahora es innecesario ya que solo basta con crear la posición en la plantilla e irte al backend de Joomla y escribir a mano la posición creada y automáticamente te mostrará el módulo en la posición creada sin que previamente lo hayas hecho dentro de templateDetails.xml
__________________
¡No lo sé todo! Pero comencé como tú, ¡sin saber nada!
Encuéntrame en Facebook: Perfil + Página

Etiquetas: posicion
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:46.