Please note, this is a STATIC archive of website www.themepunch.com from 28 Sep 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Open Post Content inside Modal Popup

home_topbanner

This article explains how you can use Essential Grid's "Ajax Post Content" feature with the popular "Easy Modal" plugin.

1. Install and activate the "Easy Modal" plugin.

add-new-plugin
install-plugin

2. Create a new "Easy Modal".

modal-admin
add-new-modal
2.1 Give the new modal a name, and choose the "Load Sitewide" option.
load-site-wide
2.2 Next, in the "Display Options" tab, choose "None" for the "Animation Type".
modal-display-options
2.3 Next, click the "Publish" button to officially create the new Easy Modal.
publish-modal
2.4 Finally, inside the "Examples" tab, copy the first hyperlink example to your clipboard.
copy-modal-link

3. Next, inside your your Essential Grid's admin, visit the "Ajax" tab, and then select the "Post Content" checkbox.

ajax-settings
3.1 Next, scroll to the "Prepend Content" section, and paste the Easy Modal hyperlink that you previously copied to your clipboard.
modal-hyperlink
3.2 Then scroll to the "Advanced" section, and type in "esgOpenTheModal" into the "JavaScript Callback" section.
js-callback
3.3 Next, scroll up to the "Ajax Container" section, and apply the 3 settings shown in the following screenshot.
ajax-container-settings
3.4 And then apply the following style and position options for the navigation arrows.
ajax-navigation-style
3.5 Finally, copy the "Container Shortcode" to your clipboard.
container-shortcode

4. Next, head over to the "Easy Modal" plugin's main admin page, and click "Edit" for the previously created modal.

edit-modal
4.1 Then inside the "General" tab, paste the Essential Grid's "Ajax Container Shortcode" that you previously copied to your clipboard into the Modal's "Content" section.
esg-ajax-shortcode
4.2 Then head back to the Easy Modal's main admin page, and copy the modal's "Class" name to your clipboard.
modal-class-name

5. From the Essential Grid's main admin page, click "Edit Skin" for your grid.

edit-skin
5.1 Next, select the skin element that you want to use to open the modal window, and then from "Layer Settings -> Link/SEO", choose "Ajax" for the "Link To" option.
ajax-assignment
5.2 Then inside the "CSS Editor", enter the following CSS (see code comment).
css-editor

ajax-modal-css

6. Head back to your Essential Grid's settings page, and enter the following code into the "API/JavaScript" section (see code comment).

ajax-modal-js

7. Final basic result:

ajax-post-content