drupal

Drupal Flexifilter Mediawiki example hack

You like drupal flexifilter mediawiki syntax, but dislikes it links to wikipedia instead of your site?

Check
sites/all/modules/flexifilter/flexifilter.flexifilters.inc

and change the wikipedia occurences to your site path!

When the module is installed now, you can got to
admin/build/flexifilters/1

and change wikipedia entries in the hiearchy of filter commands.

it's a bit fiddling to find it... something like

Drupal Menu Translation

I had a strange issue with drupal menu translation:

After adding a translation of a page, and set it to state "published", the english _and_ german_ page was shown in my primary links field - while I expected it to be shown only the one for my current language.

This can be solved by installing the i18n/internationalization module and enabling it and it's menu translation option. With the default it should be all good - if not, things cna be adjusted, for example in admin/settings/i18n.

Drupal freelinking

About to add freelinking support to my new drupal system - it should enable me creating links to pages by writing wiki-style links.

Everything a bit confusing, the INSTALL file points to menu items that do not exist as written.

You really have to enable freelinking in the menu admin/settings/filters by going to the "configure" link of each content type that should have freelinking links.

After I did that, I get working links - but only when I'm logged in.

Layout-switching in drupal zen subtheme

I just did somethign wrong when creating my own drupal theme by makin a subtheme of the zen theme from the STARTERKIT:

I copied the file layout-fixed as it is without changing it's name to layout.css - which seems to be what you have to do, and what the nice helper script does.

But I want to be able to change between the fixed and the liquid setting in the admin menu.
How can I do that?

I add this to theme-settings.php:


$form['themedev']['zen_layout'] = array(
'#type' => 'radios',
Inhalt abgleichen