User login

Drupal Development

Rebuild menu cache to force recognition of menus added while developing a module

Rebuild menus so that menu items and callbacks defined through the menu system take effect while you are developing a module.

Resolution

The quick fix:
menu_rebuild

I know I posted about this before, and it took me five minutes to find.

Anyhow, this is useful during development to clear and rebuild the menu cache, so that your menus added to a module (hook_menu) actually will show up for you, without reinstalling the module or something stupid.

Then immediately remove your call to menu_rebuild!

Nesting nodes, nodes connected to sections depending where in the site they are created

For WSF2008, we may want to create content to be connected with the city or country portal.

Possibility:
http://drupal.org/project/og_subgroups

but no, not for WSF, because we need major panels action.

organic groups panels drupal
organic groups panels integration

A possible alternative to panels would be theming content type templates to include all the views and calls we want.

Find a term ID (working around the category module) to have a node behave differently

find out what category vocabulary id drupal

probably easiest just to look in the database-- the vocabulary table lists names with vids, you can then go to the term_data table and sort by vocabulary if necessary, and look up your category by name.

Other option is to print_r everything about the category node.

For more, see:
http://drupal.org/node/113651

Resolution

We did it our way. Here's the messy, just-got-it-working

Provide resend password option on duplicate email login error

[Update: Newer versions of the attached below are available. Ask.]

The request came in this form, from my co-Collective member Dan, responding to a call from the executive director of Amazing Things Arts Center:

he said some people forgot what their username was on the site, and now when they're trying to make new accounts it says "email already registered' blah blah blah...

Enable checkoff of taxonomy only if other information filled in

Can one make checking off a taxonomy dependent on whether other information on a form is filled in?

For the World Social Forum site, we would like people to be able to mark an action as confirmed if it has both a place and a time listed.

Activeselect would probably be a good place to start.

Resolution

Users can create text-to-image banners to promote their action

I just had a "great" idea... but we have to see if it is possible to implement it.
Do you know of any freesoftware online banner creator that could be "integrated" in the website, so people could have some pre-made templates and add their slogans, then press a button and get a .gif file ready for their website?

Something like: http://highpowergraphics.com/bannerbuilder/index.php

Jason Nardi

Resolution

Agaric wants to disable comments for nodes, en masse, retroactively

disable comments for all nodes of a content type (meaning existing nodes)

This guy wanted it for Drupal 4.6...
http://drupal.org/node/161880

These folks only wanted it for specific nodes, which of course is built in:
http://drupal.org/node/87495

Long story short, there does not seem to be much demand for the ability to retroactively disable comments for a large number of nodes.

Partial Install Profiles

Agaric wants configuration profiles, that potentially can be combined, as well as applied later than the original installation.

And it seems like we can have it!

  • ben

I know I should do more reading and trying before asking, but are partial install profiles possible? Can (parts of) install profiles be used after a site is already up and running? Should this use of canned configuration be tried?

Firefox Shortcut for Searching Drupal's API

This is out of date, see http://data.agaric.com/node/2356

Update: Grayside has an HTML file you can download and import into Firefox from the Organize Bookmarks dialog with more up-to-date versions of the below and more:

http://grayside.org/2010/06/firefoxs-custom-keywords-and-drupal

Syndicate content