Node $title and $submitted variables printing
boblangdon - October 26, 2009 - 15:24
| Project: | Dynamic display block |
| Version: | 6.x-1.0-rc6 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I followed the advanced tutorial example for creating a slideshow using the custom content type "ddblock_images_with_links." All works fine, except there is no styling and the node $title and $submitted variables are being displayed in the node.
When I copy Drupal's "node.tpl.php" template to my theme folder, renaming it "node-ddblock_images_with_links.tpl.php" and commenting out the lines "print $title" and "print $submitted" they go away.
I've obviously missed something very simple here in the installation or configuration steps.

#1
I think you followed the tutorial: How to create a basic dynamic display block image slideshow with links to other pages.
What styling do you expect?
I don't know how you add the slideshow. Do you add the block in a node or in a region?
To show/hide the submitted variable can be set in the theme settings?
When you want to disable the node title, you can do this by creating a node template file like you did.
What are your issues?
Do you have a link to the Internet site, so I can see what you mean?
#2
Hi ppblaauw ,
Thank you for responding.
Sorry if my question seems silly; I've only been experimenting with Drupal for two months.
To answer your questions:
When I experimented with creating a slideshow from an images folder, the images were encased in a nice 3D box (much to my pleasant surprise). When creating a slideshow using the "images w/links" instructions, only the original images were displayed. (which is fine -- I expect to theme them anyway. I only thought I must have done something wrong to get such different results).
Both slideshows were added in a region.
[quote]When you want to disable the node title, you can do this by creating a node template file like you did.[/quote]
Excellent. Again, I thought I had done something wrong. Your documentation was so thorough that when I didn't read anything about controlling the slideshow via a "[Content-type-name]-node.tpl.php" file, I thought I must be doing it wrong/inefficiently. If I were more experienced with "the Drupal way" I would probably know that was the proper way to do it without needing to be told.
My question isn't so much an issue as it is confusion on my part as to whether I am using your module correctly or not. Perhaps I should have asked somewhere other than the issues/support area?
An example of the two slideshows can be seen at: http://74.82.38.79/.
The top instance is a test of "images from a folder" and the bottom is "images with links."
#3
Thanks for your explanations.
Yes, we gave the basic slideshow a little border with javascript, but also a lot of users want to remove this, so in the next version of the module this is removed by default and you need to add the same border with CSS.
The slideshow using the "images w/links" instructions does not use this border ad you need to add it yourself with CSS.
Issues are there to get answers. A question can also ask for a verification how you think things can be done or to find out how things can be done more efficient or "the drupal way".
If it is about a module, surely the right place is to make an issue in the issue queue.
Set status to fixed.
Added a styling paragraph to The slideshow using the "images w/links" instructions.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.