Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 4 Hours, 11 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

simple trick: open modalizer popup from menu item
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: simple trick: open modalizer popup from menu item
#7621
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")
mbms
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7625
Re: simple trick: open modalizer popup from menu item 1 Year, 11 Months ago  
Great trick
Didn't know that.
Peter van Westen
Admin
Posts: 9169
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
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.
 
#7628
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.
mbms
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7633
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?!).
Peter van Westen
Admin
Posts: 9169
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
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.
 
#7634
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).
Peter van Westen
Admin
Posts: 9169
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
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.
 
#7635
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.
mbms
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7637
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.
mbms
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7652
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)
mbms
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7851
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
John T
Posts: 4
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7852
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
John T
Posts: 4
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7853
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
mbms
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7854
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
mbms
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7855
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.
Peter van Westen
Admin
Posts: 9169
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
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.
 
#7856
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
mbms
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7857
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?
mbms
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7912
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.
John T
Posts: 4
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#8014
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)
Ashiff
Posts: 7
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#8895
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 !!
Jabber J
Posts: 10
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#10870
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.
Rob Roka
Posts: 2
User OfflineClick here to see the profile of this user
Last Edit: 2010/09/05 20:10 By robroka.Reason: typos
The administrator has disabled public write access.
 
#10872
Re: simple trick: open modalizer popup from menu item 1 Year, 5 Months ago  
Please read the modal syntax description on:
www.nonumber.nl/modalizer/modalsyntax
Peter van Westen
Admin
Posts: 9169
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
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.
 
Go to topPage: 12
Moderators: Peter van Westen
hosting joomla
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support