User login

Drupal Development

Useful links for developing for, submitting patches to, and helping out with Drupal

Taken from Webchick's intro to Drupal contributions for GHOP
http://code.google.com/p/google-highly-open-participation-drupal/wiki/FurtherInformation

It's been slightly generalized in places (but not yet in others).

Links that were in the text, in order:

http://drupal.org/

Putting several nodes or views on a page as tabs

<?php print theme_menu_local_tasks(menu_get_local_tasks()); ?>

“local tasks” are things like view, edit, track. they are usu. styled as tabs. menu_get_local_tasks() gets the menu structure in an array.

Menu Local Tasks - Tutorial?
http://drupal.org/node/122262

mdixoncm - February 24, 2007 - 13:12

2 simple steps to understanding local tasks.

Figuring out User-based Node Access in Drupal (again), some notes

Simply looking at this function is one of the most useful things you can do to understand node access control in Drupal. From the 5.3 version of node.module

RE: Node access module (based on users listed in userreference fields)

I created a module (attached, in case you're curious) that's a user reference widget. When placed on a node type, it will hide itself and fill itself in from the URL with the person the request is being made of. When a node with the field on it is submitted, it emails the person.

What I need is a way to allow the user in the user reference field the same rights to the node as the author of the node. So for all access control, they should be treated the same.

Do you think that's something you can / want to do?

Thanks,

Michelle

Re: [drupal.org] World Social Forum 2008 site, great initiative!!

Hi Martijn,

Yes, we will be giving every bit of code and configuration back on Drupal.org

The SVN repository is public also.

We'd be happy to give you the Places vocabulary populated by the participants of WSF2008. Remind us right when you need it-- the later it is, of course, the better and more complete it will be ;-)

Pierre's some ideas on the specs

Note this predates Agaric's proposal for the WSF2008 project.

Hi Jason and Benjamin

in the spirit of our chat of last thursday i have tried to go further
in some aspects - this may help for the monday chat to which i cannot participate- will post on the wiki soon

Alternative proposal for country selection: splash page

From Jason if Agaric's collective memory is working:

Idea for the country selection:

We put a pre-home page with a big title, a nice background (could be the wsf worldmap for now) and the list of countries by continent in 5 columns.
I would also like to have a spot there - we have one available soon.
Plus a button to skip directly to the home page below in the center of the footer.

This would allow us to have people link directly to their country/language page.

It should be quite easy to do, since it is just links to nodes of the site.

Userreference Access module development notes

The genesis is in Michelle's request for a userreference access module which we called a node authors module in the notes over there.

Change the number of columns in a grid view

You may be asking yourself: why did I find this information at some site called Agaric Design Collective? Beats us. If you can find the right place in the Drupal handbook (drupal.org/handbook) for this information, please put it there!

Looking at the code of views_bonus_grid.module:

  // set default count.

  $cols = $view->gridcount ? $view->gridcount : 4;

It would seem that putting

$view->gridcount = 2;

(replace two with your chosen number)

into "Argument Handling Code," "Argument Code:"

GHOP patch to the modules page which shows how much memory is in use

merlinofchaos: webchick: I finally came up with a ghop idea. It just hit me today, in fact.
[8:43pm] webchick: merlinofchaos, oooo!!
[8:43pm] webchick: do tell.
[8:43pm] merlinofchaos: webchick: We have ghop kids doing patches, right?
[8:43pm] webchick: Yep. And in many cases they're smarter than me.

Syndicate content