Is Drupal a viable solution for my website? Please review What is Drupal before posting.

multi-domain, single code and same content

I have a project where a client wants to reduce his content management nightmare of dealing with multiple domains that has the same/similar content (text, images, forms, etc). They would like to have one administration area where they create content and edit content. The designs of each domain is different but I believe the extensions that they would need would be the same.

Can Drupal handle with an extensions or combo of extensions?

Can I develop on server under Drupal folder?

I would like to install Drupal on the server and develop it but still have the current site up and running. My thought is to develop the Drupal site under www.example.com/drupal. So that way people will still see the old site at www.example.com, and only the Drupal site if they put in /drupal. And that way a client could review the new site. Can't do that when developing on localhost.

Need help rewrite a url

Hello,

I rewrite a url of one of my nodes to improve the referencing in the pagination.

Example of original pagination:
node/75?page=2
I would like this same url becomes:
node/75-p2

Is it possible to do this with Drupal? Like this, I tried but it does not work:

function custom_url_rewrite_outbound(&$path, &$options, $original_path) {
  global $node;
  global $user;
  if (preg_match('|^node/([0-9])?page=([0-9])|', $path, $matches)) {
    $path = 'node/' . $matches[1] . '-p' . $matches[2];
  }
}

Thank you for your help!

-------EDIT-------

I just found the solution (for myself !!!).

Here's the code for what it might be of interest: (pagination works with all pages of Drupal (node, views, etc..))

In template.tpl.php

function custom_url_rewrite_outbound(&$path, &$options, $original_path) {
  //global $node;
  //global $user;
  parse_str($options['query'], $query); //Met dans un tableau les queries de l'url
  if ($query['page'] != NULL)
  {
    $path = $path . '-p' . $query['page'];// Chemin normal (alias d'url) + pagination rajoutée
    unset($query['page']);// Efface l'élément du tableau contenant la paginaiton
    $options['query'] = http_build_query($query, '', '&'); //Met le tableau dans la variable (remet dans le bon sens par rapport à la transformation juste avant)
  }
}

In .htaccess

Error 404 and Object Not found

Hi,
I am installing drupal 6.17 with Xampp 1.7.3.I have followed all the steps like creating a one database named "drupal". I Copied Drupal 6.17 into C:\\xampp\htdocs folder and then i made one more copy of "default.settings.php" in this path C:\xampp\htdocs\drupal-6.17\sites\default and i named as "settings.php".In "setting.php" ,i changed the $db_url = 'mysql://root:admin@localhost/drupal' and also i made changes to $base_url = 'http://localhost/drupal'; When i finished all the steps (upto my knowledge).

Preferred Linix Flavor for Drupal / LAMP vs. WAMP

Here are a couple of quick questions. I know there will be many different opinions on this. That's cool I welcome all feedback.

1. Is there a generally preferred flavor of Linux for running Drupal for

1) Development Server
2) Production Box
3) Personal Development Box?

2. Should I ever run Drupal in WAMP environment or just kick Microsoft to the curb and go LAMP? (Ex. I understand Drush doesn't work as well on WAMP.)

Profile with an address and Google Map

Hello,

I need advice. I would like ajoueré in the user profile, a user's address field and then retrieve this address to view the information of the user location with Google Map. I also want to create views with Googe Map of all users.

I spent much time searching for modules (Google Maps Tools, GMap Module, GeoUser, ...) or the modules do not meet my expectations or they are very complicated to implement.

Could you advise me which module to install that? Thank you in advance.

Greetings. Clément

Pages

Subscribe with RSS Subscribe to RSS - Before you start