How does Drupal handle forum topics and posts, as "nodes" or "comments"?

Hello, I'm new to Drupal and currently feeling my way around, learning as I go. Right now, I'm playing with the Advanced_Forums module on Drupal 7.7 and I'm wanting to configure the Flags module as sort of a voting mechanism for users to vote on hot topics in the forums. However, I can't seem to figure out whether Drupal sees each forum topic as a node and the subsequent replies to each topic as comments. Or, are they both considered to be "comments"? Maybe even something else entirely?

city/state select option

I'm creating a social media site where users are encouraged to interact with other users. My site is built in Drupal 7.
Does anyone know how to go about creating a state and city selection similar to craigslist? What modules would be best suited for that?

AJAX-enabled form breaks on browser back button.

I have a Drupal 7 form that contains two select elements. The first allows the user to select a year. When selected, an AJAX call is made that populates the available options for the second multi-select element that contains data relevant to that year. Here's part of my form hook function:

......

$years = /*An array of available years.*/
$selected = (isset($form_state['values']['year']) ? $form_state['values']['year'] : key($years)); //The year selected.

$form['year'] = array(
	'#type' => 'select',
	'#title' => t('Year'),
	'#options' => $years,
	'#ajax' => array(
		'callback' => 'ajax_form_callback',
		'wrapper' => 'year-div',
	),
);

$form['data'] = array(
	'#type' => 'select',
	'#multiple' => true,
	'#title' => t('Data to Use'),
	'#options' => get_options_from_year($selected),
);

.....

The code works fine in most cases. However, if the form is submitted and redirected, and then the user presses the back button, the AJAX no longer works. The browser appears to have cached the user-selected year choice, but retained the default value for the second data-related select box.

Using views to create different list of the same type of content

So if I understand correctly I have will a few content types "Category", "Sub Category", "Product", "Images" I am just not sure how I will associate the content types with each other to build views. So based on my structure below: I would create a Category name "Home" with the "Category" type. The category would have a view that shows all Sub Categories that are associated with this view "Category". This is my question: When I go to create my new Sub Category "Furniture" how do I associate it with the view that is on my "Home" Category page?

Announcing Do It With Drupal 2011

The 2011 Do It With Drupal conference will be October 12th, 13th, & 14th in Brooklyn, NY. Curated by Lullabot, the event features many in-demand speakers such as Jeffrey Zeldman (A List Apart), Josh Clark (author of "Tapworthy"), Karen McGrane (UX guru), Jeff Robbins (Lullabot CEO/podcast host), Jonathan Stark (jQTouch/"Building iPhone Apps with HTML, CSS, and JavaScript"), Jen Simmons (Bartik theme/Queen of HTML5), Earl Miles (Views/Panels), Ryan Szrama (Ubercart/Drupal Commerce), Angie Byron (Drupal 7 lead), Karen Stevenson (CCK/Calendar/Date), Jeff Eaton (Voting API, your favorite novelty modules), Nate Haug (Webform, Imagefield), Addison Berry (Drupalize.me), and many others.

In addition to the the "Drupal onramp" content which DIWD is known for, this year will feature a track entitled "Drupal for the Future" focusing on enabling Drupal to power evolving web technologies such as mobile, IPTV, and Internet-enabled devices. The web is quickly changing, and Drupal's flexible, modular nature makes it the perfect tool to power evolving Internet technologies.

Creating Content inside Content

Hello,

I apologize if this question has been asked before, but I can't seem to find an answer concerning this. I want the main purpose of my website to act as a type of journal into the work I do. In order to do this I would like to upload figures that each have several fields of metadata, like how it was created, who created it, etc. I then want to create a new content which talks about a project and also has these figures embedded in it.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x