in Yola Pro, does the HTML widget allow SSI includes of uploaded .shtml files?

  • 1
  • Question
  • Updated 6 years ago
  • Answered
Ahoy, team Yola. I just read the post about the Yola Pro offering that was just released. In the post, the author mentions that in Yola Pro, you can now upload HTML, js & css files -- something that is restricted in the free version.

This leads me in another direction to finding an answer to an earlier question I posted about the ability to have "common includes" (not a page saved as a duplicate) for recurring/common content (http://forum.yola.com/yola/topics/doe....

Assuming you can now upload html files to Yola, I was wondering if the uploaded files could be used in an SSI context (as in server-side includes -- not SSL ;) )? Specifically, I am talking about including something similar to the following snippet in an HTML widget :

<!--#include virtual="/wherever_yola_stores_user-uploaded_files/some_shared_content.shtml" -->

If so, that would seem to be an improvement from the very serviceable IFRAME hack suggested by @Kawina on the topic page :

http://forum.yola.com/yola/topics/is_...

If this is possible, I would be one happy camper :).
Photo of herringtown

herringtown

  • 12 Posts
  • 2 Reply Likes
  • wondering...

Posted 9 years ago

  • 1
Photo of lambofgod

lambofgod

  • 875 Posts
  • 35 Reply Likes
I do not believe that you can have SSI with Yola. What did you want to do? There has been many things I have wanted to do with Yola that I couldn't but I was able to work around it and do what I needed.

Best of luck-Dan
Photo of herringtown

herringtown

  • 12 Posts
  • 2 Reply Likes
Hi Dan .... yeah, the SSI thing was a shot in the dark, but I was seeing if I could
come up with something less kludgy (albeit only slightly) than the IFRAME hack for implementing includes. :)

Basically, my client has more than a few shared content elements between pages that will change frequently (sidebar content, pull-quotes, testimonials, highlights, etc.). Creating duplicate versions of pages with Save-As is a non-starter solution.

Right now, I am am accomplishing this through an IFRAME hack that references a non-menu content node (the iframe does in fact load the entire template, but a little bit of absolute positioning and white BG makes it look like just the desired content has loaded -- thanks to @Kawina for suggesting). This is rather inefficient, but it works :). The main downside to this approach (other than using IFRAME's, which I hate doing), is the possible necessity of updating any hardcoded width/height attributes due to new content.

If you have any better suggestions (or just feel like sharing something cool you've done with Yola to a noob :) ), please let me know! Thanks! :)
Photo of Kershnee

Kershnee

  • 2087 Posts
  • 152 Reply Likes
Hi Herringtown,

SSI includes are an old, deprecated mechanism for generating dynamic content on the web. In particular, we can't allow them for security reasons. We're sorry about this, and we recommend that you continue to use the iframe hack.
Photo of herringtown

herringtown

  • 12 Posts
  • 2 Reply Likes
Hi Kershnee ! Yes, I am definitely well aware that SSI's are an old, deprecated & problematic mechanism for generating dynamic content on the web, but seeing as Yola has not featurized the concept of includes, we users are forced to search for hacks (such as the aforementioned IFRAME hack) to accomplish this. ;)

I will continue using the IFRAME hack , which works fine -- just thought I'd ask though, in case you for some odd reason still let Apache run SSI directives ;). Thanks...
Photo of clhend

clhend

  • 5 Posts
  • 0 Reply Likes
So, since it's been three years since this topic came up, has anything improved? I just spent all morning go through and manually changing the copyright date in the footer of every page.
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Hi clhend,

It has for Silver users. You can use the Footer Code facility to globally change content there.
Photo of clhend

clhend

  • 5 Posts
  • 0 Reply Likes
Well, I'm Silver, but I don't recall seeing anything about "Footer Code". Plus I am interested in the ability to use includes elsewhere, not just in the footer.
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
To place stuff in the Footer of your site: Site>Site Settings>Tracking>Site Tracking Code>Footer Code

It's recommended that you try your text or content out on a test site first before implementing it in your live site.

You can use CSS as a tool to add stuff sitewide in the body of your pages or the Save As feature which in effect allows you to save a page as a template and add the content to this then recall the template for each added page and again use the Save as feature to rename the page.