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
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Casey Neehouse
  • Created: 31/07/2012
  • Current version 1.1.0
  • License MIT
  • Downloads on Our: 2.7K