I need to add a slideshow (each slide containing headline, image & html text) in my frontpage. I've decided to create a custom
content type named slideshow which should have above fields.
I've figured out the necessary
.tpl.php file (page--front.tpl.php) in which I'll add codes to go for the slideshow.
What I've done already
- Created a custom
content typenamed slideshow with all the appropriate
- Added all the necessary html for the slideshow in the
.infofile of my theme.
Now the problem:
- I think I'll fetch data from database & populate the variables needed in
template.phpfile of the theme. How do I retrieve the
content typefrom database?