Guest User

Untitled

a guest
Jul 17th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. rule get_total_links {
  2. select when explicit get_total_links
  3. pre {
  4. totalLinks = datasource:yql({"q":"select%20*%20from%20search.siteexplorer.inlinks%20where%20query%3D%22#{event:param('url')}%22"}).pick("$.query.meta.data.totalResultsAvailable");
  5. totalLinksInfo = <<
  6. <div id = "total_links">
  7. <p>Total links to this page: #{addCommas(totalLinks)}</p>
  8. </div>
  9. >>;
  10. }
  11. {
  12. append("#what_links_here", totalLinksInfo);
  13. }
  14. }
Add Comment
Please, Sign In to add comment