EE pages the easy way
Monday, 04 August 2008 / Label: Coding
I recently came across Alex’s article about how to make pages with Expression Engine. Without criticizing Alex’s article, I do think there’s a much easier way to make pages with EE than what Alex suggested in his article. I think his work about to make pages with EE comes from him being a former Wordpress user, hence his tutorial.
Now the tutorial. If you’re familiar with EE’s control panel, you’ll know that your main site/weblog is controlled by the Weblog Template called site.
-Go to the tab called Templates.
-There you’ll see a list with all your weblog templates, i.e. *site, search, includes, etc.
-Click on *site.
-Click on New Template.
-Fill out the form with the template name, for instance “about”.
-Check if your page is going to be a Web Page, a RSS Page, a CSS stylesheet, etc.
-Then you can choose whether you want to duplicate an existing template (EE uses the term template to designate page), create a blank one or import one.
-Hit Submit.
-There you have your new page.
-Now you’re back to Templates>*site.
-Click the new page you just created. Let’s assume it’s a blank Web Page.
-Fill out the page with your about information as if it was a html file.
-Add the code shown below at the top of the page and hit Update or Update and Finished.
{assign_variable:my_weblog="default_site"}
{assign_variable:my_template_group="site"}
-Now you’ve got yourself a web page.
-Here’s an example of how this page’s code would look (I’m showing you my 404 page, for example).
{assign_variable:my_weblog="default_site"}
{assign_variable:my_template_group="site"}
{embed="includes/top"}
<p>404: It seems the page you're looking for isn't available at the moment.</p>
{embed="includes/bottom"}
It’s really easy to make new pages and sections to your site without having to make new EE Weblog Templates for each new page you want, i.e. about, domain, links, articles, etc.
If you have any questions or suggestions, feel free to comment or send me an .