Closed (works as designed)
Project:
Flag Terms
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2012 at 15:20 UTC
Updated:
29 Mar 2012 at 13:15 UTC
I have tried putting flag_create_link in my page-taxonomy.tpl file. I added the following code:
print flag_create_link('like', $tid);
but it gave:
An HTTP 404 error occurred
http://localhost/drupal/?q=flag/unflag&destination=taxonomy/term/74&toke...
I know nothing about coding so any help would be much appreciated. I am using drupal 7.9. I have also tried:
print flag_create_link('like', $term->tid);
and it gives the same result.
Comments
Comment #1
amsterdamdrupalnewbie commentedComment #2
amsterdamdrupalnewbie commentedCan anyone help me with this?
Comment #3
jamescl commentedThis worked for me:
print flag_create_link('like', arg(2));Tax term code snippets here: http://drupal.org/node/93813#comment-171738
I found that I had to enable 'Display link on taxonomy term pages' to get to show up, and then disabled it - possibly clearing cache would have done the same thing.
I used this is a block, rather than tpl.php, but assume will do the same.
Comment #4
amsterdamdrupalnewbie commentedGreat thank you!
Comment #5
jamescl commented