footer info cut off when using inline nodes
fuquam - August 31, 2009 - 22:48
| Project: | InsertNode |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | AlexisWilke |
| Status: | closed |
Jump to:
Description
First of all I love this module. It allows me to create individual nodes for products and then easily add and remove them from a page using the inline tag. However it cuts off the footer info like "send to friend", "Print", "Share" etc. Instead it is cleared
<div class="clear-block clear"></div>
Is there a way to include the node footer stuff as well?
Thanks.

#1
fuquam,
What is the tag you use to insert your nodes?
The themed parameter should include the links (what you call footers).
Thank you.
Alexis Wilke
#2
yes links, thats right. It cuts off the div class for "links" and everything after the clear tag. I use [node:191]. Thanks for the reply Alexis. Let me know if you have any ideas.
- Scott
#3
fuquam,
So did you try to do: [node:191 themed] to see whether that makes a difference?
Thank you.
Alexis
#4
I did but it doesn't recognize the themed parameter so it just displays . . .
[node:191 themed]
[node:194 themed]
[node:195 themed]
#5
I'm still using D5 and I don't think the 5.1 version recognizes themed parameters. Is that right?
#6
fuquam,
Ah! 8-) That would explain. I don't maintain 5.x. I have added the links in 6.x. You'll have to edit the code if you want to support it.
Thank you.
Alexis
#7
upgrade to D6 but using [node:123 themed] still doesn't display the links. Does a new .tpl file need to accompany the inline node?
Thanks.
#8
fuquam,
Does it also fails in Garland? Or is that only in your theme?
Thank you.
Alexis
#9
I tried Garland and get the same results. No links. I mainly want the five_star module to show up in the link section of the inline nodes. It shows up on the node itself just not the inline nodes placed on the page. I looked through the source code and can't figure out why its cutting off the links section.
#10
Hmmm... is that five_star module using the Link area or is that putting a block at the bottom of the screen?
Thank you.
Alexis
#11
The Five Star module and the Digg This module use their own block at the bottom of the node but its above the Links area. I can't get anything outside of the Body area to display when using the inline method. See below.
<div id="node-194" class="node odd teaser node-type-product">
<div class="meta">
</div>
<div class="content">
<span class="print-link"></span>
<!-- HERE IS THE CONTENT AREA. EVERYTHING IN HERE DISPLAYS AS AN INLINE NODE. HOWEVER NOTHING BELOW THIS POINT DOES -->
<!-- THIS IS WHERE THE FIVE-STAT MODULE AREA BEGINS -->
<div class="description"><div class="fivestar-summary fivestar-summary-combo"><span class="user-rating">Your rating: <span>None</span></span> <span class="average-rating">Average: <span>5</span></span> <span class="total-votes">(<span>5</span> votes)</span></div></div>
</div>
</div><input name="destination" id="edit-destination" value="node/194" type="hidden">
<input style="display: none;" name="op" id="edit-fivestar-submit" value="Rate" class="form-submit fivestar-submit" type="submit">
<input name="form_build_id" id="form-26127bebf1d91d63f2f969e39aeb5451" value="form-26127bebf1d91d63f2f969e39aeb5451" type="hidden">
<input name="form_id" id="edit-fivestar-form-node-194" value="fivestar_form_node_194" type="hidden">
</div>
</div></form>
</div>
<!-- THIS IS WHERE THE LINKS AREA BEGINS -->
<div class="links">
<ul class="links inline"><li class="addthis first"><span>
<a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" alt="" width="125" height="16"></a>
<script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
</span></li>
<!-- PRINT FRIENDLY INFO DOESN'T DISPLAY EITHER -->
<li class="print_html last"></li> </div>
</div>
#12
fuquam,
Well! It looks like that is correct. I did a test on this page:
http://animals.m2osw.com/ants
and the links area is not shown! Argh!
I do call the theme('node', $node) function which I though would display the links too. But it looks like I have to use the node_view() for that.
So... to not change the existing behavior, I will add a new keyword, 'page', for this purpose. The -dev should change within the next 12h. I'm going to implement and test now, so it should be checked in within 1h if you want to look in the CVS.
Thank you.
Alexis Wilke
#13
I also tried adding the body variable for whatever modules I wanted included in the template for my "product" content type using /admin/content/templates but that didn't work either.
Thanks and nice work. This module really helped me arrange my custom content types. Once the links section show it will be perfect.
#14
Ah-ha. Seems to be working now. I had to go reset my content templates but the links are showing up now.
function theme_InsertNode_themed($node) {
return theme('node', $node);
}
function theme_InsertNode_page($node) {
return '<div class="insert-node-page">' . node_view($node, FALSE, TRUE, TRUE) . '</div>';
}
Nice work. Thanks.
#15
I'll take that I can mark this as fixed.
Note that the "content" keyword would do nearly the same thing as the "page" keyword. Anyway... it does not hurt to have one more.
Thank you.
Alexis Wilke
#16
Automatically closed -- issue fixed for 2 weeks with no activity.
#17
One note. Using [node:123 themed] does not display the "links" on inline nodes but using regular [node:123] does.
#18
The documentation on the front page of the module properly says that [node:123] is equivalent to [node:123 content] and not themed. I guess I first made it equivalent to themed and later changed it because it made more sense to have content.