Drupal Association members fund grants that make connections all over the world.
I'm trying to use PHP to print a URL in the body field of a node. I am using the PathAuto module and my node URLs are in this format:
The URL I need to print should contain this and then automatically append the string "/buy" at the end, so:
I have tried several combinations of the code below, but each time some portion of the URL is removed:
<a href="<?php print $node->path ?>/get">
Quite often I get:
http://www.mydomain.com/fruit/apples/buy (No node title)
Any ideas please?
Thanks very much.