I have been around Drupal for a little bit and I have recently taken on a complete project using the Drupal framework. I have ran into an issue. I am trying to add a static page into the content area of the site. Basically I create a css map that have a bunch of photos on it and when the user rolls over the image it has a hyperlink and that will take him to the next place. So, I am looking to add this as a static page but still with the same wrapping around it so it remains integrated.

I have tried by creating pages two separate ways.

I activated the php filter did a php require function - this worked to some degree, the page showed up but none of the images from the page pulled up. It looked as though it was blank.

I tried to cut and past using the html filter (the static page is basic html and css). This option did not work.

Please help.

Thanks

Comments

dman’s picture

If you are using HTML+CSS to display images, your problem will probably be the paths to the CSS image files. Check your 404 log to see the missing requests. You could use server-relative paths beginning with a / if needed to find them, although a .css file is better of course.
If you are comfortable using PHP input format, and the css class and style directives ar not getting stripped by any other filter (view source) then you may want to try drupal_add_css() and refer to your external css file. make a file in your theme dir. make your images relative to that file, and (I think)
drupal_add_css($path_to_css);
will work.

To be really clever, I think $directory may contain the path to the current theme for you to work with. Or maybe base_path().path_to_theme()
Not 100% sure OTTOMH in a php-eval context.

.dan.
if you are asking a question you think should be documented, please provide a link to the handbook where you think the answer should be found.
| http://www.coders.co.nz/ |

adiz’s picture

I just was looking at the image paths and that was the issue. All solved! Thanks for the quick replies.
--
Adiz

WorldFallz’s picture

I tried to cut and past using the html filter (the static page is basic html and css). This option did not work.

Filtered HTML or the full html input filter? you probably need to use the "full html" input filter.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz