Page Lime Logo

PageLime CMS

home

Read About Stuff We Do. Pagelime Blog.

Content Management for Designers and Agencies.

New Labs Feature: Auto Publish Server Side Includes

New feature!? Quick - to the Batmoblog!

We just released a feature that makes PageLime automatically detect and publish include files (PHP and ASP.NET supported right now). Essentially, if you include a header or navigation file like so:

<?php include(’header.php’); ?>

PageLime will automatically parse the path, find the file, and publish any editable regions inside.

In order to use this feature, you will have to enable it from the Labs Features screen:

test-account_1253141709526

Automatically publishing server side includes has been one of the most requested features, and while there were simple workarounds, this update makes handling includes just like using PageLime - you barely have to think about it.

PageLime figures out all of the following scenarios:

  • Includes in subfolders
  • Includes in parent folders
  • Chained includes
  • Includes using the require PHP function
  • ASP.NET user controls (ASCX files)
  • Content history (if you have it enabled) for include files

We’ve optimized the feature pretty heavily (for example, if you have includes in the page, but no editable regions in them, PageLime will generally skip downloading and analyzing them). However, you should note that having lots of editable include files will slow down the publishing process, as it means that PageLime has to download / upload additional files.

Happy Editing!

17 Responses to “New Labs Feature: Auto Publish Server Side Includes”

  1. [...] New Labs Feature: Auto Publish Server Side IncludesOn my list of things to do: Play with PageLime again [...]

  2. Snake says:

    Don’t forget SSI and CFML, which should be just as easy to parse as ASP and PHP

    Server Side Includes:-

    CFML

  3. Emil says:

    Hey Snake! SSI should actually work. We added it later on but never updated the blog post. Give it a shot.

  4. Tim says:

    Any plans for ColdFusion include support?

    Of course there are server-side mappings that would make it difficult-to-impossible to find some templates, but if you could at least parse the ones that aren’t referring to mapped locations, it’d be great.

  5. Tim says:

    Er, my last comment was supposed to include this path, but I didn’t escape it:
    <cfinclude template=”path/to/template.cfm” />

  6. Emil says:

    Hey Tim!

    Sure - I’ll add support for CF includes for you :). It should be up within a day or so. I’ll shoot you a note as well.

  7. Tim says:

    Thanks! I shot you a note back just pointing out a few potential caveats. Appreciate it!

  8. Virginia says:

    Hey Emil Just wondering if you got around to adding CF include support for server side includes. I just tried it out and it does not seem to be working. I was able to get it to work with SSI includes but coldfusion includes seem to be a no go.

  9. Emil says:

    CF Includes should definitely work now. Shoot me an email to support[at]pagelime.com with the details and I’ll take a look. I saw someone mention on the forums that the CF includes didn’t work recently too. Maybe there’s a different syntax we’re missing in our code parser.

  10. eoin says:

    Just wanted to say thanks for getting the asp.net masterpages working; it’s so much more user friendly than having to use text files for editing common elements.

  11. Emil says:

    P.S. Everyone CF Includes did work, but we didn’t account for tags that don’t have a “/>” ending. We fixed this and all formats of the includes should work now. This was updated around May 1st.

  12. Mark says:

    Any chance of support for Classic ASP - I know its a bit old but still very useful for smallish sites. For example:

  13. Emil says:

    Hi Mark - your example will work. Give it a shot and let me know at support[at]pagelime.com if you’re having any trouble.

  14. Alan Feekery says:

    I’m having problems with ASP.NET Masterpages, do you not support them yet? =(

  15. Emil says:

    Hi Alan,
    I don’t believe we support ASP.NET Masterpages yet. It’s something we’re working on. Can you post the scenario you’re trying to use on the forum? (forum.pagelime.com) and I’ll make sure we update the post as soon as we release masterpage support.

  16. Michael says:

    SSI includes seem to be working for me, eg

  17. GREAT! I love it!
    When will you have a blog module?

Leave a Reply

LeftField Inc. 2009. All rights reserved.
PageLime is managed by a dedicated team of former freelancers, developers, and interactive agency types. We've been in your shoes, and that's why we built PageLime. Contact Us with any questions.

Latest From the Forum

more

Latest Suggestions

more

Register for PageLime

Log-in using an existing account at one with these sites:

OR

Register a new account with PageLime: