page-front.tpl.php

digital_fox - July 22, 2008 - 17:56

Hello. Drupal 6.3.
I wish to make simple html page with http://site.com/first.html address main on a site. What to write in a file page-front.tpl.php?

=-=

VeryMisunderstood - July 22, 2008 - 17:59

making a page-front.tplp.php has nothing to do with the path yoursite.com/first.html
Drupal isn't file based in that way. if you for some reason need a path yoursite.com/first.html you must first create a node, then give that node a url alises using the path.module though, if you don't need this then you can skip it completely.

a page-front.tpl.php file will theme the front page.
you can copy the contents of page.tpl.php and put it in page-front.tpl.php and then alter the page-front.tpl.php from there.

Whether is there other way

digital_fox - July 22, 2008 - 18:10

Whether is there other way to appoint main page http: // site.com/first.html?

=-=

VeryMisunderstood - July 22, 2008 - 18:16

you must first create a node
then you can alias that node and call it first.html

ie: create a page content type
then use administer -> url aliases to alias the node

then if you want it to the be front page, goto admisniter -> site informtaion and set that node as the front page.

though again, I don't see why you would want to do this unless you already have a site where .html is being used.

Drupal doesn't use .html files

>you must first create a

digital_fox - July 22, 2008 - 18:24

>you must first create a node
>then you can alias that node and call it first.html

It don't work.
There is a module http://drupal.org/project/import_html , but it don't work in D6.

=-=

VeryMisunderstood - July 22, 2008 - 18:57

it does work. It's documented and I've done it.

you make node/10 = first.html using the path.module and when yoursite.com/first.html is called in the browser it will show node/10 with the alias you gave it.

to alter the paths, you must enable the path.module which is part of core
then you must goto administer -> url aliases to give the node an alias
documentation on this feature and module here: http://drupal.org/handbook/modules/path

import_html.module is only for importing html pages into drupal nodes.

maybe if you explained a little more about why you want first.html in the path we could be of more help.

florang.nichost.ru

digital_fox - July 23, 2008 - 02:50

florang.nichost.ru
florang.nichost.ru/first.html (and the page node/68 has "URL path settings"=first.html)
I wish to make main this page. I don't know how to make page same as first.html in Drupal. On page Administer>> Blocks>> configure I cannot in adjustments " Show block on specific pages: " to specify blocks " Show on every page except the listed pages " since " Show on only the listed pages " it is used.
I do not see other way to make it.
The module path has not solved a problem.

go to

jmburnz - July 23, 2008 - 02:58

go to admin/settings/site-information and set the default homepage to "first.html"

I have made

digital_fox - July 23, 2008 - 03:51

I have made it.
florang.nichost.ru/first.html (and the page node/68 has "URL path settings"=first.html). first.html is the default homepage.
Result - florang.nichost.ru.
It is necessary - florang.nichost.ru/first.html

florang.nichost.ru/first.html

jmburnz - July 23, 2008 - 04:00

florang.nichost.ru/first.html

Is not a drupal node.

Looks like you want a splash page - I believe there may be a contrib module that can help you out, try the downloads section.

there are no contrib module

digital_fox - July 23, 2008 - 10:19

there are no contrib module for D6

 
 

Drupal is a registered trademark of Dries Buytaert.