<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Include html pages in an html page in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256194#M209324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure from where you have got those tags but they will not work in an Alfresco server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to add your own page to Alfresco Share, please take a look at the following pages to get started:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Intro &amp;amp; understanding&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Share_Custom_Pages" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Share_Custom_Pages&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Faster development&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.alfresco.com/wp/ewinlof/2011/10/12/create-pages-in-alfresco-share-using-new-out-of-the-box-templates/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/ewinlof/2011/10/12/create-pages-in-alfresco-share-using-new-out-of-the-box-templates/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Making components&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts_Examples" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts_Examples&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheat sheets for pages &amp;amp; components&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://twitter.com/#!/erikwinlof/media/slideshow?url=pic.twitter.com%2FJyWfvpkW" rel="nofollow noopener noreferrer"&gt;https://twitter.com/#!/erikwinlof/media/slideshow?url=pic.twitter.com%2FJyWfvpkW&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://twitter.com/#!/erikwinlof/media/slideshow?url=pic.twitter.com%2FFZbz2CVW" rel="nofollow noopener noreferrer"&gt;https://twitter.com/#!/erikwinlof/media/slideshow?url=pic.twitter.com%2FFZbz2CVW&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2012 07:30:47 GMT</pubDate>
    <dc:creator>erikwinlof</dc:creator>
    <dc:date>2012-04-11T07:30:47Z</dc:date>
    <item>
      <title>Include html pages in an html page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256193#M209323</link>
      <description>Hello All,I have a single html page being displayed at 'http://host&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort/site/page.html'This page is being render by a simple template that&amp;nbsp; &amp;lt;@streamasset asset=asset/&amp;gt;.I am wondering if I could somehow include external pages inside the page.html?I have tried have a &amp;lt;@include &amp;gt; within th</description>
      <pubDate>Tue, 10 Apr 2012 19:52:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256193#M209323</guid>
      <dc:creator>techyguy</dc:creator>
      <dc:date>2012-04-10T19:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Include html pages in an html page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256194#M209324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure from where you have got those tags but they will not work in an Alfresco server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to add your own page to Alfresco Share, please take a look at the following pages to get started:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Intro &amp;amp; understanding&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Share_Custom_Pages" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Share_Custom_Pages&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Faster development&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.alfresco.com/wp/ewinlof/2011/10/12/create-pages-in-alfresco-share-using-new-out-of-the-box-templates/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/ewinlof/2011/10/12/create-pages-in-alfresco-share-using-new-out-of-the-box-templates/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Making components&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts_Examples" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts_Examples&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheat sheets for pages &amp;amp; components&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://twitter.com/#!/erikwinlof/media/slideshow?url=pic.twitter.com%2FJyWfvpkW" rel="nofollow noopener noreferrer"&gt;https://twitter.com/#!/erikwinlof/media/slideshow?url=pic.twitter.com%2FJyWfvpkW&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://twitter.com/#!/erikwinlof/media/slideshow?url=pic.twitter.com%2FFZbz2CVW" rel="nofollow noopener noreferrer"&gt;https://twitter.com/#!/erikwinlof/media/slideshow?url=pic.twitter.com%2FFZbz2CVW&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 07:30:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256194#M209324</guid>
      <dc:creator>erikwinlof</dc:creator>
      <dc:date>2012-04-11T07:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Include html pages in an html page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256195#M209325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Those tags work within the Share/QS directories.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Was hoping to avoid using templates everytime I wanted to use a common element.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Was hoping that a html page within the site/document library could instance some of the tags that template files use ( '&amp;lt;#include&amp;gt;')&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 17:03:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256195#M209325</guid>
      <dc:creator>techyguy</dc:creator>
      <dc:date>2012-04-11T17:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Include html pages in an html page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256196#M209326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The features in the Alfresco Web Quick Start application that you mention (the stream asset directive etc) is not included Alfresco Share out of the box and there is no plan in doing so. I'm sure you will be able to configure it in, but it is not something that we know has been done before. If you want to try that I suggest you start taking a look at wcmqs-webapp-context.xml and also compare the surf-config.xml file in both apps but if I think it might be hard to get assistance if you run into trouble.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you instead could write down exactly what you want to do I'm sure I will be able to give you an alternate solution in Share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:: Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 06:24:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256196#M209326</guid>
      <dc:creator>erikwinlof</dc:creator>
      <dc:date>2012-04-12T06:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Include html pages in an html page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256197#M209327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank You Erik-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Very nice offer also - extremely appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to be able to do is create 2 html pages inside the document library.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the Html pages will somehow include the contents of the other.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to be able to do this all through the document library and inline editor, with no reliance on editing templates for every include.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Somewhat like PHP require)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions would be great, thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 13:03:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256197#M209327</guid>
      <dc:creator>techyguy</dc:creator>
      <dc:date>2012-04-12T13:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Include html pages in an html page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256198#M209328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This might be more suited for the webscript forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a noob still to alfresco but I think this approach would work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using &amp;lt;@streamasset asset=asset/&amp;gt; I am assuming you are in the WQS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is the case - you already have a reference to your asset. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get the contents with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;asset.getContentAsInputStream().getStream();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, this is as far as I have gotten.&amp;nbsp; But with the stream - if you can buffer the stream and get a string of contents, you could technically output the string while replace any instances of &amp;lt;#include&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 18:51:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256198#M209328</guid>
      <dc:creator>drozes</dc:creator>
      <dc:date>2012-04-12T18:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Include html pages in an html page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256199#M209329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Once your have your stream and if you're in the JS serverside, you can turn it into a string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var byteArr = new Array();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for(i=0; i &amp;lt; contentSizeNum; i++){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;byteArr.push( String.fromCharCode(contents.read()) );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Turn array into a string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fileContentStr = byteArr.join('');&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 12:15:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-html-pages-in-an-html-page/m-p/256199#M209329</guid>
      <dc:creator>drozes</dc:creator>
      <dc:date>2012-04-13T12:15:42Z</dc:date>
    </item>
  </channel>
</rss>

