By dbarkman on
Hi, I'm looking for a module that will allow me to always add the same text/code snippet to a node, every time I create one, without pasting in the text myself.
I'm using Drupal for a blog site and have created a new content type to serve as blog entries. So basically, each time I submit a blog post, I want certain text to be added to the end of the body field.
If there is a way to do this CCK, that would be fine too. Can you create a CCK text area field that always displays the same info each time.
Thanks
David
Comments
CCK
When you create a cck textarea field, there will be a 'default value' fieldset in the options where you can specify the default text.
Either that, or you can theme the node.tpl.php field, and put your text directly into the template
You can use CCK and create a
You can use CCK and create a field and set its default value, so when ever you will create a blog type node, the cck field would have default value in it, and would get displayed with the node. One more way is to modify the node.tpl file. In your case you can just create a new file "node-blog.tpl.php" file in your theme (if its not already there), then just print the default text in that file any where you need it to get printed.
hey nirbhasa, What a timing
hey nirbhasa,
What a timing for the same comment :) when I finished posting the comment, saw that you already have suggested a similar solution. So sorry for the duplicate here.
Thank you for your replies
Thank you for your replies that using the default values should work very well.
Thanks!