See the Mailing lists or Drupal Issue queue. There are also various working groups on groups.drupal.org

default enctype on form elements

I spent almost 1/2 a day trying to figure out why my module couldn't post files, and eventually found this code snippet burried somewhere in a random drupal forum:

$form['#attributes']['enctype'] = 'multipart/form-data';

I think forms_api should add this attribute automatically when a file input type is present. Either that or the documentation should make this issue more clear.

remove duplicate aliases from node list in node admin page?

Hi all,
I'm working on a multilingual site and have used the i18n module to create pages that have translations. I also used this patch (http://drupal.org/node/67814) to improve the translation of URL aliases, but I think that doesn't change the nature of this problem.

Let's say I have two nodes that are translations of each other: en/home and de/start. When I go to the node admin page (under administer->content), their aliases will both be the same, so either en/home, en/home, or de/start, de/start, depending on which language I'm in.

The admin page is generated by node_admin_nodes() in node.module, which of course doesn't have much awareness of the i18n module. Now I can think of two solutions for this problem:

1. modify URL rewriting from within node_admin_nodes() so that the links don't get translated. This would allow to show the complete list across all languages, but sounds a bit hacky, since other modules may apply custom url rewriting as well.

2. remove duplicate aliases from the list. That sounds like the simplest solution and is the most general because the core wouldn't have to support specific modules. However, there is no control over which of the nodes with matching aliases gets to stay.
For example, I have english selected and go to the node admin page. The node list includes:
node/3: alias: en/home title: Start
node/4: alias: en/home title: Home

language aware drupal_is_front_page()

Hi all,

I'm trying to customize my frontpage in the page template. I tried to use $is_front, which appears to be set by calling drupal_is_front_page(). This function simply checks if the request is empty. This doesn't work with i18n when I'm switching the language of the frontpage, because then the request URL will contain the language prefix. So instead of www.example.com it will be www.example.com/en.

Customize meta tags for all pages

Greetings,

I'm doing SEO for my site now. nodewords.module looks useful but it provides only global meta tags (for all pages) and tags for node pages.

What I need now is to be able to customize meta tags of every page. For instance, I would like to specify several keywords for taxonomy/term/111 and other term pages. I would also like to provide unique keywords for the front page as well as image gallery pages, etc.

As I understood, I need a module which will store page URLs and their meta tags in the table and insert tham on a page load ... if it is possible.

em tag problem reffering to html validation.

Anybody meets with next code in forming html:
<em class="clear terms"></em> ? (there is empty tag em, that case warning at html validation).

I found some similar in includes/locale.inc

JSCalendar

Greetings,

I'm using jscalendar from jstools module and found it rather attractive ... but how can I make calendar button to be from the right of its textfield (on the same line) but not under it ?

Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Drupal core