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

liliplanet’s picture

Oops, 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]

liliplanet’s picture

Hi,

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

Scott Reynolds’s picture

[realname-link] updated <a href="[node-url]">[title]</a>

thats valid html. what you posted before isn't

liliplanet’s picture

Category: support » bug

Thank 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

liliplanet’s picture

Component: Miscellaneous » Activity Contrib
Category: support » bug
Status: Closed (fixed) » Active

Hi 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

Scott Reynolds’s picture

O ok was confused where the node-url token came from. now i makes sense, it doesn't exist :-D

use this

[realname-link] updated <a href="node/[nid]">[title]</a>
Scott Reynolds’s picture

Component: Activity Contrib » Miscellaneous
Category: bug » support

Def not a bug node-url token doesn't exist yet

liliplanet’s picture

Status: Active » Closed (fixed)

Thank you Scott, that works! Most appreciate your help.

All the best,
Lilian

junro’s picture

Component: Activity Contrib » Miscellaneous
Category: bug » support

Hello,

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 :)

liliplanet’s picture

Not 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>

junro’s picture

Status: Active » Closed (fixed)

forgot to put / before the url.

[realname-link] updated <a href="/node/[nid]">[title]</a>

@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^^

junro’s picture

Status: Closed (fixed) » Active

Hello,

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?

junro’s picture

Status: Active » Closed (fixed)

I'm going to use view to display titles.