I'm trying to alter the front page template so that $content only shows certain node types. I'm well aware that I could just manually go into each node and uncheck the promoted to the front page box, but I don't want to do that.

How I can access the output that gets put into $content?

Comments

nevets’s picture

You probably want to use views to make the front page (it comes with one for that purpose, it's disabled by default) and filter on Node: type.

hershel’s picture

I would agree with Nevets. I would add that may want to filter on "published status" and on "promoted to front page." The precise wording may be different in Views, but the idea is to filter on those, presuming you want to basically recreate your home page, but just with a unique type (or types) of node.

saurabhcms’s picture

Hi,

Use the panels and views to make your homepage.

Saurabh Arya | www.cmswebsiteservices.com | skype:nspl042

choline’s picture

I'll just use views