The text below the ==== is the actual content I placed on my localhost site. It's a site I am making for a local advertising company, and thought Drupal might be a good use for it. I've got Drupal 4 running, installed Interlaced theme, and added a page to the front page (static on front page) and with the below code. However, when I submit it, the "global $theme;" and all the rest of the PHP code is not evaluated. I have made sure that the type is set to PHP, and it previews fine. It is not the first time I do this, as I am posting lots of page nodes to the ProjectX site, so, I know I have done this correctly, but somehow this doesn't work. Could it be the way my PHP/Apache/MySQL is set up? Any advice?
Options I have set are:
Set public/published:
Enabled
Promote to front page:
Enabled
Static on front page:
Enabled
Allow users comments:
Read/Write
Create new revision:
Disabled
=================
global $theme;
$theme->box("What is Crusse Gateway?","
Crusse Gateway is our way to let you find your way around South Africa.
We've got several areas covered, but always expanding to provide better service to you. The areas currently covered are Potchefstroom, and the so-called KOSH area, consisting of Klerksdorp, Orkney, Stilfontein and Hartbeesfontein.");
Comments
Oh, I have set the Navigation
Oh, I have set the Navigational link to "about" and when I click that, it displays correctly, but when I click on the "home" link the text don't get evaluated...
no php needed
if you change your site page title into "What is Crusse Gateway", and make the body into the whole text, you should be OK removing all PHP and making this an HTML/plain text site page. This looks fine when viewed by itself or statically on the home page.
note that this doesn't have to be a site page, since you are no longer using PHP. A blog entry or story would work equally well.
RE: No PHP needed
Well, the thing is it will become more than one box in the end. I guess I can make it several nodes, but I don't think that is the proper solution. I could get around the other way, but this seems like a bug in Drupal (or my copy of it anyways...
) so, I was wondering if any of you get this same error?