Elxis CMS Forum

Extensions => Modules => Topic started by: asimako on February 13, 2014, 13:15:49

Title: Suckerfish menu (submenus CSS Itemid)
Post by: asimako on February 13, 2014, 13:15:49
Congratulations for your fantastic job!
I have built a horizontal menu with the help of Suckerfish menu module and i want some specific submenus (according to their Itemid) to change their style in the CSS (dsmenu_h). For example when i hover over this specific submenu i want to change the background, make it bold and appear a right arrow 'arrow_v.gif' for this submenu.
Is it a way in CSS code to do that and modify dsmenu_h and use !important code in order to overwrite these settings according to the general for every submenu?

thanks
Title: Re: Suckerfish menu (submenus CSS Itemid)
Post by: webgift on February 14, 2014, 12:22:07
Hello Asimako!
I haven't developed that extension although i could give you an idea of how it could be done. We are going to create several CSS classes for the submenus of Suckerfish. Each class will keep the following format: itemidNO where NO is the Number of itemid. These CSS classes could give you the option of changing the appearance of each sub-menu dynamically from your CSS files (the vertical or the horizontal one). Here is my approach:

Open the file: modules/mod_dsmenu.php and go to line: #105 you will find out this line of source code:
foreach ($children[$id] as $row) {
add exactly below that line of source code:
$indents = array(array( '<ul>', '<li class="itemid'.$row->id.'">', '</li>', '</ul>' ));

That's it! All of the submenus has its own - unique CSS class. Of course with such move it predisposes that you know the Itemid of each sub menu. Now you can add
the absolute CSS class to the proper css file (for horizontal menu: dsmenu_h.css). For example:

li.itemid22 a:hover {font-weight: bold; text-decoration: underline;}
Title: Re: Suckerfish menu (submenus CSS Itemid)
Post by: asimako on February 14, 2014, 16:29:02
thanks for your advice Stavros,

But unfortunately it did not work. As far as i know Suckerfish is a strange menu module. I spent two whole weeks doing and writing only CSS just to configure for 3 - levels (Grandfather -> Father -> Child in horizontal align) and the spectacle was fantastic. The only way to do it is to install and ... play with it. I hope you did the same?
Now let's hope that Ivan will see this post and give us an enlightened answer (i sent him an email yesterday),... and afterwards i move to Elxis 4x but i need a good documentation, a pdf with 1000 pages. I am finishing this project and these are the last touches for me!

And one question i could not configure Superfish menu modul at all as horizontal menu, the Suckerfish was far more easier to install and play with it until 2-levels!

thanks kostas
Title: Re: Suckerfish menu (submenus CSS Itemid)
Post by: webgift on February 17, 2014, 11:19:38
You are welcome, asimako,
It worked for me like a charm! Unfortunately i don't know what changes you have done. As far as i know Suckerfish module as any other extension available on elxis-downloads.com and elxis.net meet to what their developers had developed.
Now if you want something different that the developed one it's up to developer to help you further or not at all.
Title: Re: Suckerfish menu (submenus CSS Itemid)
Post by: asimako on February 17, 2014, 11:51:50
The only way to see it from your side is to send you my CSS file and test it.
I have created (totally 35 grandchildren into different fathers) but with the original css nothing happens (no grandchildren).
So i will send you my CSS file (horizontal) in order to test it!

I send you the link http://www.filedropper.com/dsmenuh  (but i have not tested for grand grand children yet???)

Thanks you again for your effort and interest!
Kostas

Title: Re: Suckerfish menu (submenus CSS Itemid)
Post by: webgift on February 18, 2014, 11:10:41
Hello Asimako!
Please send me FTP access to your website in order to test it live what you've done and improve it to what you want. Instead of that send me the submenus that you want to change according to their Itemids. I will give you an example and then you will do the rest.
Title: Re: Suckerfish menu (submenus CSS Itemid)
Post by: asimako on February 18, 2014, 11:49:10
Thanks again for your interest!

Unfortunately this web site operates on a local Web server (final stage before publication). I have to ask first my superiors especially the board of directors (president) to allow access permission and if i got yes then no problem. But first i have to show him my Web project, but until that moment what i can do is to send you some useful screenshots of the all menus and the web site and do the same menus on your side. The usual web address is the following http://www.filedropper.com/site.
If you want and can change the css file i have no problem, simply post it on the forum or somewhere else accessible. Afterwards you can tell me what to do. I hope you got my CSS???

Actually i want to change all the fathers that have got kids (not the grandfathers)
ie  Υπέρ του ΜΤΠΥ
     Διεύθυνση Διοικητικού
     Διεύθυνση Ασφαλισμένων
     Διεύθυνση  Χαρτοφυλακίου

on a hover event i want these menu items to be bold and a right horizontal arrow appear next to them. Additionally i think menuids are quite visible from the photos. I hope that i was not very boring?

 thanks stavros
Title: Re: Suckerfish menu (submenus CSS Itemid)
Post by: webgift on February 19, 2014, 11:17:10
Hello Kostas!
Unfortunately i can't do that in theory using screen shots sorry. You ask something in particular so i have to check your case individually.

Title: Re: Suckerfish menu (submenus CSS Itemid)
Post by: asimako on February 19, 2014, 13:09:36
Stavros,

I understand your position and i hope you understand mine, and besides i am not the one who takes decisions. What i am asking you is you have got my CSS file (overwrite with the original one in Suckerfish module) and try to create 5 menus (children - father - grandfather any kind of structure, it's up to you ). Your menu definitely with play with any 3 level hierarchy as in my case, and then try to modify one arbitrary menu (it's up to you with any itemid but it's has to be a father!).

If you do that it's OK. Then the problem for me is solved! Here in Athens as you know quite well we have got a lot of bureaucracy and press likes a lot to write ... about scandals especially nowadays. Crete is a different world and people there are very delighted and friendly as far as i know, a different culture!

My warm greetings to the beautiful Heraklion and of course Crete!
Kostas