Closed (fixed)
Project:
Forward
Version:
6.x-1.7
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2009 at 05:48 UTC
Updated:
20 Jul 2011 at 09:34 UTC
Greetings,
Since all of my nodes are custom themed the Forward link is not appearing. What is the code snippet I need to add to the node source code to get the Forward link and form to appear? I tried doing a search in the issues and did not find it. My apologies if this has already been addressed. Cheers, Kevin
Comments
Comment #1
seanrEven in custom themed nodes, you should still be outputting the $links variable somewhere. Here is code that should respect most of the forward settings, if you need to do it separately from the $links variable:
Of course, you can pare that down quite a bit if you don't need the admin settings to be respected. The main thing is link path is 'forward' and the query string needs to be in the format 'page=path/to/any/page'. So this'd be the simplest version:
Comment #2
seanrComment #3
pyxio commentedthank seanr,
that's just what i needed. also, is there a variation on that snippet for using the embedded expanding form instead of linking to another page with the form? cheers, Kevin
Comment #4
pyxio commentedI did want to mention that of course I have configured the settings in admin to use form instead of link. However, this code only permits usage of link if i'm correct? cheers, kevin
Comment #5
seanrIf you have forward set to show the form, then you should be able to just print $node->content['forward'] in your theme.
Comment #6
pyxio commentedthat doesn't work. I just get the word Array as output.
Comment #7
seanrSorry, should be $node->content['forward']['#value'].
Comment #8
pyxio commentedThanks. This is really STRANGE but it works in Firefox but not IE. How could that be???
Comment #9
pyxio commentedSorry, I'm a real dolt. That was just a permissions issue. It works perfect. Thanks
Comment #11
manoloka commentedHi there,
This isn't working for me. I get an incomplete url "http://mysite.com/forward?path=node/" (the node id is missing) therefore not working properly.
Also it isn't showing the icon, only show the link. In fact I'd like to show my own custom icon, how can I do that?