Calling a block to a specific div

Hey guys,

in drupal 6 to call a block to my theme I used to insert this code in my html:

$block = module_invoke('block', 'block', 'view', 26);
print $block['content'];

I tried this in Drupal 7 but nothing happens. Probably this snippet has changed, but I can't find the new one.

Can anybody help me please?

Thanks a lot :)

FRONTPAGE NOT FOUND ISSUE

I have created a new entry in bugtrack here:

http://drupal.org/node/1055372

This is for all like me who observe "Page not found" error on Drupal 7 frontpage.

D7 jquery is killing me

hi!

(function ($) {

 $('#header').hide();

}(jQuery));

why is this not working? #header contiainer is present!
if i put alert() in jquery it is working.

jquery script file is loaded from .info

What does this error mean?

I get this error whenI go to my drupal 7 site:

PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in lock_may_be_available() (line 165 of /home/xxxxxxxx/public_html/includes/lock.inc)...

Too many connections? How do I fix this?

Thanks

Drupal node storage and linking, like SQL?

Nodes can be linked and/or added to groups in Drupal. I come from a SQL database background and I am curious about how the node linking is done. Should I think of node linking in the same way as the relationships in a SQL database, one-to-many and many-to-many or is this more like the object relationships in an object oriented database?

Can I move through the relationships, like a tree structure, to go from grandparent to parent to child displaying information from each?

PLEASE HELP...how do I do this

I'm building a site for my small record label. I would like the artists to have their own page which they can keep active and updating with news, photos and events and videos etc. the activities from each artist will feed into the label homepage.

How do i create the main page for each artist which will be home to all necessary content for that artist and assign the permissions for that page only to that artist?
(i'll just say artist one more time.)

Patrick

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x