Do you have a requirement for specialised functionality built on concrete5? I am available for hire at an hourly rate or can offer a fixed price against a well defined requirement.

Magic Data On Block Load

On Block Load parameter interception extends the capability of Magic Data beyond templates to enable the interception and manipulation of any block parameter.

With this extension you can intercept and manipulate parameter data for any block as the data is retrieved from the database.  

Through Magic Data On Block Load you can do things like:

  • Expand tokens within any type of block. e.g. [%PAGE OWNER USERNAME%] will insert the user name of the owner of a page.
  • Change the file-set displayed by a gallery depending on who is viewing a page. e.g. [%UID ATTRIBUTE my_favourite_fileset %], where my_favourite_fileset is a user attribute.
  • Change the file-set displayed by a gallery depending on a page attribute. e.g. [%PAGE ATTRIBUTE gallery_set %], where gallery_set is a page attribute.

Magic Data On Block Load enables you to intercept and modify or completely replace block parameters in regular page areas, global areas and stacks as they are loaded for the block view.

How it Works

Behind the scenes Magic Data On Block Load provides a dashboard interface to develop, test and manage rule sets defining:

  • Which block types will be intercepted.
  • Conditions under which they will be intercepted.
  • How block parameters will be adjusted.
  • Which pages rule sets are applied to.

Within intercepted block parameters, Magic Data tokens and symbols are processed to provide a modified parameter when the block view is rendered.

Please see the associated documentation for detailed guidance and further examples. Once you get the general ideal, there are almost limitless possibilities.

See more addons by JohntheFish.

Purchase

$70.00 Buy FiveSave 44%
Approved by PRB

Our 30 Day Support Policy

  • Replies to tickets every few days.

Support Hosted

  • On concrete5.org

Also Check Out