Jump to content

One-off pages


jmart
 Share

Recommended Posts

Let's say I have a page that I don't really need a template per-se. It's a one time page with no fields. Maybe it's a page with a form on it, or a big 3rd party iframe, or an htm image map (remember those?).

Do you just use a basic page and then put an if/else statement in basic-page.php?

If($page->id == 1003){

<iframe .../>

}else{

//render content as normal

...

}

Or are there other strategies for dealing with these edge cases?

Link to comment
Share on other sites

i've done that a lot, how you described; but i think diogo is making a good point that there's really no need to be economical in terms of # of fields or templates you use, especially if it makes it easier/cleaner

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...