print body field in node

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?

select fields valuse by php and mysql

hiii..

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?

how to render certain link? Which file should I modify?

I definitely want to modify the drupal theme, I am using zen.
For example, if I want to render link user/login, I think I should do:

Login

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???

Announcing free drupal video tutorials site drupalcamp24x7.org

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.

media youtube

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.

(Profile2) making profile fields appear in q?=user/xxx/edit

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.

Any ideas?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x