I'm using Views 2 on D6 and I have a view that pulls all the information I want into a single view. The problem is that I want to create a custom page that pulls views and puts them in where I specifically want them to go, so the only way to do this would be to pull a single field. I can't do theming, because that arranges them to all the fields.

So in essence, what's the format for pulling a single view field?

I know view_insert_view('name', 'args') will pull the whole view.

Thanks

Comments

nevets’s picture

You probably want to theme the view, not pull fields one by one.

rampar’s picture

So, if I want to do theming for it, I want to be able to have control over exactly where the fields are placed.

it says I can use

<?php print $fields['some_id']->content; ?>

to place the content of the field wherever, but is this wherever I want on an HTML page? or does this have to go inside the tpl.php file? Also, while trying to use this I can't get it to work. Is there an views_embed_view or something similar I have to call beforehand?

mm167’s picture

what do u mean by "I can't do theming, because that arranges them to all the fields.".

if u have got all the data but just want to change the presentation, that's theming.

rampar’s picture

When I was reading through it I was just completely confused on the matter of theming.