How to add a C5 Modal window

The above button is created using the following code in a singlepage.

To change it to your own needs there are some changes you need to make.

You can view the source of the file by going to <root>/concrete/js/ccm.dialog.js

or View version 5.4.0.3 below

To add the required javascript and CSS your code should contain the following:

Comments:

Posted by Francois on
Actually, the option Element is in case you want to use a div in your HTML as a modal window instead of a url to a page.

For example:

function google() {
$.fn.dialog.open({
title: 'This is the title',
element: $('#mydiv'),
width: '85%',
modal: false,
height: '75%'
});
}


Content of my window
Leave a Reply



(Your email will not be publicly displayed.)

Please type the letters and numbers shown in the image.Captcha Code


Concrete5

Game Servers

How to Make a Modal in C5

How to make a Concrete5 Modal window.

Package Uploader

Themes

Dropdown Template

A Custom template for the auto nav that makes it easier to make dropdown menus

Twitter Anywhere