CSS margin

Hi all

Can anyone please take a quick look at my css...

Here there is my header div (green border) and then my navigation div (red border) then my slideshow (blue border) =

http://tinyurl.com/4kkeqdj

My navigation div does not start before my header div is finished so can anyone please tell me why does the slideshow div encroach into the navigation div?

I know I can fix this with...

#pslideshow {
margin-top: 18px;
}

Help with customizing the main menu.

I need some help customizing the main menu.

I wrote this snippet

function mytheme_preprocess_page(&$vars) {
  if (isset($vars['main_menu'])) {
    $vars['navigation'] = theme('links__system_main_menu', array(
      'links' => $vars['main_menu'],
      'attributes' => array(
        'id' => 'navigation',
        'name' => 'navigation',
      ),
    ));
  }
  else {
    $vars['navigation'] = FALSE;
  }
}

to alter the main menu to

Re: Ubercart - Recurring Module (D7) white screen

Hi Folks,
I'm trying to build a working framework at home on my localhost, I'm running a Ubuntu box so no M$ here and the Ubuntu 10.10 box is working superbly fine.

Can I upload images within a comment?

I know that I can code an image into a comment, but my users are now asking for the ability to upload images directly into comments. Is there a module that can accomplish this?

Custom field not appearing in list of field types

Hi,

I'm trying to build a compound field that has three fields treated as one unit: URL, Access Information, and URL Description. These three fields should be treated as one unit, which will be called "NeRD URL". I want users to be able to add as many of these NeRD URLs to a node as they want.

So, following some tutorials, the code from the references and text field modules, and the docs at api.drupal.org, I've written a bunch of code that *should* provide this compound field. However, when I enable my module, it seems to have no effect. There are no apparent changes to the DB, the new field doesn't appear in the list of available field types on my content type's "Manage Fields" page, and there are no error messages. What am I doing wrong? Here is my code:

Foreign key for bundle relationships in Field API?

I'm using a preexisting database and moving into Drupal 7.
The legacy database model has a base object table of common columns, then a type column which specifies whether the object is an image, specimen, taxon, etc. Each 'type' has it's own separate table of columns (image table, specimen table, locality table, etc.), tied to the base object table using a foreign key.

In some cases, like images, there is a column that references specimen id. In other words, several images can belong to the same "specimen_id". This id is the base object id of the related specimen.

In moving to Drupal, I created a new entity for the base object table, then defined bundles for each base object 'type'. The columns that use to be part of each 'type' table, I am now attaching to the bundles during the install of the module. I'm doing this by defining an array of fields and and field instances, then looping through the arrays and calling field_create_field() and field_create_instance().

First, is this the correct way of doing this?
Second, when I create a foreign key field like specimen_id, how does it know this is referencing the base object entity id for a given specimen?
Third, in order to establish these relationships, should I actually be using hook_field_schema() to define them, as it has a foreign key setting, then creating the field and field instances?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x