I'm trying to redesign our custom front page for our news site. Previously I used panels in combination with the views module but we've outgrown the limitations encountered with that setup. Now I'm trying to write the PHP from scratch using the frontpage module.

I'd like to be able to pull the raw data for each section using the views module and then theme it myself. I've been through the views documentation (still using views 1.6 as this is a D5 site) and I can't see where there is a straightforward explanation for how to get an array with just the data for each node that a view retrieves.

It seems that all the examples in the documentation are either pre-themed or rely on overriding the PHPtemplate stuff for presentation. I don't want either. I just want to query the DB and then present the results via my own custom PHP and CSS.

Should I persevere with Views or just query the DB myself for what I need?

How to do either?

Comments

nevets’s picture

You can use views and views_build_view(), see http://drupal.org/node/99721 for some examples using it for embedded views. You will probably want to set type to 'items' or 'result' for what you are trying to do.