External Link - Sitemap Full Options

Permalink
Hi All - Just a quick post, found a work around to allow full options on external links on the sitemap (rather than having to go via the page search)

1. Extend /controllers/dashboard/sitemap/full.php (we created in a new package)

<?php
defined('C5_EXECUTE') or die("Access Denied.");
Loader::controller('/dashboard/base');
class DashboardSitemapFullController extends DashboardBaseController {

public function on_start() {
$html = Loader::helper('html');
$this->addHeaderItem($html->javascript('sitemapExternalLinkBanjo.js','packageName'));
}

}

2. Create your js folder and add js file

$(document).ready(function(){
$('div[tree-node-alias="LINK"]').attr('tree-node-alias', '');
});

5fly