<?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 Check is region exists in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/check-is-region-exists/m-p/252874#M206004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a template-instance that is used by 3 different page-defination.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hoping that within my template instance - I can do a manual check if a region is set and has content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sample.ftl&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;//Here - check if either 'leftContentPiece1' OR 'leftContentPiece2' has content, if so&lt;BR /&gt;//output &amp;lt;div class="leftContent"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;@region id="leftContentPiece1" scope="page"/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;@region id="leftContentPiece2" scope="page"/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;//Close Div&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;@region id="rightContentPiece1" scope="page"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;@region id="rightContentPiece2" scope="page"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;@region id="rightContentPiece3" scope="page"/&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2012 17:25:42 GMT</pubDate>
    <dc:creator>drozes</dc:creator>
    <dc:date>2012-06-06T17:25:42Z</dc:date>
    <item>
      <title>Check is region exists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/check-is-region-exists/m-p/252874#M206004</link>
      <description>Hi guys;I have a template-instance that is used by 3 different page-defination.Hoping that within my template instance - I can do a manual check if a region is set and has content.sample.ftl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Here - check if either 'leftContentPiece1' OR 'leftContentPiece2' has content, if so//output &amp;lt;d</description>
      <pubDate>Wed, 06 Jun 2012 17:25:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/check-is-region-exists/m-p/252874#M206004</guid>
      <dc:creator>drozes</dc:creator>
      <dc:date>2012-06-06T17:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Check is region exists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/check-is-region-exists/m-p/252875#M206005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Assuming that you're working with a 4.0.x release then you should be able to do this with a Sub-Component evaluation. Each region will be bound to a component (in a 1-1 mapping) but each Component will be made up of Sub-Components (by default a Component that does not specify Sub-Components will have a Sub-Component generated for it with the id of "default").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If is possible to declare evaluations in the Sub-Component configuration that are run before the Sub-Component is rendered and one option would be for your evaluation to pass if either of the other regions are bound. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tricky part will be in determining this… but it is possible. If you create a Evaluator that runs as part of your Evaluation then it will have access to the RequestContext and this in turn will contain the ExtensibilityModel which holds the entire output of the page and you will be able to search through this model to find the region and determine whether or not it has content. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Further information on Sub-Component evaluations can be found here: &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/ddraper/2011/07/29/sub-component-evaluations/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/ddraper/2011/07/29/sub-component-evaluations/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this should be enough to get you started.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 08:27:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/check-is-region-exists/m-p/252875#M206005</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2012-06-07T08:27:14Z</dc:date>
    </item>
  </channel>
</rss>

