Modules required: node reference url, taxonomy and CCK
Modules configuration:
Taxonomy:
Create a new vocabulary called 'Story Tags'.
Select 'story' from the content types
And check 'Tags, Multi Select and Required'
CCK and node reference url:
Go to content/node-type/page/fields and add a new field:
Label: 'New page'
Name: 'field_new_page'
Type: Node reference
Form element: Node reference url
Then go to admin/content/node-type/page/fields/field_new_page and leave everything but the following as default: Content types that can be referenced: 'Story'
Go to content/node-type/page/fields and add a new field:
Label: 'page tags'
Name: 'field_page_tags'
Type: 'Text'
Form element: 'Select List'
Then go to admin/content/node-type/page/fields/field_page_tags and leave everything but the following as default:
Check 'Required'
Number of values: 'Unlimited'
Allowed Values PHP Code:
$values = array();
$node = node_load(arg(3));
if($node == null) {
$curr = menu_get_object();
$node = node_load($curr->field_new_page[0]['nid']);
}
if($node != null) {
foreach($node->taxonomy as $t) {
$values[$t->name] = $t->name;
}
}
return $values;
Create a new story node and publish it. Now near the links of published node is a 'new page' link. Click that and you will see a new node page form. You should now see a select list filled with all the tags you tagged the story node. Select as many as you like and complete the form and publish it.
Published by Saif Sail
Drupal enthusiast View profile
- Today's Values VS. Yesterday's ValuesTodays values are not like yesterday's values.
Our Endangered Values -- Jimmy Carter: A Book ReviewOur Endangered Values: America's Moral Crisis is an expository account of how the conservative right and the fundamentalist Christians have gained political control of the nati...- Intro to Professional Values and EthicsShort essay on professional values and ethics.
Decreasing Blue Book Values for Cars Slated for Discontinuation Increase...Blue Book values for cars, newly assigned car values and even new car pricing are suddenly running the gambit. Car buyers who can look past the need for speed and instead keep a...
Halloween Costumes of Bo Peep, Jessie and Mr. Potato Head from "Toy Story"The third movie in the "Toy Story" franchise will be coming out in June of 2010. Have your child dress up as Bo Peep, Jessie the Yodeling Cowgirl, or Mr. Potato Head from "Toy S...
- What Does "Neo-maxi-zoom-dweebie" Really Mean and Other "Brat Pack" Questions?
- Red Sox vs. Yankees - The Munson-Nixon Line
- Pittsburgh Defeats Miami 3-0 on Monday Night Football
- AT&T's U-verse: TV-Plus-Internet Service is Better, Cheaper Than Cable
- Designing an XHTML Form
- 2000 and 2001 QPRwine Cabernet Sauvignon Wine Values
- The Importance of Values and Standards in Marriage




4 Comments
Post a CommentChristian Louboutin Wedges
Christian Louboutin Sandals
discount christian louboutin
Christian Louboutin Online
Christian Louboutin Sale
cheap Christian Louboutin shoes
Christian Louboutin Bridal
Christian Louboutin Pumps
http://christian-loubooutin-shoe.com
www.christian-louboutin-shoe.com
Christian Louboutin Wedges
Christian Louboutin Sandals
discount christian louboutin
Christian Louboutin Online
Christian Louboutin Sale
cheap Christian Louboutin shoes
Christian Louboutin Bridal
Christian Louboutin Pumps
Thank you for the article. It worked fine for me. But I still have a question - how do I actually get the taxonomy terms from the referenced node to be filled in in the current node's taxonomy form?