Closed (fixed)
Project:
Activity
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2009 at 14:31 UTC
Updated:
1 Sep 2009 at 07:40 UTC
Hi,
I'm a little confused as to how to add a node url to the activity in the template settings.
I tried : [realname-link] created [title]
The title of the node prints, but the link outputs as /[node-url]
Where have I gone wrong :)
Look forward to any reply, and thank you.
Lilian
Comments
Comment #1
liliplanet commentedOops, I just saw that the a href does not show in above post and shows as a link:
This is what's currently in the template field.
[realname-link] updated a href="[node-url]">[title]
Comment #2
liliplanet commentedHi,
Still struggling to make this work :) I have auto node-titles installed with nodes preceded by a taxonomy term.
Have now tried:
[realname-link] updated a href="[title]">[title] = wrong url
[realname-link] updated a href="[term]/[title]">[title] = wrong url
[realname-link] updated a href="[menu-link-title]">[title] = no title or url
[realname-link] updated a href="[menupath]">[title] = no title or url
[realname-link] updated a href="[homepage]/[title]">[title] = wrong url
Please note I've not added the < a href as it shows as a link on the forum.
I must be missing something, and look forward to any reply.
Thank you so much!
Lilian
Comment #3
Scott Reynolds commented[realname-link] updated <a href="[node-url]">[title]</a>thats valid html. what you posted before isn't
Comment #4
liliplanet commentedThank you Scott, yes that is exactly how I have it currently:
[realname-link] updated <a href="[node-url]">[title]</a>I removed the bracket before the a href's in my posts on top as it created a link on the forum (I should have used code, sorry).
As mentioned before, the url puts out as :
www.mysite.com/[node-url]
The title appears, but [node-url] shows in the place of the supposed path.
So the path does not create the correct output.
Looking so forward to support, and thank you again.
Lilian
Comment #5
liliplanet commentedHi again Scott,
I've just done a complete re-install of Activity on my site, and in the activity templates added:
[realname-link] updated <a href="[node-url]">[title]</a>Wondering what could be causing this ..
Look most forward to your reply, and thank you so much for your help.
Lilian
Comment #6
Scott Reynolds commentedO ok was confused where the node-url token came from. now i makes sense, it doesn't exist :-D
use this
Comment #7
Scott Reynolds commentedDef not a bug node-url token doesn't exist yet
Comment #8
liliplanet commentedThank you Scott, that works! Most appreciate your help.
All the best,
Lilian
Comment #9
junro commentedHello,
It doesn't work for me.
If you click on the url from the all_activities page, you will have "/all_activites/node/[nid]" like url.
If you using a block on a user page, you will have "/users/node/[nid]" like url.
How to have go to the url "/node/[nid]" only to make it work?
Thanks :)
Comment #10
liliplanet commentedNot quite sure what you mean, but I added a full url to make it work, example:
[realname-link] created <a href="http://www.mysite.com/node/[nid]">[title]</a>Comment #11
junro commentedforgot to put / before the url.
@Liliplanet: Thanks, I just find it. You're code is good but doesn't work with sub-domain. That's why I have to use "/node/[nid]". Thanks anyway^^
Comment #12
junro commentedHello,
I'm using
<a href="/node/[nid]">[title]</a>but le link doesn't work.When I put the mouse over the link, the url is correct, but when I click on it, I'm redirecting to the frontpage.
Any idea?
Comment #13
junro commentedI'm going to use view to display titles.