UrlApprovals


For testing on this page, the approved urls page is Test.UrlApprovals-ApprovedUrls.

A quick test to confirm how unapproved urls display

*http://www.jr.com/
*[[http://www.jr.com/contact/]]
*[[http://www.jr.com/pricing/|Link Text]]

While the first two items display the unapproved url, the third only displays the alias used in creating the link for the unapproved url: [[http://www.jr.com/|Link Text]]

To be able to view the url that is hidden behind the alias used in creating the link, an administrator would need to edit the config.php file to set the $UnapprovedLinkFmt as shown in the documentation (UrlApprovals) (and quoted below).

If that were activated on this page, the resulting tool tip would display the exact same url text for each of the three items above: http://www.jr.com

Unapproved link(approve sites)


From UrlApprovals:

To see what link is to be approved without editing the page a tool tip can be displayed when the cursor hovers over the (approve Links) link that displays the URL. e.g. Example(approve sites)

Add the following setting in your local/config.php:

$UnapprovedLinkFmt =
  "\$LinkText<a class='apprlink' href='\$PageUrl?action=approvesites'
   title='\$LinkUrl'>$[(approve sites)]</a>";
 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.04 00.03 MarkupToHTML begin
 3: 00.04 00.03 MarkupToHTML begin
 4: 00.04 00.03 ReadApprovedUrls Test.UrlApprovals-ApprovedUrls begin
 5: 00.04 00.03 ReadApprovedUrls Test.UrlApprovals-ApprovedUrls end
 6: 00.05 00.04 MarkupToHTML end
 7: 00.08 00.07 MarkupToHTML end
 8: 00.09 00.08 MarkupToHTML begin
 9: 00.10 00.09 MarkupToHTML end
10: 00.10 00.09 MarkupToHTML begin
11: 00.11 00.10 MarkupToHTML end
12: 00.11 00.10 now
Peak memory: 3,404,152 bytes