I have set up a couple of basic tokenized messages via "Activity publisher templates" (using latest dev version of tokens module). The Activity view works, and throws up the expected messages when (dummy)users add/update nodes.
However, I can't find how to make the tokens show as links.
Thanks for any pointers!
Comments
Comment #1
likewhoa commentedWhich activity types are you using "Node or User"? I can confirm [link],[path] & [url] are not working with 'Node Activity" types. see #452980: unavailable tokens listed - confusing users. as it could be related to your bug if you're using 'Node Activity" type.
Comment #2
pisco23 commentedExactly. I am just using "Node" at the moment. I haven't tried USER or COMMENT yet.
Comment #3
sirkitree commentedmaybe related? #452802: 'ant' instead of [title] token
There are two approaches to create tokens that are linkable - either within a module's hook_token_values() as a brand new namespace - or within the template itself you create a message formatted like:
<a href="[account-url]">[user]</a> did something to [menu-link-title].Comment #4
likewhoa commentedNo this is not related to #452802: 'ant' instead of [title] token but more related to #452980: unavailable tokens listed - confusing users..
Comment #5
sirkitree commentedI'm not sure what you mean by 'missing'. If the tokens are not listed in the tokens table (the collapsible fieldset) then they are not defined within the system. I'd have a better idea of how to troubleshoot this if I knew where these tokens were defined.
Comment #6
pisco23 commentedI'm not sure if this is a question of "missing" or not - maybe leave that for the thread #452980: unavailable tokens listed - confusing users.
As per my original post - I see a list of tokens and can create tokenized messages as in #3 above [user] did something to [menu-link-title].
admin did something to testpage
but I can not find any way to have the [user] being the user-name linked to the user, same for the node title: it displays the node title fine, but does not link to the node itself....
Comment #7
sirkitree commentedSorry - I should have encapsulated that in /code tags - I edited #3 - see if that works for you pisco23
Comment #8
mrjavum commentedsirkitree
<a href="[account-url]">[user]</a> did something to [menu-link-title].The message outputs as plain text and
<a>tags not turn into links...Comment #9
sirkitree commentedAh sorry about that - we had changed the message field handler. This commit will allow you to use HTML markup within the activity template. http://drupal.org/cvs?commit=207710
Comment #11
pisco23 commentedSorry I was not following this up as i was away from drupal for a few weeks there- but many thanks - the solution in #3 with the commit in #9 works like a charm.