User login

Drupal 7

Best practice for an upgraded site to define RDF mappings for RDFa output?

A site that has been upgraded from Drupal 6 to Drupal 7 has not even had this code from standard.install in the Standard profile run yet. Can generic mappings like this be easily taken care of in other custom configuration of RDF or should this (plus more?) go in an update hook?

Preprocess from a module: removing the content author from Drupal 7 search results

All, not just most, but all the content on a particular site was set to be posted without showing the by-line or submitted by text. Given this requirement, it makes no sense to have search results show the user that submitted the content, every time. This can be themed away in search-result.tpl.php or it can be removed with a pre-process function as shown below.

You can do this from a module or a theme, where 'example' is the system name of that module or theme:

Altering path and theme path of template files in Drupal 7 is just for make-believe?

Update: Issue posted. http://drupal.org/node/1028214

The goal is to use the book-variable.tpl.php (exactly like the book-variable.tpl.php is used, including how it gets overridden by themes) but without its preprocess function. Here's one fallback approach that should work, but doesn't, due to seeming weirdness in Drupal:

Drupal 7 overview (Lullabot video notes)

Notes from the Lullabot Drupal Overview video (which is free until Wed. Jan 12).

minimal has no optional modules enabled nor any content types. Nor is the administrator role set up for you.

DBTNG

master-slave replication

any database that PHP can support, which includes Oracle and MSSQL (Microsoft)

built on top of PDO which comes with PHP 5.2+.

Drupal requires PHP 5.2.4 or later
PHP 4 is dead.

User 1 is still special

Disabling or moving node/add/[content-type] links from beneath "Add content" in the navigation menu also removes them from the Add content page (node/add)

Short story: Turn the navigation menu off on any site for which you are customizing the user experience, it is only going to cause you pain.

Seeing "You have not created any content types yet. Go to the content type creation page to add a new content type." when you know darn well you have content? And node/add/page, say, still works?

Is it a bug, a feature, or 'gee. huh' that moving a content add form out from under "Add content" in the navigation menu will also remove it from the node/add page?

How to override block.tpl.php and node.tpl.php from your module

After much thought, and not being sure if it needs a hook_theme and a template_preprocess or what

Decided that it is not something we should be doing anyway. Overriding block.tpl.php or node.tpl.php from a module just messes up themes! We can have our own templates for the content we print if we want.

Please leave a comment if you think this conclusion is incorrect!

Exportable field content: machine names for field instances?

When fields are used for configuration-like stuff (this is for AJAX form messages) it would make sense to be able to export field instances to code (as opposed to, say, node or comment fields).

asked, to no avail:

11:37 benjamin-agaric: is there a standard / anything anyone's tried for giving programatically-created field instances a machine name type thing

Syndicate content