Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Sometimes I need to print custom field values directly from the $node variable because the $content variable isn't avaliable. For example, if I have a "subtitle" field I added to the "page" content type, and I want to print the subtitle in "page.tpl.php", I have to use something like:
print $node->field_subtitle['und'][0] (...)
... and start playing with the object variables. I'm sure there must be a more elegant way to do this, for example:
I'm trying to understand whats going on with Drupal Versions these days.
It seems as though a lot of the modules I need for D7 (View / CTools / Panels) are still in alpha, beta and RC... (I dont trust this kind of stuff for client websites).
So I've been sticking with drupal 6 because it just seems rock solid stable at this point.
Drupal 7 has been out for a year(?) at this point, why are so many modules struggling to get out of the unstable development phase?
Started working on a test site to learn Drupal 7 (still haven't left the safe confines of D6 yet) and was learning how to make a photo gallery using Media Gallery, ColorBox, and Plupload. It was pretty easy to get started and worked fine. UNTIL i pressed Clear All Caches inside the Drupal interface. Not sure why I did that, but now when I click an image in the gallery, the colorbox interface comes forward as it should, but does not load an image. It just sits there. If i press next or previous, I have a 50% chance of an image loading at that point.
downloaded and installed via the webplatforminstaller and i get the following error message:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupalnew.semaphore' doesn't exist: DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 1619982864e3d23e3110576.05125814 ) in lock_release_all() (line 266 of C:\Users\S\Documents\My Web Sites\Drupal 7.2 Developer release2\includes\lock.inc)."
I'm designing a custom module for an extended school project. For this I created a custom ProfileType (part of the Profile2 module). Then I added some fields (like first and last name) to the profile type. These show up nicely, as they should.