17 votes

Macro Service

Umbraco Macro Service exposes standard Umbraco Macros directly to the web for use in scripts or to provide direct data access to data using the already familiar Macro.

Similar to the Umbraco Base (and heavily borrowed against), Macro Service makes it easier to access your umbraco data for use in your javascript and other applications.

How?

Access your macro through the HttpModule (once configured).  

  • /macro/alias (default nodeId set in config)
  • /macro/alias?nodeId=1234
  • /macro/alias?param1=abc&param2=def&nodeId=1234
You can push parameters via querystring, post, etc.  You can also configure and lock parameters via the configuration file and tool. 

Possible Usages:

  • RSS feeds
  • JSON feeds
  • XML feeds
  • Ajax Panels
  • Images, PDF, etc? (maybe)

Why?

Many non-developer types use macros to extract data and then use a single template to access this data through altTemplate style techniques.  This provides a means to directly expose the data without needing an additional template.

Screenshots

Package owner

Casey Neehouse

Casey Neehouse

Casey has 483 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (100%)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Casey Neehouse
  • Created: 31/07/2012
  • Current version 1.1.0
  • License MIT
  • Downloads: 3003