<?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 How to truncate streamasset content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-truncate-streamasset-content/m-p/256179#M209309</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 working on some templates for WCM and I can get the article's content (html) fine by using the streamasset directive but can I also use the truncate directive in combination with the content returned by the stream? Or is there another way to get the article's content as a variable so i can truncate that instead?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment the only way I can find is to use javascript to truncate the content which is a bit ugly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Skip&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jun 2012 00:20:13 GMT</pubDate>
    <dc:creator>schipmolder</dc:creator>
    <dc:date>2012-06-17T00:20:13Z</dc:date>
    <item>
      <title>How to truncate streamasset content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-truncate-streamasset-content/m-p/256179#M209309</link>
      <description>Hi,I'm working on some templates for WCM and I can get the article's content (html) fine by using the streamasset directive but can I also use the truncate directive in combination with the content returned by the stream? Or is there another way to get the article's content as a variable so i can tr</description>
      <pubDate>Sun, 17 Jun 2012 00:20:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-truncate-streamasset-content/m-p/256179#M209309</guid>
      <dc:creator>schipmolder</dc:creator>
      <dc:date>2012-06-17T00:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate streamasset content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-truncate-streamasset-content/m-p/256180#M209310</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 that this is what you were looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had to do something similar: adding a "page break" in articles to cut the content at a position specified by editors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used a simple solution: a custom "AssetDirective" implementation. I think that it's also the best solution for performances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This class is injected in wcmqs/WEB-INF/classes/wcmqs-webapp-context.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="assetDirective" class="org.alfresco.wcm.client.directive.AssetDirective"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 12:30:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-truncate-streamasset-content/m-p/256180#M209310</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2012-07-19T12:30:21Z</dc:date>
    </item>
  </channel>
</rss>

