kinyelo / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
1 stars 2 forks source link

Include a external HTML #333

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please, could you tell me how I can include a external URL or HTML into the 
page?

I´m testing with the following velocity sentences but the result was not the 
expected one

#include( "www.myexternalpage.com/index.html" )

Original issue reported on code.google.com by jjmere...@gmail.com on 30 Aug 2010 at 5:50

GoogleCodeExporter commented 9 years ago
Please describe in more detail of how do you want to include HTML into your 
page. Provide some example with html code.

Do you want ro use iframe or something else?

Original comment by kinyelo@gmail.com on 2 Sep 2010 at 10:06

GoogleCodeExporter commented 9 years ago
Yes, we want to use something like iframe but without using iframe. Ie, We 
don´t want to use iframe html expressions because it is bad for Google SEO. 

Do you know Joomla CMS? In Joomla CMS  exits a component called Wrapper that It 
let you to integrate external htmL of the another pages/website/etc.

Original comment by santilh@gmail.com on 2 Sep 2010 at 10:47

GoogleCodeExporter commented 9 years ago

Original comment by kinyelo@gmail.com on 5 Dec 2010 at 3:42

GoogleCodeExporter commented 9 years ago
FYI: a while ago I created a plugin for doing this because I needed the 
feature. I also posted a message about this on the mailing list, but I'm not 
keeping up with Vosao updates. The latest version is compatible with Vosao 0.6 
(and possibly other versions as well - make sure you backed up your data before 
trying this). See attachment.

Original comment by wowt...@gmail.com on 7 Dec 2010 at 7:26

Attachments:

GoogleCodeExporter commented 9 years ago
Added include plugin 
http://code.google.com/p/vosao/source/browse/#svn%2Fplugins%2Finclude%2Ftrunk

Original comment by kinyelo@gmail.com on 28 Jan 2011 at 9:18

GoogleCodeExporter commented 9 years ago
How to use that plugin? What Velocity command for it?

Original comment by NosovK on 26 Apr 2011 at 12:50

GoogleCodeExporter commented 9 years ago
Syntax for plugin is:
$plugin.include.include("Http://site.com")

but there is a problem with enecoding. Russian text in UTF-8 shows like in 
wrong enecoding. I put UTF-8 in HTTP header usinng Vosao and turned of page 
postprocessing. But result is the same.

Original comment by NosovK on 26 Apr 2011 at 1:58