Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Custom pages and HTML

Asked Modified Viewed 3,290 times
A
arat
A
arat 10
  • Member, joined since
  • Contributed 79 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
asked
Member

I have a bunch of static html files (text + a few images each) that I would like to use as custom pages. Each html file is in it's own directory with the associated images.

Question is, can I do this? If so, how?
0 replies

6 posts

A
Alipapa
A
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
answered
Newbie

Quote

<?php

require_once "maincore.php"; //this path must be CORRECT!
require_once THEMES."templates/header.php";

add_to_title('page title'wink; //not necessary
add_to_meta("description", " description for this page"wink; //not necessary
add_to_meta("keywords", ", keywords for this page"wink; //not necessary
opentable('page name'wink;


include BASEDIR."folder/your-file.html";

closetable();

require_once THEMES."templates/footer.php";

?>
Edited by Alipapa on 24-03-2010 09:43,
0 replies
A
afif
A
afif 10
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 12 threads in the forums
answered
Member

just make sure the maincore.php path is correct.. then it should be fine.
0 replies
A
arat
A
arat 10
  • Member, joined since
  • Contributed 79 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
answered
Member

Thanks HobbyMan, that's what I was looking for.
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

<?php

require_once "maincore.php"; //this path must be CORRECT!
require_once THEMES."templates/header.php";

add_to_title('page title'); //not necessary

opentable('page name'); //not necessary


INCLUDE BASEDIR."folder/your-file.html";

closetable(); //not necessary

require_once THEMES."templates/footer.php";

?>
0 replies
A
arat
A
arat 10
  • Member, joined since
  • Contributed 79 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
answered
Member

Thanks PolarFox... that would work but what I really want to do is not have the html code in the database. I would like to use something like "include" to show the html content in the custom page.
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

<?php
require_once "maincore.php"; //this path must be CORRECT!
require_once THEMES."templates/header.php";

add_to_title('page title'); //not necessary
opentable('page name'); //not necessary
?>

<!-- HTML CONTENT HERE -->

<?php
closetable(); //not necessary

require_once THEMES."templates/footer.php";
?>


That is what you need?
Edited by PolarFox on 20-03-2010 07:07,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

A
A
afif 10
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 12 threads in the forums
H
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
A
A
arat 10
  • Member, joined since
  • Contributed 79 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
A
A
  • Newbie, joined since
  • Contributed 8 posts on the community forums.

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet