|
simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
I just found that it is also possible to open a modalizer popup from within a menu item:
You just need to configure it so that it opens links with a certain css class, e.g. "modalbox", add an "External Link" menu item to your menu, insert the target URL into the input field in the menu manager as usual and append the class to it as in the following example
http://www.google.com" class="modalbox
(to avoid css conflicts I prefer using another class name than "modal")
|
|
|
|
|
|
|
Re: simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
Great trick 
Didn't know that.
|
|
|
|
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
|
|
|
Re: simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
I just found it out while thinking about some usability issues and playing around with it yesterday. I thought here is the best place to share.
I have tested it in the superfish menu module, but should work everywhere.
|
|
|
|
|
|
|
Re: simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
|
I was thinking about making a 'patch' for the core menu manager and module to be able to set class names per item.
Because that is a real lack in features.
But this will do for me quite nicely! You just saved me a bunch of time and added some nice tricks to my arsenal of advices (I take it there is no copyright on your idea?!).
|
|
|
|
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
|
|
|
Re: simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
|
Hmmm, done some tests. And this doesn't seem to work on the core menu modules.
Then you get links like:
index.php?option=com_...&id=3%5C%22+class%3D%5C%22modal&Itemid=125
Also it would create a problem with classes added to the links by the module, like "active" and such.
So it only works in some cases, I guess (superfish menu module).
|
|
|
|
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
|
|
|
Re: simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
hm... maybe it really depends on the menu module. I just tried the following in the URL field:
http://www.google.com" onmouseover="alert('close me!');
and it is amazing that it works ...
Maybe we need a special way for encoding the URL before entering it in the URL field to make it work with the default menu module.
|
|
|
|
|
|
|
Re: simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
|
just sent you the link to the experiment via contact form, for the case you want to see it in action and inspect the superfish menu output.
|
|
|
|
|
|
|
Re: simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
another funny observation is that I can also put html into the "page title" field unter system parameters in a menu item definition  (at least it works well with my configuration)
Here is what I tried in the "page title field"
Dokumentation <span style="float:right;width:60px;background:#000;color:white;"><a href="http://www.google.com" class="modalbox">hello google</a></span>{module Logo}
(carefully test plugins/module inclusion. with a simple user module it works fine, another test with another module did lead to a white screen)
|
|
|
|
|
|
|
Re:simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
|
Great usage I have been working a long time to find this. My problem is with auto size. When I set Modalizer to highslide and highslide to auto then the window is not autosized.I have read through the forum but have not found help for this issue using this amazing shortcut.
Thanks,
John
|
|
|
|
|
|
|
Re:simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
|
Another option: is there a syntax that can be used in this simple trick to set the width and height manually?
Thanks again,
John
|
|
|
|
|
|
|
Re:simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
|
Hey John,
I have to add the information that I found out that I does not work with every menu module. In some cases the html is modified by the module output and the trick does not work. So far I got it running with the superfish menu, but not with the default main menu. i don't know the reason
|
|
|
|
|
|
|
Re:simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
|
I tihnk Peter already mentioned that it can come to JavaScript problems in some cases, so you should test carefully before publishing it on a live site
|
|
|
|
|
|
|
Re:simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
|
Reason is that the core menu module strips the title from any characters that shouldn't be in the title (like double quotes). Superfish menu doesn't do this, so you can misuse the title.
|
|
|
|
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
|
|
|
Re:simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
|
John,if you know javascript, maybe it helps to have a look on highslide.com's documentation section
|
|
|
|
|
|
|
Re:simple trick: open modalizer popup from menu item 1 Year, 11 Months ago
|
|
|
@Peter, I already thought something like that. Do you think this could be a security risk?
|
|
|
|
|
|
|
Re:simple trick: open modalizer popup from menu item 1 Year, 10 Months ago
|
|
|
Sorry it took so long but thank you so much for your help it works very well! Now to learn superfish.
|
|
|
|
|
|
|
Re:simple trick: open modalizer popup from menu item 1 Year, 10 Months ago
|
|
|
Hi,
Also, I tried to refer to hrm.scaffnet.com" class="modal in the wrapper link test (Home-->Scaffnet --> Employee Home--> Test)
But I am getting it inline, to avoid this, I used external link as hrm.scaffnet.com" target="_blank to get this working.
Also, I used squeezebox as a default setting and this is working fine (greybox close was not working). check out hrm.scaffnet.com
Scaffnet --> Employee Home --> Test (This may not be forever)
|
|
|
|
|
|
|
Re: simple trick: open modalizer popup from menu item 1 Year, 9 Months ago
|
|
I've tried this code (extern link menu), it works:
MY_SITE/index.php?option=com_ccnewslette...tmpl=component" class="mainlevel nn_squeezebox" rel="{handler:'iframe',size:{x:500,y:250}}"
Incredible! I can set size too !!
|
|
|
|
|
|
|
Re: simple trick: open modalizer popup from menu item 1 Year, 5 Months ago
|
|
|
How is it that you're getting control of the popup size when using class=modalbox? I tried what's posted but it wouldn't work.
What I'm trying to do is have menu items open modalizer boxes of different sizes. Right now all boxes modalizer opens are the size set in the plugin parameters.
|
|
|
|
Last Edit: 2010/09/05 20:10 By robroka.Reason: typos
|
|
|
|
|
|
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
|
|
|