Skip to content

Exporting Member Details

Barry O'Donovan edited this page Aug 1, 2013 · 2 revisions

Member details can be exported publicly to, for example, create member lists on corporate IXP websites.

This can be done by calling the URL https://www.example.com/ixp/public/member-details to which you can add on two options:

  • format/json to set JSON headers (defaults to standard HTML)
  • template/xxx (default member-details.phtml)

If a template is specified, it'll use [_skins/skinname/]public/member-details/xxx.phtml after stripping all but [a-zA-Z0-9-_]` characters from the given template name.

There are two examples included:

A HTML Example

This was based on LONAP's original members detail page and can be seen in the file _skins/example/public/member-details.phtml.

If your skin configuration is set to example, then this page could be viewed using a URL such as https://www.example.com/ixp/public/member-details. It could be easily edited and included directly into an existing webpage or styled and added as the content of an iframe.

A JSON Example

There is a JSON example in _skins/example/public/member-details/json.phtml. It is quite clunky but it allows customisation without code changes.

This would be accessed as https://www.example.com/ixp/public/member-details/format/json/template/json.