Basically i want to create a simple, static front page that has no special functionality.

Things ive done so far:
- i used the

directive to remove the "read more" link
- i disabled the "Display post information" on pages (administer->themes->configure)

still, when i create the page, i cant seem to get rid of the link in the page title(which links to the same page!!!)

Any tips, proposals?

Comments

US421’s picture

I do like to keep the link in the title because I often need quick access to the edit tab (one of my favorite things about Drupal) but I always feel that it confuses readers to click on an obvious link and see the same thing they just had. I changed the CSS file so that the title is no longer link colored, and changed the cursor from a pointer to a text. Here is the CSS from one of my themes, you may have to alter the class(.text) to reflect your theme:

.text h2, .text a, .text a:link, .text a:visited, .text a:hover {
color: black;
background-color: white;
text-decoration: none;
cursor: text;
}

mechler’s picture

This is a reasonable solution, but I wasn't content to settle. I use jquery on my site and am loading it anyway. My theme's page.tpl.php contains something like the following:

<?php if ($is_front) <script>$("#main .title").hide();</script>?>

This leaves the tabs and hides the title quickly and easily.

Web Developer, Iowa State University College of Veterinary Medicine

allanh’s picture

Any reason not to use the front_page module?

http://drupal.org/project/front

US421’s picture

I do use front_page on one site and like it very much, but no need to install a module when the default works fine :)

entrodus’s picture

Thank you both for your help.

Ive downloaded and tried front page module. It sure does help me a lot in defining a home page the way i would like. But...

I lose all the promote to "front page" functionality from all the other content types i might add in the future.

I dont think there is a perfect solution from the box for this situation.

Ill try to examine the php code of drupal, and find the right place to add an "include" statement to an external html page (my front page). I think it might be in the node.module.

Anyway if i manage to do this, ill post the code right here

Thanx again for you help

Nikos.

heine’s picture

Sorry,

but I can't resolve some statements you made:

Basically i want to create a simple, static front page that has no special functionality.

(emphasis added)

I lose all the promote to "front page" functionality from all the other content types i might add in the future.

Ill try to examine the php code of drupal, and find the right place to add an "include" statement to an external html page (my front page).

That said: the last thing you want to do is to adapt node.module. What theme are you using? If you use a phptemplate theme it's rather easy to get rid of the link.

--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

entrodus’s picture

Hmm.. you got me on that!
:)
I keep on asking more and more as the days go by..

i was using the default theme of my drupal 4.6 installation (xtemplate). After your reply i installed the phptemplate engine and tried out some themes.

It was weird at first because most of the UI were gone (primary links i had set, my logo etc...) but then, checked the tpl.php files and understood the real power of phptemplate themes!!!

I only need to copy, rename the entire theme directory and accomodate the theme to my own needs by using the little knowledge in php i allready have.

Thank you Heine, that was just what i needed to know.

:)

nicesuit’s picture

Would it be possible to MOD Drupal so you could OVERRIDE the link in the post title so that it links to another page altogether? For example, on my home page, I also do not want to link to the full article, however would like to link to the resource the article discusses. For example on my personal page (which also uses Drupal), I try to direct folks to the gallery. Could the link reflect the URL to the gallery, instead of the article that again describes it? I'll play with the code, to see if I can assign a field to the URL on the EDIT page. Anyone do this already....or have some insight?