4.7 readiness of contrib modules

I have been going thru the modules listed in cvs and loading and testing them on cvs build (only the ones I have some interest in). This is a work in progress. No obvious core bugs yet, but have not used many features yet. Hopefully these tests won't show any new core bugs.

Views Bookmarks - How to generate link on nodes

Using the Views Bookmarks moduel: http://drupal.org/node/49075

All looking good with both Views and Views Bookmarks admin pages. I have set role permissions and nodes to "all checked" for my initial bookmark tests.

Problem: no "bookmark this" link shows up in any of the selected node types. I had initially assumed drupal would pull in the link automatically... any pointers on how to get the links to show up?

custom blocks don't show in some 4.7 themes

Not really sure how this affected by the theme - but it seems to be.

I was working on a new 4.7 site using std BlueMarine theme and i had added some custom blocks.

Things seemed fine until i switched theme to PushButton and noticed my custom blocks were missing - but std ones were still there.

after a couple more tests:

- box_grey; custom blocks are OK

- box_cleanslate (which is based on box_grey) they DO NOT WORK

Drupal API Cheat sheet

An excellent resource for any new (or forgetful!) Drupal developer is available in the form of a "cheat sheet".

Juan Mellado is the guy to thank, he's mapped out all the 4.7 API in to a handy image which you can print out and keep to hand whilst coding.

I don't have a clue what the blog post says, just click on the thumbnail image.

http://www.inmensia.com/articulos/drupal/cheatsheet4.7.html

Stock Module

Has anyone been able to, or will we soon be able to implement the stock and stock.api module into 4.7?

Printing Out Custom Profile Fields...4.7

Does anyone know how to print out custom profile fields for use inside a blog teaser on the main page. I just want this to appear right after the print $submitted statement. Being new to PHP, im not sure if i should use print $user->profile_company .

Also, if I could add a new variable to the $submitted array within the PHPtemplate.engine file, that would be great as well.

This is the area of PHPTemplate.engine where I think the new variables should go:

$variables = array(
'content' => ($teaser && $node->teaser) ? $node->teaser : $node->body,
'date' => format_date($node->created),
'links' => $node->links ? theme('links', $node->links) : '',
'name' => theme('username', $node),
'node' => $node, // we pass the actual node to allow more customization
'node_url' => url('node/'. $node->nid),
'page' => $page,
'taxonomy' => $taxonomy,
'teaser' => $teaser,
'terms' => theme('links', $taxonomy),
'title' => check_plain($node->title)
);

// Flatten the node object's member fields.
$variables = array_merge((array)$node, $variables);

// Display info only on certain node types.
if (theme_get_setting('toggle_node_info_' . $node->type)) {
$variables['submitted'] = t('Submitted by %a on %b.', array('%a' => theme('username', $node), '%b' => format_date($node->created)));

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x