Drupal is up and running but how do I ...?

Enabling Clean URLs under SuSE 9.0 in Apache2

I use my home computer running SuSE 9.0 to experiment with the current Drupal CVS version under Apache2. Here is what I did to enable clean URLs:

NOTE: All paths given are only for SuSE 9.0.

The first problem was to get mod_rewrite running under Apache2:

I spent about 12 hours trying to enable mod_rewrite for apache2, without any luck. I searched the web, the Apache forum and Drupal's site and tried every trick I found -- nothing worked. Finally I remembered there was something in Yast (SuSE's control center, so to speak) about HTTP servers and went there. It had a listing for a mod_rewrite (under Yast > Network Services > HTTP Server) that was disabled, so I tried enabling it -- and finally mod_rewrite was shown as a running module in phpinfo()..... BTW it does no good to play with Drupal's Clean URL settings until you can see that mod_rewrite is enabled in phpinfo()

Next problem was to get all the Apache2 configuration files configured properly. Here are the changes I made to the config files:

Note: Be sure and change "/srv/www/htdocs/drupal-cvs/" to whatever the full path to your drupal directory is and "drupal-cvs" to the name of your drupal directory!

In -- /srv/www/htdocs/drupal-cvs/.htaccess

I changed  <IfModule mod_php4.c>

       to <IfModule sapi_apache2.c>
.

I also un-commented  # RewriteBase / 

and changed it to      RewriteBase /drupal-cvs

Questions about writing text in Drupal

Hi!

I have some questions about writing texts in Drupal, but I haven't found anything answering them in the forum or in the documentation on this site.

- How can I use the characters [ and ] in a text so that Drupal doesn't create a link? I've tried \[ and [[, but that didn't work.

- Is there a list of commands (like [url=]) that can be used in postings?

Make titles not link if there is no read more?

Hi. I'm using XTemplate to theme my pages and I'd like the code for the titles of nodes on the /node page to be rendered as:
<h2 class="title">title</h2>
if there is no more in the node to read.

and Rendered as:
<h2 class="title"><a href="/link">Title</a></h2>
if there is more in the node to read (ie if read more appears as one of the {links})

Linking in Pages.

When a new page is created, if you promote it to the main page it shows up. If you don't promote it to the main page... where does it go? I'm looking to create static pages for things like the Contribute link or Contact link on drupal.org

Sort order for taxonomy pages

I've searched a simple dynamic method to sort taxonomy pages on 'created by'.

I public my solution here for others;

edit modules/taxonomy.module and add the following lines

at the beginning of the function taxonomy_page() write
$taxonomy->order = arg(4);

and at the beginning of the function taxonomy_select_nodes($taxonomy, $pager = 1) write

Header error... I know, I know...

Hi there. Yes you've probably read hundreds of these and referred hundreds the FAQ.
However my situation isn't a few spaces after ?>. I've checked this, made sure there are no spaces but to no avail.

I'm including a php file called header.php in the common.inc file. It shows but error messages do also:

Logging in:
warning: Cannot modify header information - headers already sent by (output started at /home/r13370/public_html/2/includes/header.php:13) in /home/r13370/public_html/2/includes/common.inc on line 187.
warning: Cannot modify header information - headers already sent by (output started at /home/r13370/public_html/2/includes/header.php:13) in /home/r13370/public_html/2/modules/user.module on line 612.
warning: Cannot modify header information - headers already sent by (output started at /home/r13370/public_html/2/includes/header.php:13) in /home/r13370/public_html/2/includes/common.inc on line 236.

On every page when logged in / logged out:
warning: Cannot modify header information - headers already sent by (output started at /home/r13370/public_html/2/includes/header.php:13) in /home/r13370/public_html/2/includes/common.inc on line 187.

Logging out:
warning: Cannot modify header information - headers already sent by (output started at /home/r13370/public_html/2/includes/header.php:13) in /home/r13370/public_html/2/includes/common.inc on line 187.
warning: Cannot modify header information - headers already sent by (output started at /home/r13370/public_html/2/includes/header.php:13) in /home/r13370/public_html/2/includes/common.inc on line 230.

Pages

Subscribe with RSS Subscribe to RSS - Post installation