[EXTENSION]menu

got a big problem!

cant open all sites.


array('url'=>array('route'=>'site/about'), 'label'=>'About'),

got this code. but cant open the site. got this problem also by other selfgenerated sites… ERROR 404

all these files are in the general site direction.

also tried it with the option link instead of route.

anyone got an idea???

I’m tottaly new with Yii.

But got more experience in php

Now i understnad it.

These Sites are static sites. they dont need any action.

So how can i see static sites with this extension?

when you click on the menu item what does the address bar says?

is it

index.php?r=site/about ?

also try ‘route’=>’/site/about’

this error i get:

the adress bar says that:

tried both variations. nothing works yet.

could i realize another structure?

liek sites/static/xyz.php

cause i want to have it in different directions.

I have the same issue as sermon - did you ever find a solution?

Thanks for sharing the great extension. I have been using this menu in my application.

I have one question. Is it possible to display a confirmation message when the user chooses an option from the menu. For instance, if I have an Email option in the memu, can I display a message, "Are you sure that you want to send the Email?" in a dialog box, and if the user clicks No, the menu should not take any action to take the control to the route.

A workaround is to to have no link to this menu item and set an id for this in the htmlOptions




<?php

'url'=> array(         '',

        'htmlOptions'=>array('id'=>'sendEmail')      

 )

?>



Then use jquery




$("#sendEmail").click(function(){

if(confirm("realy send mail")){

...do things

}

});



Very nice and complete extension, thank you for sharing it.

I noticed some html errors on mine (version 1.0.4)… here is the diff file on how I fixed them.


diff -r 27ffe2fa50dd protected/extensions/menu/SMenu.php

--- a/protected/extensions/menu/SMenu.php	Sat Dec 11 01:16:01 2010 +0100

+++ b/protected/extensions/menu/SMenu.php	Sat Dec 11 01:34:44 2010 +0100

@@ -180,7 +180,7 @@

         $subImage = "";

         // If in top menu set class topline

         if(!$sub) {

-          $liClass= "class=topline";

+          $liClass= "class='topline'";

         }

         // If there's a menu item to display

         if($this->_isMenuItem($data)) {

@@ -220,6 +220,7 @@

             $this->_html .= "<ul>\n";

             $this->_html .= $this->_createMenu($data,true);

             $this->_html .= "</ul>\n";

+            $this->_html .= "</li>\n";

           }

         }

       }

(I used same quotes as the original code, even if that wouldn’t have been my personal choice)

Hi All,

Anybody know how to make this menu in a vertical fashion.

i mean, i need to display the menu in left hand side of the page.

pls help me…

Thanks

Sumesh

Hi.

I have need to use SMenu with ajax request.

I mean…

Is there any posbility to make links from SMenu as ajax request ?

I want to load subpages by ajax.

friend,

because when I move the mouse over the menu and shooting, the submenu is appearing like a watermark?

Adriano Silva

I love this menu, I’m struggling with one thing though…it doesn’t seem to recognize mailto: links as being similar to external links. So I can’t put a mailto link on the menu, any ideas on a work around?

Hi everybody.

First, this extension is the best menu’s extension i’ve found. Is flexible and easy to modify.

BUT I have an issue, I don’t know how I can apply a special style to a selected item like CMenu. For example, if a user click on the first item, this item will have a new style, for example, {text-decoration:underline;}.

How could I do that?

Thanks!

After I tried it, I got a message : Alias "application.extensions.menu.SMenu" is invalid. Make sure it points to an existing PHP file and the file is readable.

How to fix it ?

If I should install the extension before, how to do it ? Sorry, I’m newbie, so I couldn’t to install the extension in Yii. Thankyou