This is the development page for a "more advanced" version of the backlinks action. The version presented on this page offers some functionality equivalent to that in the advanced category action, specifically the option to present the output either in a columnar format or as a list.

This code completely replaces the current ./actions/backlinks.php file (make a backup if you want to try it out). This uses some parameters to control its behavior while the current (1.1.6.0) version has no such flexibility at all. Where applicable, the action parameters are equivalent to those in the advanced category action.

Note that this is still 'somewhat' beta code - note also the 'todo' in the docblock.

<?php

/**

* Generates a list of pages linking to the current one.

*

* Features:

* - specify whether to format the output as columns or as a "flat" list

* - specify a class name as 'hook' for styling

* - a list is generated as type 'menu' so it can be given "menu" styling

* - specify a (main) heading to override the built-in defaults

*

* Note: the list view (type='list' or type='related') is nice for a sidebar while the columnar view

* (type='cols') is more suited for output within the context of a page.