Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rule get_total_links {
- select when explicit get_total_links
- pre {
- totalLinks = datasource:yql({"q":"select%20*%20from%20search.siteexplorer.inlinks%20where%20query%3D%22#{event:param('url')}%22"}).pick("$.query.meta.data.totalResultsAvailable");
- totalLinksInfo = <<
- <div id = "total_links">
- <p>Total links to this page: #{addCommas(totalLinks)}</p>
- </div>
- >>;
- }
- {
- append("#what_links_here", totalLinksInfo);
- }
- }
Add Comment
Please, Sign In to add comment