Forums / Setup & design / Using a seperate template for a mini-site (for a beginner)

Using a seperate template for a mini-site (for a beginner)

Author Message

Jason Schmidt

Thursday 13 April 2006 1:00:42 pm

I'm working on a small Cultural website, that features a large number of events in my City, and I'm trying to set up a minisite somewhere within the existing EZpublisher website. This portal is completely run by eZ publisher, and the first problem I've come across is that I can't get our content to show on the site.

Can someone give me an idea as to how we can get this HTML site to work independantly of the eZ platform, as we already have the site done, but after uploading it to a subdirectory, I got a problem saying it couldn't find the module. I learned why this was, and set up a folder using the Control Panel, and a basic page, but due to the coloums set up on the pre-existing template, I can't really just export my code as.

I'm guessing I need to make a new template, at least without the pesky coloumns, but I have no idea how to just get a regular XHTML page to get loaded, when i pull up the subdirectory.

Can someone try and help me break this down, I've read the docu, and it doesn't explain how to do anything along these lines.

Betsy Gamrat

Thursday 13 April 2006 5:31:26 pm

Jason,

You might want to put some links to your site up.

Mark Marsiglio

Friday 14 April 2006 2:59:08 am

It sounds like you want to add static HTML files to a directory that eZ thinks it has control over. Hence, the system looks into the node structure for that page, but none exists because it is outside the database in static files.

If this is the case, you will need to exclude the directory containing your files using an .htaccess. If you are using the provided .htaccess file, there are probably already several directories that are set up this way (i.e. design/*/images/). You can just copy and paste one of these lines in the .htaccess, and change the name of the excluded folder to your own.

RewriteRule ^minisitedirectory\.* - [L]

or

RewriteRule ^path/to/minisitedirectory\.* - [L]

We use an .htaccess file found here in the forums
http://ez.no/community/forum/install_configuration/htaccess_hidden_at_last/
in the 6th post (from Ekkehard)

Toward the end there is a long list of rewrite rules, and you can just add the line above (obviously changing the location of the directory to your own).

If you already have the pages created in HTML, this will certainly be the easiest way to go. However, you should be aware of the limitations, such as the potential lack of consistency between your pages and the main site, exclusion from the search results and main navigation, and possibiilty of broken links.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions