I have been experimenting with Drupal for a bit, trying to get clean URLs to work with paths and aliases and in principle it seems to work quite well.
However there are a couple of things that puzzle me:
1) what node is used when i browse to the empty URL path (e.g. http://localhost/drupal/)? Is that the "front page"? Strangely, that page is always empty although I have created a node (with the path "index.html") that is "promoted to the front page".
What I want is that the empty URL path and "index.html" show the same actual page.
How can I do that?
3) how can I make a hierarchical site (I want to migrate a static site) so that e.g. a certain menu only appears for pages that belong to a specific subtree in the hierarchy?
For example
index.html
sec1.html
sec2.html
sec2/s2sub1.html
sec2.s2sub2.html
sec3.html
sec3/s3sub1.html
sec3/s3sub2.html
So .. sec2.html is the "header page" for everything below subdirectory/section "sec2" and contains a menu (which is not in sec1) that reflects just the subdivision of sec2 into s2sub1.html and s2sub2.html
Similarly, sec3 and its subpages would contain a menu that just reflects the major subsections in sec3.
So to sum it up: in sec1 the space is empty, in sec2 and all subpages the space contains the menu for sec2 and in sec3 and all subpages the space contains the menu for sec3. etc.
How can I specify which menu should appear on which pages and subpages but not on others?
Comments
Front page
The front page is index.php.
If you create a node and set the publishing options to 'Promoted to front page' it should appear on the front page; you shouldn't need to set the path.
If you set the publishing options to 'Sticky at top of lists' as well, it'll always be the first node displayed.
Example
Let me know if I you don't get this to work.
Pete.
As it turns out, when I
As it turns out, when I browse to an empty URL path, I get a page not found error. Maybe I messed up something?
When I turn off clean urls and disable URL rewriting, I get URLs of the form http://localhost/drupal/?q=index.html and http://localhost/drupal gives a page not found error which is handled by Drupal.
When clean urls are on and URL rewriting enabled, I get URLs of the form http://localhost/drupal/index.html and http://localhost/drupal gives a page not found error which is handled by Drupal.
I wish the page shown for an empty URL path could be just an alias for the page I show for URL path "index.html" -- I really do not need any of the special processing of the frontpage anyways.
EDIT: I just enabled the RewriteLog to look at what is happening and obviously, Drupal generates a page not found error when index.php is accessed without any parameter or an empty q parameter.
I'm experiencing this as well
I have my front page set to "node" and browsing directly to http://www.mydomain.ca/node or http://www.mydomain.ca/index.php shows the front page correctly but browsing to http://www.mydomain.ca displays Drupal's "Page not found" error. I have Clean URLs enabled and every subpage works correctly. I am completely stumped and any help would be greatly appreciated.
hey Pete, do you also happen
hey Pete,
do you also happen to know how you can set the order of the nodes published on the front page? descending or ascending?
cheers,
BassPlaya
Authentically,
BassPlaya
set the order of top nav items published on the front page
If you are talking about setting the order of the top nav, I just figured this out...go to Site building the Menus. Edit the menu item you want to change. By default "weight" is set to 0 for all items. The item set to 0 will be first, the item with a weight of 1 will be second, etc. Just change the weight of the items in your menu so they appear in the right order.
Front page node order
Hi!
Well, on my site, the front page is a view, so I just edit that from administer>views>frontpage
Pete.
found it
Hey guys,
check out this link: http://drupal.org/node/146266
It's a working trick.
I'm not using views since I'm not yet familiar with that module, maybe one day.
And I'm not using 5.1 neither since to few modules work with that version IMHO.
hopefully others find this interesting too.
Authentically,
BassPlaya