User login

Documentation

Drupal, project, life documentation. This is where notes go to try to earn their way onto Drupal.org.

Setting up a Wiki in Drupal 5

[This document very much in development.]

http://drupal.org/project/members (nonwiki but also for TFC)
http://drupal.org/project/drupal_wiki ?
+ http://drupal.org/project/backlinks

2007-08-08 #drupal

[This document very much in development.]

http://drupal.org/project/members (nonwiki but also for TFC)
http://drupal.org/project/drupal_wiki ?
+ http://drupal.org/project/backlinks

2007-08-08 #drupal

aliljet: Singularo: really? i'd love to read something that woul dget me up and running, and then I could poke away at it until i tweaked it to be what I needed
[06:59am] Singularo: wiki?
[06:59am] Singularo: http://drupal.org/node/32235
[07:00am] aliljet: http://drupal.tschannen.net/wiki/set_up_a_wiki_with_drupal_5, hmm?
[07:00am] gordonh left the chat room.

Displaying images in a fancy or pretty manner in Drupal

Displaying images, showing pictures, photo album effects.

http://drupal.org/project/lightbox2

http://drupal.org/project/thickbox

http://drupal.org/project/views_slideshow
It's views, it can do anything.

Displaying images, showing pictures, photo album effects.

http://drupal.org/project/lightbox2

http://drupal.org/project/thickbox

http://drupal.org/project/views_slideshow
It's views, it can do anything.

http://drupal.org/project/acidfree

http://drupal.org/project/image_composition
Image composition let you create a composition of Image nodes.

Its development is based on http://www.alistapart.com/articles/magazinelayout and comment 34.

does not appear to use image gallery / taxonomy system
http://drupal.org/project/slideshow_creator

within one page:

Can't do 301 redirects in the Comcast prison

Creating a permanent 301 redirect for an account at Comcast Home is way more difficult than it ought to be.

UPDATE. As in, conclusion: it can't be done. That is unethical web hosting.

Of course, they probably don't want you leaving their pathetic services for a real web site host, let alone with a content management system and open source free software.

Log in. Going to http://home.comcast.net will at least get you to a screen for this.

Creating a permanent 301 redirect for an account at Comcast Home is way more difficult than it ought to be.

UPDATE. As in, conclusion: it can't be done. That is unethical web hosting.

Of course, they probably don't want you leaving their pathetic services for a real web site host, let alone with a content management system and open source free software.

Log in. Going to http://home.comcast.net will at least get you to a screen for this.

This poor guy got NO LOVE:
http://forums.searchenginewatch.com/showthread.php?t=7937

Additional fields for a content type: two approaches for Drupal 4.7

drupal 4.7 add fields to node type

How to Add CCK Fields to Any Drupal 4.7x Node Type
http://www.mikecantelon.com/?q=node/46

http://api.drupal.org/api/group/hooks/4.7

Perform alterations before a form is rendered. One popular use of this hook is to add form elements to the node form.

drupal 4.7 add fields to node type

How to Add CCK Fields to Any Drupal 4.7x Node Type
http://www.mikecantelon.com/?q=node/46

http://api.drupal.org/api/group/hooks/4.7

Perform alterations before a form is rendered. One popular use of this hook is to add form elements to the node form.

New fields to existing types? (4.7)
http://drupal.org/node/67103

Turns out, the Answer:
http://api.drupal.org/api/function/nodeapi_example_nodeapi/4.7

If a direct call to a view isn't working... check that you didn't break the view quite independently in theming it

Or, the more custom work you do, the more ways broken things can be your fault.

views_build_view and theming views

It turns out that the reason view was not working - not showing up at all - when call through views_build_view had nothing to do with the custom call. The view isn't showing up when displayed as a list, period.

I removed two fields -- CCK fields that I don't think apply to video module -- but it still isn't working, yet.

Or, the more custom work you do, the more ways broken things can be your fault.

views_build_view and theming views

It turns out that the reason view was not working - not showing up at all - when call through views_build_view had nothing to do with the custom call. The view isn't showing up when displayed as a list, period.

I removed two fields -- CCK fields that I don't think apply to video module -- but it still isn't working, yet.

Ahh. I had views template exported and modified in template.php that was screwing things up. It only affects list themes. Here's my broken version:

Array() definitions are separated by commas, NEVER semicolons

Not like I've made this mistake so many times it got into a commit message of mine... when I fixed it in four places!

cvs commit -m "array declarations cannot have semicolons inside them. Commas, not semicolons!"

See, semicolon at the end, not after each element:

      $pid = array(
        'value' => $pid,
        'field' => 'pid',
      );

Not like I've made this mistake so many times it got into a commit message of mine... when I fixed it in four places!

cvs commit -m "array declarations cannot have semicolons inside them. Commas, not semicolons!"

See, semicolon at the end, not after each element:

      $pid = array(
        'value' => $pid,
        'field' => 'pid',
      );

Ok, maybe now I'll remember.

Throwing Errors in Drupal: Agaric's complete guide

return drupal_set_message("Chutzpah and wishful thinking ahead.", 'error');

All right, Agaric hopes to write a guide to not just displaying error messages but doing it all an a way sensible to a programmer.

Questions:

  • How do you show a database SQL statement exactly in the form it ran to result in the error? I know I've seen these on my screen... how did I do it?!

There is no drupal "set_error" in Drupal 5: There is drupal_set_message and the second parameter can be error.

return drupal_set_message("Chutzpah and wishful thinking ahead.", 'error');

All right, Agaric hopes to write a guide to not just displaying error messages but doing it all an a way sensible to a programmer.

Questions:

  • How do you show a database SQL statement exactly in the form it ran to result in the error? I know I've seen these on my screen... how did I do it?!

There is no drupal "set_error" in Drupal 5: There is drupal_set_message and the second parameter can be error.

The Drupal Pro Development book says:

SELECT statements on long TEXT data are allowed

[1:56pm] agaric: SQL question... a select statement WHERE clause on a longtext column is legal, correct? Even though only a prefix can be indexed?

[1:58pm] merlinofchaos: agaric: It's legal, it'll just be a slower query
[1:58pm] agaric: thanks-- shouldn't be overly common.

[1:56pm] agaric: SQL question... a select statement WHERE clause on a longtext column is legal, correct? Even though only a prefix can be indexed?

[1:58pm] merlinofchaos: agaric: It's legal, it'll just be a slower query
[1:58pm] agaric: thanks-- shouldn't be overly common.

Line length for comments to wrap, Drupal best practices

Agaric asked this question on IRC #drupal-dojo, eventually the answer came back: 80 characters.

Thanks add1sun!

IRC is a little like the real sea, and tossing bottles with messages into it...

Agaric asked this question on IRC #drupal-dojo, eventually the answer came back: 80 characters.

Thanks add1sun!

IRC is a little like the real sea, and tossing bottles with messages into it...

<

blockquote>
agaric: coding standards: for long comments (/** *stuff here */) that wrap, we're supposed to hard wrap, right? At how many characters?
Michelle: coding standards?
Druplicon: coding standards is http://drupal.org/coding-standards

Submit buttons can't have description attached via D5 FAPI

Drupal 5 Form API (FAPI) does not allow submit buttons to have a description.

That's all I wanted to say.

Drupal 5 Form API (FAPI) does not allow submit buttons to have a description.

That's all I wanted to say.

Syndicate content