ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Exactly what EE elements are NOT allowed on Static Page?

September 16, 2010 2:18am

Subscribe [2]
  • #1 / Sep 16, 2010 2:18am

    P.J.

    158 posts

    I am trying out changing webpage to static page type under template.

    I don’t quite understand what the user manual meant by or how it defines EE rendering elements which are not allowed in static page.

    For example, are the following allowed or not allowed?

    {assign_variable:template_group="weblog"}
    {site_url}
    {stylesheet={template_group}/site_css}
    {charset}
    {path={template_group}/rss}
    {path=site/forums}
    {path=site/submit}

    For static page, does it matter how long I set the cache to last (since the page is now static)?

  • #2 / Sep 16, 2010 10:00am

    Sue Crocker

    26054 posts

    P.J., static is no rendering elements. None of these will work with a static page.

    An example of a static page would be something with a mailing address in it. Of course, in some instances you can have a global variable perform the same function.

    It shouldn’t matter too much about the page caching. Let me check with the dev team about caching and static pages.

  • #3 / Sep 16, 2010 1:00pm

    P.J.

    158 posts

    What about PHP code?

    Can this be a static page if I only use PHP codes but none of the EE codes such as those I posted in the original post?

  • #4 / Sep 16, 2010 10:53pm

    Lisa Wess

    20502 posts

    A static template means no HTML and no PHP.  It is as if the template was a .html template in the filesystem, outside of EE.

    Template caching would still act the same.

    If you need to use dynamic elements, “web page” is the best type to use.

  • #5 / Sep 17, 2010 1:47am

    P.J.

    158 posts

    Thanks, Lisa. 😉

  • #6 / Sep 17, 2010 10:04am

    Ingmar

    29245 posts

    Glad to see Lisa was able to help. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases