By MercWorks on
I've looked around everywhere but basically I just want the PHP code that displays the latest blog entry teasers like you'd see on the front page for use in a template. Thanks!
I've looked around everywhere but basically I just want the PHP code that displays the latest blog entry teasers like you'd see on the front page for use in a template. Thanks!
Comments
node_page_default()
You can find it in the node_page_default() function (it's pretty short)
Wesley Tanaka | Drupal Stuff
Blog Teasers
Hi,
You need to query two tables for this, i.e Node & Node Revisions
This should work.
Vinay Yadav
PHP / Drupal Specialist
http://www.vinayras.com
Thanks to both of you for
Thanks to both of you for your replies. I did as instructed in the first reply and got
which seems to work fine. Is there any advantage to using your method, Vinay?
www.mercworks.net
Where?
Where do you put this in a page?
=-=
create a page content type add the code to a page. switch your input format to php and submit.
_____________________________________________________________________________________________
give a person a fish and you feed them for a day but ... teach a person to fish and you feed them for a lifetime
Thank you
This code does exactly what was needed.
Blog teaser
Hello, is there a way to have the 'read more' link below the teaser?
thanks