How to remove /drupal from site URL in Drupal 7

In Drupal 6 I was able to successful install Drupal in a subdirectory called drupal and then reference the site without having to use example.com/drupal.
In Drupal 6 to get this to work I did the following:
- Created an .htaccess file in the root directory where /drupal was created. The file contents were:
Options -Indexes
RewriteEngine On
RewriteRule ^$ drupal/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ drupal/$1

node_get_recent() but does not include unpublished nodes

With node_get_recent() I can get the recent nodes added into the Drupal site. However, this function includes recent nodes even if they are unpublished. Is there any function similar to node_get_recent() that only gets the recently PUBLISHED nodes?

Change layout of module made "landing page" (Debut Blog)

Hello there, completely new at Drupal but I have a question.

I am reasonably happy at how far I've gotten so far but I've run my head into a wall when it comes to modifying something a module have created. In this case, the landing page created by Debut Blog (site.com/blog/).

It's set up in a specific layout, with each blog post being put horizontally next to each other and summed up by title and, if available, a picture. I'd much rather have it be summed up with title, image and trimmed version moving downwards.

Wysiwyg editor toolbars not showing on remote hosted site

Hi

I've seen many questions about missing or empty toolbars on the wysiwyg editors on the forums but not one specifically on this problem.

Configuration Admin Tab and Reports Status give Server Error 500

Hello,

I have installed Drupal 7 and have it working just fine, but the admin/config and admin/reports/status nodes always come back with a Server Error 500.

Apache error.log does not have any entry for this, access.log have the following lines

127.0.0.1 - - [15/Apr/2011:12:02:50 +0200] "GET /drupalsite/?q=admin%2Fconfig&render=overlay HTTP/1.1" 500 919
127.0.0.1 - - [15/Apr/2011:12:42:36 +0200] "GET /drupalsite/?q=admin%2Freports%2Fstatus&render=overlay HTTP/1.1" 500 -

Can anybody help, please?

Thanks!

Bartik theme - Adding a bespoke region above and below 'Content' region...

Hi all,

I'm hoping that some of the more experienced Themers can help, (I'm a complete newbie:)

I've created a Bartik sub theme, and, I'm trying to create a new region below 'Content', to contain my View "What's on Latest".

I've been following this thread:
http://drupal.org/node/1080580

And trying to re-create the new region, by amending the mycustomtheme.info from this:

regions[featured] = Featured
regions[content] = Content
regions[sidebar_first] = Sidebar first
regions[sidebar_second] = Sidebar second

To this:

regions[featured] = Featured
regions[content] = Content
regions[whats_on] = Whats on
regions[sidebar_first] = Sidebar first
regions[sidebar_second] = Sidebar second

And then adding to the mycustomtheme\templates\page.tpl.php file from this:

     </div></div> <!-- /.section, /#content -->
    
    <?php if ($page['sidebar_second']): ?>
      <div id="sidebar-second" class="column sidebar"><div class="section">
        <?php print render($page['sidebar_second']); ?>
      </div></div> <!-- /.section, /#sidebar-second -->
    <?php endif; ?>

To this:

if ($page['whats_on']):

print render($page['whats_on']);

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x