Can't get Flags to work in Open Publish

Events happening in the community are now at Drupal community events on www.drupal.org.
pkcho's picture

I'm trying to implement Flags on my site (Open Publish 1.6), following the steps mentioned in the "Using Drupal" book. The steps seem simple enough, but for some reason the "flag this event" text does not show up on the event node.

I have included an image with parts of the flag setting and the node.

If someone could help me with this it would be greatly appreciated. The more I read about flags, the more excited I get about it. It would be nice to get it working.

AttachmentSize
Flag_settings.jpg57.21 KB

Comments

click the display tag in node tease checkbox

garamvideos's picture

Click the display tag in node tease checkbox and save.
That should do the trick.

Did not work

pkcho's picture

I checked the display tag in node teaser setting, kept my fingers crossed... and it did not work. : (

node-event.tpl.php

febbraro's picture

It is likely that the flag module puts that link in the $links variable, and it is possible that variable is not being printed out in the node-event.tpl.php file. Try adding a

<?php print $links; ?>

At the end of that file to see if that helps at all.

That worked!

pkcho's picture

I should'ved checked the other content types first. As soon as you mentioned your solution, I checked the other types and when selected they work. I doubled checked their '...tpl.php' file and saw that those content types had the 'print links' statement. I added the print statement to the event node.tpl.php and it worked perfectly!

Thank you for your help.

yupe it is

tracybrown123's picture

yeah it's really works... thanks for the support

sticker printing

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: