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.
Hi,
I'm just working with drupal 7.
I'm trying to print the body field in my own node.tpl.php
I can print it like this: print $content['body']['#object']->body['und'][0]['value'];
But i think this is not the way.
I wanne have something like this. render($page['content']['body']) or render($content['body']) or just $body.
Does someone knows what the correct/short way is to to load the body field into your node?
how would I use php and mysql to get some values from database when I define the structure of the content type of some field?
say I want to make categories and subcategories, and I want to connect the subcategories with a select field parent to choose from.. how do i do this?
Which render user/login with lightframe.
But the thing is, which file should I add this line into??? page.tpl.php??? Who is responsible generating the HTML file???
DrupalCamp24x7.org is an community effort to help Drupal beginners to learn Drupal online.
It also tries to help drupalites from all over the world to share and communicate among themselves in a way Drupal.org suggests for DrupalCamp but in an online mode.
It also tries to help people interested in Drupal to share their ideas with others who are unable to taste the fun of DrupalCamp in any way.
We welcome all who love Drupal and want to be part of this great community.
How can I use jquery to stop playing video from youtube? (drupal 7)
I use module "Media: YouTube 7.x-1.0-alpha5" to display the video from youtube and "tab" jquery to hide the video player (there is a list with 3 videos on the same page). The video will play only when click to play (autoplay is off). The problem happens only on safari:
When click play the video, then click on another list for another video -- the first video should stop playing automatically because that video is hide in "display: none" block. This works fine on another browser but not safari.
I have Profile2 installed and am trying to make it so that a new profile field I created - Name - appears in ?q=user/276/edit. I go to Profile types » Main profile (admin/structure/profiles/manage/main/fields) create a profile field and it isn't showing up.