Yeah, deleting the files inside the Assets directory did the job, now i can access my CSS file, but each time i update it i have to manually go to the Assets directory and delete the files to trigger an update. Is there a way to, for debugging/developing, triggering the update of the Assets directory? (think of it as a cache->invalidate, if it was a caching mecanism)
Modify the extension in a way so that it pusblishes its assets on a per file basis. For published files, yii automatically checks the time the file has been modified and will republish it if necessary. As it doesn’t work for you, I guess this component publishes on a per directory basis, where this check is omitted. This might be the more straight foreward aproach. However, let me share some additional thoughts…
Don’t modify the component css at all. Define more specific css rules within your application theme css files.
For example (imaginary one), if the component formats the content for all <p> elements as blod, but you dont want it bold but normal weight and green colored… The components css file would include a rule:
p {
font-weight: bold;
}
You leave them as they are, but you know you placed the component within a wrapper div that has the id "wrapper". So you can specify your own css rule (somewhere in application theme css):
div#wrapper p {
font-weight: normal;
color: #00FF00;
}
This rule would overwrite the existing one the component defines itself, because it is more specific.
The second aproach might be especially usefull if you seperated your applications theme css files into different units for maintenance reasons. Think of a scenario where you use a seperate colors.css that only defines rules related to foreground/ background colors and maybe background images that need to fit the current color scheme. If you want to modify the color scheme of your application one day (or create a second one and maybe give the user the choice to switch between them), it would be much easier to only have to edit this one file instead of the one big application theme file plus all the css files of all the components you have used in your application.
This will override the style you may have entered when creating the widget. That’s the way I like it but you might want to do something else. Just keep in mind that this CSS uses the bg.gif that comes with the default Yii main menu and needs a proper URL if you place this CSS somewhere else.
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.
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?
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;}.
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