By sanda on
Hi there!
I have a question about the print_r $content in Drupal. I've started to create my own blog with Drupal and when I go to my blog and view my latest entries (from $content) there's some stuff I would like to remove. An example is "username blog" at the bottom of every entries. I would also like to put some other stuff there.
So my question is if I can manipulate the $content and decide what to show up and where to show up?
Hope ypu understand what I'm looking for.
/Tobias
Comments
Use $node
Hi,
For blog content type you can make individual tpl like node-blog.tpl.php .
In that instead of $content print $node and you will get all data related to that node and print whatever you wants on landing page.
e.g.
Yeah ok but guess I didn't
Yeah ok but guess I didn't explained my problem as I should.
What I ment was I would like to change some stuff in my bloglist. Not a "single" blogpost. I mean here
example= mydomain.com/blog
Where I show all my new blogentries.
the previous comment already
the previous comment already explain it well. try vardump($node) in node listing to view what data you want to display.