Posted by glennnz on January 1, 2009 at 11:24pm
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
RE:
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.
Solved this with some PHP
Solved this with some PHP coding.
Thanks
Glenn
Vicus
share your coding?
Wondering how you did this without views. Thanks.
<form action="<?php echo
<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
Vicus
Another module
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
view filter as dropdown?
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)?
here is a trial for a module
here is a trial for a module that does that
#1042578: Multi-Select for Node Titles
------
GiorgosK
Geoland Web development / web marketing
Media Temple Special Offer Codes