Elxis CMS Forum

Support => General => Topic started by: Romero on August 07, 2010, 12:20:20

Title: how to make a drop-down menu?
Post by: Romero on August 07, 2010, 12:20:20
I do travel site. in the top panel (in header) to do a drop-down menu of categories (they will be 2-3 articles).
Prompt please, what modules to do this?
as done here _http://www.thdhellas.gr _http://www.kmyrillas.gr
Title: Re: how to make a drop-down menu?
Post by: Ivan Trebješanin on August 07, 2010, 12:43:50
I think this will do:

http://www.elxis-downloads.com/downloads/menus/3.html
Title: Re: how to make a drop-down menu?
Post by: webgift on August 07, 2010, 12:45:52
It's IOS DV Menu : http://www.elxis-downloads.com/downloads/menus/55.html module on _http://www.kmyrillas.gr and _http://www.thdhellas.gr websites!

Ivan i saw it on their's html view source export! ;)
Title: Re: how to make a drop-down menu?
Post by: Romero on August 07, 2010, 14:32:34
OK, but how to add that category fell and after the transition immediately from her article to appear?
draw the conclusion in the top menu: Table - Content Section. categories do not appear and articles in tabular form :(
Title: Re: how to make a drop-down menu?
Post by: webgift on August 07, 2010, 15:23:21
Have you read this article about Creating Menu Items : http://wiki.elxis.org/wiki/Navigation_and_menus#How_do_I_create_a_new_Menu_Item.3F on Elxis Wiki?
Title: Re: how to make a drop-down menu?
Post by: Romero on August 07, 2010, 17:56:53
Have you read this article about Creating Menu Items : http://wiki.elxis.org/wiki/Navigation_and_menus#How_do_I_create_a_new_Menu_Item.3F on Elxis Wiki?
+ 1 very helpful
left module css style change, under the template.
do not show you need to create it anew, or you can copy the code from the template?
Title: Re: how to make a drop-down menu?
Post by: webgift on August 07, 2010, 18:25:20
Unfortunately i can't understand you Romero.
Title: Re: how to make a drop-down menu?
Post by: babis1 on August 07, 2010, 18:55:15
http://www.thdhellas.gr http://www.kmyrillas.gr
i use the ds menu http://www.elxis-downloads.com/downloads/menus/3.html there and the menu position is top, after if you would like to change the menu css you must change the dsmenu_h.css .... you must put and this somewhere before </head> in index.php....<?php echo '<link href="'.$mainframe->getCfg('live_site').'/modules/dsmenu/dsmenu_h.css" rel="stylesheet" type="text/css" />'; ?>
Title: Re: how to make a drop-down menu?
Post by: webgift on August 07, 2010, 19:38:20
Ok i confused DV with DS menu!  ;D

you must put and this somewhere before </head> in index.php....<?php echo '<link href="'.$mainframe->getCfg('live_site').'/modules/dsmenu/dsmenu_h.css" rel="stylesheet" type="text/css" />'; ?>

I think that there is a readme.txt file inside of this package which write instructions analytically !
Title: Re: how to make a drop-down menu?
Post by: Romero on August 07, 2010, 19:59:14
babis1: Yes, I understood, and so did.
but I use a template and style Philoxenia modules / dsmenu / dsmenu_h.css for it is not appropriate. (Navigation blue:))
That said, you need to do under the new template, or can copy from the template Philoxenia code style.
thanks
Title: Re: how to make a drop-down menu?
Post by: babis1 on August 08, 2010, 10:45:10
you mean you cant install the module?
if you can install it then go and unpublished everything in the top positions, then publish in top the ds menu after go to the mod and write in
Module Class Suffix:    -nav
give here
Menu Name:    mainmenu (or the menu that you want to go to drop down menu)
and here
Menu Style: horizontal
go to philoxenia index.php and delete in line 54    <div class="xenia_nav_<?php echo $philoxenia->pget('navbar'); ?>"> the red one so after you have
<div class="xenia_nav">
i havent install before the philoxenia templ
but i thing there may be the problem (i dont thing that you have problem with the search mod but if you have delet that from index.php ........
<div class="xenia_searchbox">
         <?php elxLoadModule('mod_search', -1); ?>
      </div>
and look in line 55    <?php mosLoadModules('top', -1); ?> maybe you need -2 or 0
Title: Re: how to make a drop-down menu?
Post by: datahell on August 08, 2010, 13:57:15
The philoxenia template uses template parameters. You dont have to edit anything on the template's index.php. To change the look and feel of the template set the template parameters properly and if you wish to change colours edit the css. Don't touch the index.php file.

Philoxenia on Elxis wiki (http://wiki.elxis.org/wiki/Template_philoxenia)

Detailed Philoxenia guide for modules positions and suffixes (https://www.isopensource.com/files/philoxenia_module_positions_and_suffixes.txt)

If you need a template with horizontal dropdown menu you may check IOS Clean or Imagination or other template with that functionality integrated. demo of IOS Clean (http://eshop.isopensource2.com/), demo of Imagination (http://imagination.webgift.gr/).
Title: Re: how to make a drop-down menu?
Post by: babis1 on August 08, 2010, 14:37:21
so if the templ came with parameters maybe its complicate to make some custom changes, as yannis say if you dont know what exactly you do dont change the index.php
Title: Re: how to make a drop-down menu?
Post by: Romero on August 08, 2010, 16:30:45
This is how a top menu, and title of the article wryly depicted.
(http://s001.radikal.ru/i196/1008/1b/bba47368be9a.jpg)
Title: Re: how to make a drop-down menu?
Post by: datahell on August 08, 2010, 17:52:54
This is normal. You use a menu on a template that was not designed for it.
You should either change the menu's CSS or the template. You can not put any module on any template without modifying its css first in order to suit the template.
Title: Re: how to make a drop-down menu?
Post by: babis1 on August 08, 2010, 19:45:02
menu----you are in the right way, go to modules/dsmenu/dsmenu_h.css and make some changes and first of all you have all ready the orange bgcolor (or image) in nav so you don't have to give bgcolor in dsmenu (in a only in hover), you must fix the paddings left and top, the font size............, make some tests

title--check if this happens in all browsers, and if yes you must edit the css of template and give some px padding top at contentpaneopentext
------------actually those all are redesign of template--------------