UrlApprovals


A quick test to confirm how unapproved urls display

*http://www.jr.com/
*[[http://www.jr.com/]]
*[[http://www.jr.com/|Link Alias]]

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 Alias]]

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


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. [(approve links) edit diff]

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.21 00.20 MarkupToHTML begin
 3: 00.21 00.20 MarkupToHTML begin
 4: 00.21 00.21 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 5: 00.22 00.21 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 6: 00.33 00.32 MarkupToHTML end
 7: 00.36 00.35 MarkupToHTML end
 8: 00.36 00.35 MarkupToHTML begin
 9: 00.38 00.36 MarkupToHTML end
10: 00.38 00.36 MarkupToHTML begin
11: 00.38 00.37 MarkupToHTML end
12: 00.38 00.37 now
Peak memory: 3,709,616 bytes