By mediashock on
I would like to select all nodes with a specific type .. using php
for example
for each node = cars
print $fieldname_value
end
can someone point me in the right direction for something like this??
thanks
I would like to select all nodes with a specific type .. using php
for example
for each node = cars
print $fieldname_value
end
can someone point me in the right direction for something like this??
thanks
Comments
(no title)
Some related modules:
http://drupal.org/project/get_content_type
Gives you node list pages using an URL like node/type/xxx
http://drupal.org/project/node_type_filter
Filters an existing node list page (e.g. a taxonomy list), using a ?type=xxx argument at the end of the URL
If you are writing your own code, you could look at the source code.
And of course the big guy
http://drupal.org/project/views
with which you can list any nodes you want and display any fields you want.
in a module or in PHP code
in a module or in PHP code ...
where 'your_node_type' = page or story etc
Ray Smith
http://RaymondSmith.com
Ray Smith
http://RaymondSmith.com