I'm looking to create static pages (www.mydomain.com/staticpage) just as you see in the top right corner of this site (http://drupal.org/support).

Does anyone know how to do this?

Comments

nevets’s picture

Enable the path module (part of the core) and then when adding/editing content you can set a path alias (if you have the needed permissions).

rewted’s picture

Thank you. This is exactly what I needed... is there a way to exclude the 'Authored on' line, or would it be done within the theme?

nevets’s picture

Goto to administer -> themes. Then click on the 'configure' tab. Look down for the section starting with "Display post information on". You should see a list of all the modules with content. If yoiu want to exclude the 'Authored on' line for one or more module uncheck the check box. Then click 'Save configuration' to save the changes.

rewted’s picture

Thank you once again. Didn't even know those options were there.

IamPter’s picture

That is odd I don't see this in my drupal 4.6.2 using the bluemarine theme.

nevets’s picture

The ablitity to enable/disabable the display of author info is under global settings. Found under administer -> themes, click 'configure' tab (not per theme configure), should take you to 'gloabl settings' tab by default.

IamPter’s picture

You are correct I overlooked the part where it says Enable or disable the "submitted by Username on date" text when displaying posts of the above type.

This is bad. This setting should be configurable per story, page, poll or whatever else. Not in just one central location.

Any ideas where I can submit the request for this to be changed.

sepeck’s picture

You mean you want to be able to set 'per post' whether or not to display this information? In my opinion That would be a bad usability design. The UI is fun enough as it is.

In any case, information on how to submit a feature request in the handbook oddly enough.

-sp
---------
Test sites and good habits: Drupal Best Practices Guide.
Misc Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

IamPter’s picture

Well things like my privacy policy doesn't need this information but stories do. It should still be a preference. It is my content after all?

rbrooks00’s picture

You can configure it by node type. If you set it to not display on "pages" (appropriate for things like a privacy policy) but enable it on things like "stories" or "blogs" then you have what you want.

sepeck’s picture

As yet another alternative the the other post, you can also build a flexinode content type for those 'custom' site information pages and use that for that kind of information. :)

-sp
---------
Test sites and good habits: Drupal Best Practices Guide.
Misc Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

bslade’s picture

Just to be specific, this solution is providing a static URL, not a static (file based) web page.

Ie. the web page being accessed at the mydomain.com/subpage URL is still a dynamically generated Drupal web page.

Ben in DC

ergophobe’s picture

Actually, aliased URLs are NON-static -- they are being drawn from the database. In any case, there's no such thing as a static URL except insofar as the URL does not change and in the end, all things change.

These are what you would call "clean" URLs which generally means that they have no query string and, preferably means that they take a form that has inherent meaning to the site visitors.

rgladwell’s picture

When I attempt to enable the path function i don't seem able to create a static link as above. If I create a URL alias for, say, 'alias', when I try to access by local drupal installation with:

http://localhost/alias

I get a 404. If I write:

http://localhost/?q=alias

It works

Also, is there anyway to modify the theme based on the URL alias used?

Uwe Hermann’s picture

Enable the "clean urls" feature in the settings.

Uwe.
--
hermann-uwe.de | crazy-hacks.org | unmaintained-free-software.org