Code integration,

Dear All,

We intend to develop a complex site and we are keen to use Drupal as a base engine for our project. We recognize a number of advantages of using Drupal, such as light-weight, consistent code base, implementation flexibility, as well as the well-established community. We primarily want to use Drupal for user/session handling and convenient content management. Now, there are some relevant questions that we would need to have answered before we would enter the development process:

1) We would preferably have our content (nodes) and user-base stored in a different database than Drupal configuration data. In other words, we would like to separate critical business data from the the system-specific information that determines the way Drupal core and related modules operate. Is it workable, and if so, sensible at all? What would be alternate solutions to achieve this?

2) We want to keep our site simple to browse and navigate. Indeed, Drupal comes handy to meet that purpose, however, for our future users' convenience we would like to develop a mini application - a content browser that would make search for a specific piece of content easy and seamless process, based on a set of specific criteria (we already have a data model in mind that would become a foundation for our MVC approach here).

Decreasing number of queries with drupal_lookup_path patch

Hello.

Now our team works on the project that is built on Drupal 5.3 with many modules plugged in and has a lot of content.
A lot of functionality is already implemented and now I'm researching performance problem.

Number of queries is a real problem.

I implemented some caching for several modules but number of queries still to high.

I'm using devel module for researching.

I found that drupal_lookup_path executed very often so I wrote some enhancement for this Drupal core function.

Drupal code (in includes/path.inc):

    if ($action == 'alias') {
      if (isset($map[$path])) {
        return $map[$path];
      }
      $alias = db_result(db_query("SELECT dst FROM {url_alias} WHERE src = '%s'", $path));
      $map[$path] = $alias;
      return $alias;
    }

with my changes:

// in the static variables definition part
static $searched = array();

if ($action == 'alias') {
if (isset($map[$path])) return $map[$path];

$last_symbol = substr($path, -1, 1);
if ($last_symbol >= '0' && $last_symbol <= '9') {
$path_mask = substr($path, 0, -1);
if (!isset($searched[$path_mask])) {
$searched[$path_mask] = true;
$result = db_query("SELECT src, dst FROM {url_alias} WHERE src LIKE '%s_' LIMIT 10", substr($path, 0, -1));

Standard CSS for Drupal

hi,
Is there a standard css for drupal, I mean drupan specific classes and ids?

how to create a blog entry queue (auto-publish with future timestamps)?

Everyone tells me it's simply not possible to have a "queue" in Drupal -- like the sort of blog queue you have in WordPress and other blogging systems. Is there really no way to trigger publication of a blog entry based on the timestamp?

I have tried to search this forum and the web generally but haven't found anything except requests for the feature.

I am looking for a way, any way, to make blog entries auto-publish, without having to babysit the blog all day and click Published each time. Thanks for any help you can offer!

Three-site directory-listing solution sought

Good afternoon, all. This is my first post to a Drupal forum, and I am more than a bit excited (and yes, a tad intimidated) at this event.

Let's get to it: I am in the process of blue-skying a project. Basically, a three-site niche directory project wherein each of the three sites would be a 'directory listing' solution similar to PHPMyDirectory, but tightly related. I recall from previous visits here that multi-site management within one solution is now possible with Drupal, which is what caused me to think this might be a good idea!

Installation errors in Drupal 6

To install Drupal 6, you need to have several permissions properly set in your file system. This ensures that Drupal can create the required files and that everything will work correctly the first time you visit your newly installed Drupal site.

For more information see the documentation for granting permissions in Drupal 6.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x