Center Node Title

Hello,

I'm completely new to Drupal, I want to get titles on nodes to be centered, instead of left aligned as they are at default. When creating content there is only a simple field "Title" to fill out, and I cannot see any options to change the alignment or anything else (bold etc).

What files do I need to edit, if any, and what do I need to change?

Thanks.

content type that sends an email with additional information.

How can I create a content type that sends an email with additional information. Thanks s

login

I'm setting up a website that would have different types of users - one will be a dealer.

What I would like to do is set it up so as when the user comes in - they click the dealer button, they're taken to the log in page. They log in as normal, and if they really are a dealer - based on username and password - they see the dealer home page. If not they get a refusal message.

What I need to make sure of is this - as long as they're logged in - they see the dealer page - when they log out and click dealer - they would need to relog into the site

Display full path for 3rd/4th (or more) level taxonomies with Pathauto

Hello all;

I'm using Drupal 7.2, with the Pathauto module.

I have a taxonomy structure that is 5 levels deep, like this: (Each term references the one above it as "parent")

  • Vocabulary1
    • Term1
      • Term2
        • Term3
          • Term4
  • Vocabulary2
  • Vocabulary3
  • etc.

I'd like to have a URL alias like so:
example.com/vocabulary1/term1/term2/term3/term4/[node:title]

Remove contact form limit

Right now the site wide contact form limit it set to 3 per hour... can this be changed?

how does one add an article programmatically e.g. from a data file?

I'm creating a module that lists tagged articles, special articles, and specific comments.

For the list, I'm getting all the nodes that are tagged and displaying the titles like this:

  // find nodes associated with term X
  $terms = taxonomy_get_term_by_name('X');
  $keys = array_keys($terms);
  $nodes = array();
  foreach($keys as $key) {
    $nodes = array_merge(taxonomy_select_nodes($key),$nodes);
  }
  // get all nodes associated with term X
  $options = array(); 
  $query = db_select('node', 'n', $options);
  $query->fields('n');
  $query->condition('nid', $nodes, 'IN');
  $query->orderBy('title', 'asc');
  $output = $query->execute();

This works great!

I would also like to be able to get the body associated with the nodes (from the table field_data_body). I can see how it is associated in the database, but which api method(s) would get this information?

On the flip side, I would also like to be able to create this content from a data file.

How would I create an article, for example, that would have a title, some body, and be tagged?
So my pseudo-code would be something like this:

  nid = create node with title='abc 123' and type='article';
  create a body for node=nid with body_value='Lorem ipsum dolor';
  tag node with term='X';

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x