This is probably embarrassingly simple, but I'm wondering how to print the current node's URL within the node?

Eg, if a user is on the page

www.example.com/articles/interesting-article-about-stuff

Then on that page is shown:

"To link to this page, copy and paste this code:
www.example.com/articles/interesting-article-about-stuff"

Comments

silverwing’s picture

To link to this page, copy and paste this code:
<a href="http://<?php print $base_path ?><?php print $node_url ?>"> http://<?php print $base_path ?><?php print $node_url ?></a>

put that in the node.tpl.php

I did this on a localhost set up, so I'm not sure how it would work on a live site. (www. issues, etc.)

~silverwing
_____________________________________________
MisguidedThoughts | showcaseCMS

mediafrenzy’s picture

Cool thanks , I'll try it out shortly and post how it goes

mediafrenzy’s picture

Has that code been broken by drupal.org filter? Seems to be missing some php close tags etc?