installing 7.0 on Media Temple DV

Has anyone been successful in installing Drupal 7 on Media Temple DV? I tried twice and all I get in a browser is a blank (wsod).

Agregate CSS into one file

I have noticed that even using “Aggregate and compress CSS files” (admin/config/development/performance) my theme is linking to a bunch of CSS files. Looking deeper, I have seen that every CSS belongs to a group (I couldn't find good documentation on this topic, though… maybe somebody could point me to the right documents to understand better about this topic…). Therefore, there is a CSS file per group.

But actually in the case I'm working on, I don't actually need all this… I can easily go with just one CSS file that combines all these different bits. But keeping the order of loading is important.

So I have created this function inside my theme's template.php:
<?php
function THEME_css_alter(&$css) {

// Sort CSS items, so that they appear in the correct order.
// This is taken from drupal_get_css().
uasort($css, 'drupal_sort_css_js');

// The Print style sheets
// I will populate this array with the print css (usually I have only one but just in case…)
$print = array();

// I will add some weight to the new $css array so every element keeps its position
$weight = 0;

foreach ($css as $name => $style) {

// I leave untouched the conditional stylesheets
// and put all the rest inside a 0 group
if ($css[$name]['browsers']['!IE']) {
$css[$name]['group'] = 0;

Creating View of child node of a Book

Hi there, I'm really struggling to create a Block View that will list the child node on a book...
I've manage to create a block that display what I want (only one content type), but that view only appears when I on the top book, if I click on a child, then I loose the other "leaves".... Could somebody help please :)

Here my code for the view:


/* Display: Folder List in Project */
$handler = $view->new_display('block', 'Folder List in Project', 'block');
$handler->display->display_options['defaults']['relationships'] = FALSE;
/* Relationship: Book: Top level book */
$handler->display->display_options['relationships']['bid']['id'] = 'bid';
$handler->display->display_options['relationships']['bid']['table'] = 'book';
$handler->display->display_options['relationships']['bid']['field'] = 'bid';
$handler->display->display_options['relationships']['bid']['required'] = 1;
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Content: Nid */
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
$handler->display->display_options['arguments']['nid']['table'] = 'node';
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
$handler->display->display_options['arguments']['nid']['relationship'] = 'bid';
$handler->display->display_options['arguments']['nid']['default_action'] = 'default';

.htaccess

Well I finally managed to install Drupal, but only by disabling the .htaccess file (by giving it a .old extension).

My host told me this file may be needed for searching on my Drupal site.

Can can I get it to work? I tried removing the old extension and I just get a 500 Internal Server error again.

What can/should I do?

Is the .htaccess file really needed?

Drupal & + text editor and images query

Hi, I'm pretty new to Drupal and I was checking out some youtube tutorials on inserting images into content and I noticed that some of them show text editing icons around the main text field (i.e. like you get in Wordpress so you can make text bold, italic, align etc.). But I don't appear to have this in Drupal 7. The tutorials also showed being able to insert uploaded images anywhere in the body of the text with a window where you can set the image alignment and vertical/horizontal space. Again, I'm not seeing this at all in Drupal 7.

How can I make different menu items have different internal links to the same node?

I want to be able to have several url's to a node, and to use theese aliases in the main meny.

In the Path module, I am able to make several url's (aliases) for the same node. So when I type different url's in the address bar of the browser, I get to the same node. This is what I want.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x