recentpopularlog in

therobyouknow : field   134

« earlier  
Custom Formatters | Drupal.org
great module for formatting output of fields, e.g. title link for downloadable file:

admin/structure/formatters/list/formatter_file_link_title/edit
$preMime = $variables['#object']->filemime;
$postMime = str_replace( "/", "-", $preMime );

$filePath = "/sites/default/files/".$variables['#object']->filename;
$fieldTitle = $variables['#object']->field_title['und'][0]['value'];

$output = "<img class=\"file-icon\" alt title=\"";
$output .= $postMime;
$output .= "\" ";
$output .= "src=\"/modules/file/icons/";
$output .= $postMime;
$output .= ".png\"/>";
$output .= "<a href=\"";
$output .= $filePath;
$output .= "\">".$fieldTitle."</a>";

echo $output;

use this here: file-types/manage/document/file-display
custom_formatters  module  contrib  computing  web  dev  drupal  cms  field  output  display  format  formatter  token  php  config  entity  node  content 
january 2014 by therobyouknow
7 - How to manually or programmatically delete a field? - Drupal Answers
remedy for field already exists even when not in list selection of existing fields
drupal  delete  field  howto  database  mysql  computing  web  dev 
november 2013 by therobyouknow
form with readonly field | drupal.org
for example:
$variables['form']['subject']['#disabled'] = TRUE;
drupal  disable  field  readonly  read  input  form  prefilled  fixed  computing  web  dev  cms  howto 
october 2013 by therobyouknow
theming - How do you theme a content type's create/edit form in Drupal 7? - Drupal Answers
great answer - one that I'm using, however it doesn't cover multiples of a specific field
theme  custom  field  hide  drupal  form  input  contenttype  edit  computing  web  dev  cms  howto 
september 2013 by therobyouknow
7 - Adding multiple checkbox in drupal using cck - Drupal Answers
increase the number of allowed items in list from 1 to >1 to convert from radio list to checkbox list
checkbox  contenttype  fields  field  drupal  computing  web  dev  cms  howto  radio  button 
july 2013 by therobyouknow
« earlier      
per page:    204080120160

Copy this bookmark:





to read