Mobile Adaptative Pages

Mobile Adaptative Pages
Buy    $20.00

Version 1.00
Author Arkol
License: ImpressPages
Download count for paid plugins is not available

This plugin allows to create mobile page version from the standard IP pages. Some steps of the task can be automatically or by hand.

Description

 This plugin allows to create mobile page version from the standard IP pages. Some steps of the task can be automatically or by hand.

It is necessary applying a patch to the IP core for create an event on Recovery Page.

All the needed is explained in readme file in the plugin folder.

The working is simple: when the condition chosen by configuration is reaching the Mobile Page substitute the Base Page.

The plugin has two Detection Mode: Screen (based on screen width, according to Screen Width setting) and Mobile (rely on IP internal function isMobile()).

In the Screen width mode, the plugin will do the changing of the page all the time the width is equal or less than that configured.

If Mobile mode is used when the function condition will be implemented so the changing will occur.

Installation

 PRELIMINARY PATCH
It's necessary applying a patch in the ImpressPages core on: Ip\Internal\Pages\Model.php. It is needed to create an event on recovery page. Locate in this file the function public static function recoveryDeletedPage($pageId) and below this instruction:

    ipDb()->update('page', array('isDeleted' => 0), array('id' => $pageId));
    
include the following line:

    ipEvent('ipPageRecovery', array('pageId' => $pageId));
    
Finally the code in the file looks like this:

    ipDb()->update('page', array('isDeleted' => 0), array('id' => $pageId));
    ipEvent('ipPageRecovery', array('pageId' => $pageId));
    return 1;

Ready! the patch was applyed and the necessary event ipPageRecovery has been created.

Next, install the plugin like any other.

Usage

 THE PLUGIN CONFIGURATION

Active: activate or not.

Detection Mode: The plugin has two Detection Mode: Screen (based on screen width, according to Screen Width setting) and Mobile (rely on ImpressPages internal function isMobile()).

Screen Width: The screen width below from that the mobile page is displayed.

Auto Insert Page on Create: If Yes, all of pages created on Impresspages environment no suffixed with -xmob will be inserted, automatically, into mobile_adapter database table for further adaptation if necessary. V.g.: You create a page with the title: Some Page Title (this page will be inserted); and another with this: Some Page Title-xmob (this won't be included). Yes setting will do, besides, any page updated that has its url path changing to match another existing one, added by suffix -xmob will take its automatic inclusion into database as Mobile Page. Example: one-certain-exisiting-url (existing page) and one-certain-existing-url-xmob (updated page to matching).

If you choose "No" in the setting, so all of pages will need be manually handled.

The administration interface is auto-explain however it is important to know that each mobile page for effective exhibition is needed to be marked as Active Page.

The working is simple: when the condition chosen by configuration is reaching the Mobile Page substitute the Base Page