Skip to main content

Home/ Drupal for Developers/ Group items tagged theme

Rss Feed Group items tagged

Daniel Gregoire

Advanced theme settings | drupal.org - 4 views

  • here. dman - April 6, 2009 - 22:10 This worked fo me. An additional logo (Appeared in the footer everywhere) Not sure why I had to put the submit handler into the #validate pass :-/ It was copied from the existing theme settings funcs. 'campaign_' is the theme name.
  •  
    d.o page for adding theme-settings.php file for custom theme features available at theme configuration page. Highlighting comment that successfully adds an "upload" field for uploading images for custom features.
Hendy Irawan

Run multiple sites from the same code base (multi-site) | drupal.org - 0 views

  •  
    "If you are running more than one Drupal site, you can simplify management and upgrading of your sites by using the multi-site feature. Multi-site allows you to share a single Drupal installation (including core code, contributed modules, and themes) among several sites. This is particularly useful for managing the code since each upgrade only needs to be done once. Each site will have its own database and its own configuration settings, so each site will have its own content, settings, enabled modules, and enabled theme. However, the sites are sharing a code base and web document root, so there may be security concerns (see section below for more information)."
Hendy Irawan

Drupal Development - 0 views

  •  
    Drupal Development - Presentation Transcript Drupal Code: Day 1 where am i, and how did i get all these arrays Hi. I'm eaton. Drupal is... http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Drupal Core http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Node Drupal Core User http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Views Five Star CCK Node Drupal Core User http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Theme Views Five Star CCK Node Drupal Core User http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Theme Views Five Star CCK Node Drupal Core User http://www.flickr.com/photos/druclimb/282597447/ name = Demo description = Just a simple demo module. core = 6.x function demo_nodeapi(&$node, $op) { global $user; if ($op == 'view') { if ($node->uid == $user->uid) { $node->title . ' [YOUR ARTICLE]'; } } } demo.info demo.module name = Tricky description = A slightly trickier module. core = 6.x function tricky_form_alter(&form, $form_state, $id) { if ($id == 'node_form') { $title['#required'] = FALSE; } } function tricky_install() { drupal_set_message('You just installed Tricky!'); } tricky.info tricky.module tricky.install views.info views.module views.inc user.inc node.inc blog.inc comment.inc ui.info ui.module arguments.inc handlers.inc filters.inc query.inc sprout.info sprout.module forum.inc views.pages.inc table.inc views.install sprout.install sprout.admin.inc sprout.inc CHANGELOG README views.info views.module views.inc user.inc node.inc blog.inc comment.inc ui.info ui.module arguments.inc handlers.inc filters.inc query.inc sprout.info sprout.module forum.inc views.pages.inc table.inc views.install sprout.install sprout.admin.inc sprout.inc CHANGELOG README views.info views.module views.inc user.inc node.inc blog.inc comment.inc ui.info ui.module arguments.inc handlers.inc filters.inc query.inc sprout.info sprout.module forum.inc views.pages.inc table.inc views.install
Bartłomiej Małysz

Drupal 5.x | Drupal Themes, Joomla Templates, PHPKIT Styles - 0 views

  •  
    nice themes for games like wow, guildwars, etc.
Daniel Gregoire

Views Slideshow Theming | Drupal Video Podcast - 3 views

  •  
    Video about views_slideshow and theming
Bartłomiej Małysz

best free drupal 6 themes - 2 views

  •  
    my private collection of absolutely free best drupal 6 templates all themes are categorized
Scott Blackburn

Take control of your Drupal theme | Lullabot - 0 views

  •  
    Want to create a front page that's styled differently from the rest of your site? Perhaps you need a separate admin theme? Or how about a login page which only shows the login block and nothing else? With a little PHP knowledge these problems are easy t
Daniel Gregoire

Wrapper ID (form-item) not displayed for Checkboxes / Radio Buttons CCK Fields | drupal... - 1 views

  •   if (!empty($element['#id'])) {    $output .= ' id="'. $element['#id'] .'-wrapper"';  }  else { // if we can't get the #id from $element['#id'] just build it from $element['#name']    $id=explode("[value]", $element['#name']);    $output .= ' id="'. $id[0] .'-wrapper"';  }
  •  
    Small fix for giving radio/checkbox form elements a proper ID on their wrapper. By default in 6.16 and CCK, no proper CSS ID is given to the wrappers of radio buttons and checkboxes, making it impossible to theme the layout of those elements in the form (specifically for me, the node edit forms).
Daniel Gregoire

Theming the User Registration Form in Drupal 6 | Trellon - 0 views

  • <?phpfunction themename_theme($existing, $type, $theme, $path) {  return array(    ...    // tell Drupal what template to use for the user register form    'user_register' => array(      'arguments' => array('form' => NULL),      'template' => 'user-register', // this is the name of the template    ),    ...  );}?>
  • <div id="registration_form">  <div class="field">    <?php      print drupal_render($form['account']['name']); // prints the username field    ?>  </div>  <div class="field">    <?php      print drupal_render($form['account']['pass']); // print the password field    ?>  </div>  <div class="field">    <?php        print drupal_render($form['submit']); // print the submit button      ?>    </div>  </div></div>
  • <?php  print '<pre>';  print var_export($form);  print '</pre>';?>
  • ...3 more annotations...
  • Don't forget to render hidden fields or it won't work ;) echo drupal_render($form['timezone']); echo drupal_render($form['form_build_id']); echo drupal_render($form['form_id']);
  • you also have to print the "token" in order to make the form work print drupal_render($form['form_token']);
  • From my own experience using a form tpl.php, you need to print the whole $form at the very end of the template to ensure that the form will validate upon submission. <?php print drupal_render($form); ?> Just adding the hidden form_build_id and the form_id fields will not mean the form will work. Printing the entire form at the end, however, will mean that all the stuff you wanted to hide in making the template will show. For those fields, include "unset" statements for each one: <?php unset($form['field_to_hide']); ?> Please correct me if I'm wrong or if there is a better way to do this.
Daniel Gregoire

Theming Views In Drupal 6.x | Drupaler | Drupal Blog, Collaborative Drupal Resource - 0 views

  • <?phpfunction garland_preprocess_views_view__my_view(&$variables) {  $variables['foo'] = 'some text';}?>
Scott Blackburn

Getting node path for theming list view | drupal.org - 0 views

  •  
    I recently need to theme a node path in a list view. Comment #1 did the trick: $node = node_load($nid); $path = drupal_get_path_alias('node/'.$node->nid);
Scott Blackburn

Howto: Theme Drupal forms with PHPTemplate | PC Tips - 0 views

  •  
    With the introduction of the Forms API (FAPI) in Drupal 4.7, module authors got a new, shiny, but above all, powerful tool to generate and validate advanced forms. For some it's such a big leap from Drupal 4.6 that they still feel a bit lost.
1 - 20 of 38 Next ›
Showing 20 items per page