Drupal

Batch change the node language


Problem:

Many websites start of in one language. Switching to multi-language results in the existing content content being in language "Neutral", but it is only available for translation once a specific language is set. It would be nice to set a language  through a batch operation.

Solution:

http://drupal.org/node/526048#comment-3562008


Avoid an empty Views block (title) showing when no results.

Published in

Problem:

A block created from a view that shows the block title even when no data is being returned.

Solution:

http://drupal.org/node/1032376#comment-3971916

Showcase: Automatically convert an online price list in multiple currencies


Automatically convert your pricelist to multiple currenciesIn tourism  normally multiple currencies are accepted (hotels, restaurants, diving centers). Many times an online pricelist with a different version for each currency is desired. Untill recently the office staff had to review  price lists weekly and update them based on the current exchange rates.

We wanted to avoid this tedious and error prone job for our customers and developed a self converting online pricelist in Euro, US dollar, Pound Sterling and the local currency (in our case the Egyptian Pound).

Drupal 6 recipe for migrating content

Published in

Re-invented the wheel a couple of times now. It's time to write a step-by-step guideline on migrating data and configurations from one site to another. It's just A way to do it amongst many other possible. Some considerations:

Views: how to make empty field go at the bottom when using an ascending order

Published in

Problem:

For example, when nodes are sorted on date in a ascending order, nodes without a date come first. How to make them come last?

Solution:

http://drupal.org/node/727418#comment-3351666

What is the php variable to print the book navigation

Published in

Problem:

When you use the Display Suite you can customize content types, but you loose the book navigation.

Hide unwanted elements with CSS

Published in

Problem

A module might add elements you don't desire. Instead of hacking, it's easier and cleaner to hide these with some CSS. Use the "Inspect element" or similar from your browser developer extension to see how the class or identifier of your element is named. You can fine grain even more by preceeding it with another CSS wrapper. In the example below you see .teaser p.feedburnerFlareBlock {   display: none; }

Only Front page works. Rest "page not found".

Published in

Problem

This is most likely to happen if you move or clone a complete site. It's due to the clean urls not working anymore.

Solution

Probaly you did a nice Drupal install, copied the sites folder but forgot to copy the .htaccess file over in  the root folder.
See http://drupal.org/node/593166#comment-2104636

Blocks: How to combine PHP visibility control with specific page visibility

Published in

Problem

When you choose the option to control visibility by PHP, you lose the ability to have Drupal automatically show/not show a block based on path.

 

Solution

http://drupal.org/node/64135

Views: Filter output to exclude the current node

Published in

Problem

Filter the output of a View to exclude the current node

Solution

http://drupal.org/node/328104#comment-1119773

Syndicate content