PoliMorf Theme: How To Leverage Remote Data.

If you want even more detail, read the PoliMorf User Guide.

Instead of saving formats in each page and post, or in the theme Options, you may want to reduce the footprint on the hosted database and store content in the Cloud. Since schematic formats are simple text files, they can be stored like other static content.

All the "polimorf-theme" pages are hosted on Amazon Web Services (AWS) and they contain further references to other files again hosted on AWS.

For instance, the links at the bottom of the page (Pages and Posts, Layouts, Remote) are formatted as a small file that contains a box with 3 columns. Furthermore, the icons are linked using commands that allow easy integration of Font Awesome graphics. (PoliMorf currently comes bundled with Font Awesome 4.7.)

Anytime these links are needed, a reference to the file is used. To illustrate a file stored in a bucket in AWS Ireland, the command "%%REMOTE_SCHEMATIC_AWS::" is used, with the subcommand "SCHEMATIC":

%%REMOTE_SCHEMATIC_AWS::
SCHEMATIC=[
bucketname="datatobeused"
region="eu-west-1"
filename="polimorf-links-at-page-bottom.txt"
]:

The bucket is called "datatobeused" and the file is "polimorf-links-at-page-bottom.txt".

An entire page schematic can be stored on the Cloud, meaning that the only thing that resides on the hosted WordPress database would be the page title, categories and tag references, reference to a thumbnail image for lists, and some text relating to a list excerpt.

To store an entire schematic on the cloud you only have to use the "///REMOTE:" schematic tag. For a page called "page 1" you could have the following:

///REMOTE:
%%REMOTE_SCHEMATIC_AWS::
SCHEMATIC=[
bucketname="datatobeused"
region="eu-west-1"
filename="polimorf-page1-schematic.txt"
]:

You can then update the page content and format by updating the remote file rather than having to log into the WordPress Admin. You can also add style by using in-line style remarks or by using the "%%STYLE::" command.

Refer to the PoliMorf User Guide for more detail.

Pages and Posts

Layouts

Remote

Understood
This website is using cookies. More details