I am playing with the CVS version of Flexinode. Pretty cool new stuff. I notice that when it is displayed, there are classes for each field (which is good) but ther is also always a break after the label. Is there a clean way to get around this? I have a few short fields and the display looks pretty strange with essentially three lines dedicated to each field.

Comments

sly_ece’s picture

I have been using flexinode too and would like this feature of combining fields together when they display. I have read elsewhere that you can "template or theme" a flexinode content type so that the page will be formatted according to your template for that content type. I dont know where to change this and would appreciate help with it.

Also can you create a flexinode field type that will list certain flexinode (or other) content type pages as a category listing, that would be selectable in the new "Add Content Type" page? I will post a new message for this one. http://drupal.org/node/11012
Sly

robertdouglass’s picture

This should be enough to get you started:
http://www.robshouse.net/theme_flexinode

I can't remember right off exactly where the <br> comes from - if I find it I'll tell you.

- Robert Douglass

-----
visit me at www.robshouse.net

robertdouglass’s picture

It comes from the file theme.inc in the function theme_form_element. You could get rid of it by writing a function mytheme_form_element which does the same thing but without the <br>. The only problem with this is that it will affect all form_elements throughout the application. Yet another option would be to write a mytheme_flexinode_form_element in your theme, and change the method in field_textfield.inc in the flexinode directory:

function theme_flexinode_textfield($field_id, $label, $value, $formatted_value) {

  // CHANGE HERE
  $output = theme('flexinode_form_element', $label, $formatted_value);

  $output = '<div class="flexinode-textfield-'. $field_id .'">'. $output .'</div>';
  return $output;
}

Then you could really control how the label looks, and do it flexinode specific.

- Robert Douglass

-----
visit me at www.robshouse.net

sethcohn’s picture