Joomla implements the component pop-up mode (modal) window method, joomlamodal_php tutorial

Source: Internet
Author: User
Tags getting started with php smarty template

Joomla implements a method of ejecting a modal (modal) window on a component, Joomlamodal


This article describes the method by which Joomla implements the component to eject a modal (modal) window. Share to everyone for your reference, as follows:

The most critical JS in/media/system/js/modal.js. There are two ways to do this, all of which are modified by the template file default.php of the extension component.

Way One:

<?php jhtml::_ (' Behavior.modal ', ' a.modal ');? >view

As simple as this can be achieved, the rest of the things joomla! all to help you deal with. Be happy!

Way two:

 
  View

Generally still use the first kind of good, if you want to study modal.js exactly how to achieve, the second way to make an introductory example.

More about Joomla related content readers can view this site topic: "YII framework Introduction and common skills Summary", "PHP Excellent Development Framework Summary", "Smarty Template Primer Basic Tutorial", "thinkphp Common Methods Summary", "PHP object-oriented Programming introduction Tutorial" , "PHP String Usage Summary", "Getting Started with Php+mysql database operation" and "PHP common database Operation Skills Summary"

It is hoped that this article is helpful to everyone based on Joomla program design.

http://www.bkjia.com/PHPjc/1125230.html www.bkjia.com true http://www.bkjia.com/PHPjc/1125230.html techarticle Joomla implements a method of ejecting a modal (modal) window for a component, Joomlamodal This example describes the method by which Joomla implements the component to eject a modal (modal) window. Share for the big ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.