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: 3 Hours, 22 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

Button to display an article with Modalizer?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Button to display an article with Modalizer?
#7572
Button to display an article with Modalizer? 1 Year, 11 Months ago  
I know how to create a button in HTML/javascript to display an article. However, I couldn't get the button to display the article in a modalizer window. I was assuming that I just had to add the class="modal" attribute, but it didn't work.

Is there a trick to get this to work?

Thanks,
Jens
Jens Straten
Posts: 7
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7573
Re: Button to display an article with Modalizer? 1 Year, 11 Months ago  
Modalizer only works on the <a> tags. So if you add that class to the <a> tag, and set up the Modalizer system plugin correctly, it should work.
Peter van Westen
Admin
Posts: 9169
User Online NowClick 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.
 
#7574
Re: Button to display an article with Modalizer? 1 Year, 11 Months ago  
Hi Peter,

I tried the following without success:


<a class="modal">
<div style="text-align: center;">
<button onclick="window.location='http://www.domain.com/user-profile/registers'">Register Account</button></div>
</a>


Did I misunderstand your answer?

Thanks,
Jens
Jens Straten
Posts: 7
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7577
Re: Button to display an article with Modalizer? 1 Year, 11 Months ago  
Yeah that won't work. The link needs to be on the <a> tag with a href. An onclick won't work. Now you just have an empty <a> tag. So Modalizer cannot see what page to open.

So best is to just make a normal link like:
<a class="modal" href="http://www.domain.com/user-profile/registers">
<div style="text-align: center;">
<button>Register Account</button></div>
</a>


Or use the tag syntax like:
{modal url=http://www.domain.com/user-profile/registers}
<div style="text-align: center;">
<button>Register Account</button></div>
{/modal}
Peter van Westen
Admin
Posts: 9169
User Online NowClick 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.
 
#7596
Re: Button to display an article with Modalizer? 1 Year, 11 Months ago  
Thanks Peter!

I don't really have a strong HTML/Java background and so I can easily go off in the wrong direction...

The second option works great for everything except the Community Builder registration form. I am guessing that there is something in the form that makes it incompatible with shadowbox. Basically, it only works with fancybox for that specific module... When I switch it to shadowbox it opens two new browser windows instead.

I might check in the CB forum if someone has an idea why it wouldn't work.

Best regards,
Jens
Jens Straten
Posts: 7
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7598
Re: Button to display an article with Modalizer? 1 Year, 11 Months ago  
If it works with fancybox, it probably works with HighSlide too.
Those use jquery, the others use mootools.

Mootools is pretty fragile. When multiple extensions use their own mootools scripts, then you will probably get conflicts.
Peter van Westen
Admin
Posts: 9169
User Online NowClick 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: 1
Moderators: Peter van Westen
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support
hosting joomla