Hi

I a trying to create a view where a user can select a node title from a dropdown list. The node titles in the list will be of a particular taxonomy term type.

The view will display information from the node that is selected.

How do I create this dropdown list? I am a complete newbie to Drupal and have no idea at all how to customise anything, so if you post a code answer, please tell me where to put the code snippet and how to use it.

Thanks

Glenn

Comments

ram_segal’s picture

Hey there,

Sounds like you can use the views module.

How to start:
add a new view to your page, add a filter (node title)

if you need further assistance, don't hesitate to ask.

glennnz’s picture

Solved this with some PHP coding.

Thanks

Glenn
THECA Group

lias’s picture

Wondering how you did this without views. Thanks.

glennnz’s picture

<form action="<?php echo $PHP_SELF ?>" method="post">
    <select name="select_course_name"> <?php
$title = db_query(db_rewrite_sql("SELECT title FROM {node} n WHERE type='course'"));
while ($row = db_fetch_array($title)) {
  $course_title = $row['title'];
  echo "<option value='$course_title'>$course_title</option>";
}
?> </select> <input type="submit" value="Submit" />
</form>

Glenn

Glenn
THECA Group

danielb’s picture

Heres a module that can create a select list of titles (or an autocomplete of titles) to find the node.
http://drupal.org/project/autocomplete_node_finder

borrowed’s picture

I'm going the Views route, but can only get the exposed node title filter to display as an input text box.

Is there a way to have this display as a dropdown with a list of all options (the list of options filtered by content type)?

giorgosk’s picture

here is a trial for a module that does that
#1042578: Multi-Select for Node Titles

------
GiorgosK
Web Development