Hello all,
I'm really having some headaches here. Be advised I'm walking myself through the problem right here and I'm a novice coder so bear with me :-)
I'm trying to display custom links I can make with a patched Interwiki module (for Technorati spiders), at the bottom of all Blog posts (links must be within the body because they must appear in the RSS feed), and display link text based on the current node (Blog post title and Group name).
I can produce links using my Interwiki setup in normal ways without a problem. The 2 areas I need help in are:
1) Displaying link text based on the current node (Blog post and Group name).
This is what I've done (in a custom Block body):
Code:
<?php
global $user;
print "Technorati Tags: [[tech:Current Node's Title]] | [[techd:Current Node's Group Name]] | [[tech:$user->name]]";
?>
Output:
Technorati Tags: Current Node's Title | Current Node's Group Name | root
Now, the global $user; and $user->name is arbitrary. I just want to show what I want to do with the Blog title and Group name. It works, but it's not what I want. I tried global $node; with $node->title and global $group; with $group->name, but no dice :-(
What PHP code can I use to accomplish this?
2) Automatically displaying these links at the bottom of the body of all Blog posts.
In the above example, I made custom Block > inserted the code in the Block body > displayed the Block below the Blog post. This will not work for me though however, because Blocks are not in the RSS feed (Blog body).
Where can I insert PHP code to have links pop up at the bottom of the body of every Blog post?
Thanks in advance,
_/03
Comments
Comment #1
magico commentedClosing support requests older than 1 month.