Published by Mijingo

tips icon image

EE Insider Tips
Sponsored by Mijingo's EE 2 Screencasts

ExpressionEngine mini-howtos created by the EE Insider community.

Tips tagged “Template”

A generic User Message Template

Posted on December 09, 2010 by Derek Hogue

Here’s a simple, generic User Message Template that’s gentler on the eyes than the EE default. Easy to customize as well to match your site’s colours if you’re so inclined!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>

Read this tip

Use a single template for multiple pages

Posted on June 09, 2009 by Andy Harris

On most of our sites we have many pages that are exactly the same, using the same weblog where only the content is different.

In cases like these, I create a single template along these lines:

{assign_variable:weblog="{embed:weblog}"}
{exp
:weblog:entries weblog="{weblog}" disable=

Read this tip

Change your hidden template indicator

Posted on June 08, 2009 by Andy Harris

I like to use hidden template indicator to hide templates - the default is to add a period before the template name, so for example if I have a template for my header, I would call it .header so it cannot be accessed directly.

However, the period before a filename also means a hidden file as far

Read this tip

Use conditionals to design your own URL structure

Posted on June 08, 2009 by JonnyUK

The EE docs state that URL’s at their simplest should be formatted using the following formula:

http://www.example.com/index.php/template_group/template/ 

But what if you want a more customised (or even dynamic) URL that doesn’t necessarily match the template name?

If you try to visit a URL

Read this tip

Hidden Templates

Posted on June 07, 2009 by Erik Reagan

You can easily make a template “hidden” by adding a period before the name. This comes in handy if you use embeds that you don’t want accessed via the standard template group/template route. For example by default you can access the following file:

http://domainname.com/index.php/embeds/masthead 

Read this tip

Search EE Insider Tips
Sponsored By