Attaching Files to posts

I'm using 4.7 beta 4. I have file attachments enabled. When I submit a blog or forum topic, I click on "File Attachments, click the "Browse" button, navigate to my document, and click open. The path to my document is put in the edit box.

I click "Attach" and watch the cool spinny bar thing work it's magic. After it is done, the file name appears in the File Attachments list with the right path, right size. I make sure that "List" is checked, then I click the "Submit" button and everything seems good.

Display a users name in the title of a menu item

I am new to Drupal and searched for this but found nothing.

In drupal 4.7 new form API, how to make use of the new date type?

Hi, I'm creating a new module, I have a field named "Due Date", which need three select drop down in mm/dd/yyyy format.

So at first, I use
$form[due_date] = array('#type' => 'date', ......);

How to use categories/taxonomy feature?

I want to use the categories and taxonomy feature for a single node such as "story".

Query problems: like or = in UTF8???

Hi everybody,

after upgrading my development install from 4.7b3 to 4.7b4
I'm facing some strange mysql behaviour...

this query does not return any result:
SELECT n.nid, n.created FROM node n WHERE n.type = 'story' AND n.status = 1 ORDER BY n.created DESC;

instead this one works and return latests nodes of type story:
SELECT n.nid, n.created FROM node n WHERE n.type like 'story' AND n.status = 1 ORDER BY n.created DESC;

The only differece between the two are n.type = 'story' in the first and n.type like 'story' in the second.

Form items inline?

Just started with 4.7....

I am porting a custom module right now. No problems with the new Form API so far except for inlining form items in edit mode.

What I am trying to achieve is:

Zip: [       ]  City: [                     ]

Is there a #prefix / #suffix to span form items so I can alter the css def of form-item to inline ?

<div class="container-inline">
[..] // zip and city fields 
</div>

where css def would be

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x