<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lapiz Corto &#187; getbuffer</title>
	<atom:link href="https://www.lapizcorto.com/tag/getbuffer/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lapizcorto.com</link>
	<description>Para esas soluciones que nunca recuerdas</description>
	<lastBuildDate>Mon, 14 Dec 2015 08:34:34 +0000</lastBuildDate>
	<language>es-ES</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Joomla: Check if component content is empty</title>
		<link>https://www.lapizcorto.com/joomla-check-if-component-content-is-empty/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=joomla-check-if-component-content-is-empty</link>
		<comments>https://www.lapizcorto.com/joomla-check-if-component-content-is-empty/#comments</comments>
		<pubDate>Thu, 10 Jan 2013 12:52:10 +0000</pubDate>
		<dc:creator><![CDATA[Jiden]]></dc:creator>
				<category><![CDATA[Joomla!]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[empty]]></category>
		<category><![CDATA[getbuffer]]></category>

		<guid isPermaLink="false">http://www.lapizcorto.com/?p=748</guid>
		<description><![CDATA[We use and love Blank Component to show pages without component but even with no title Blank Component still shows html code. This article describes the method used to fully remove component output. Blank component at least will output something like: That&#8217;s not an empty page. To achieve this first we did a com_blankpage template [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>We use and love <a title="Joomla Blank Component" href="http://extensions.joomla.org/extensions/style-a-design/personal-layout/17363">Blank Component</a> to show pages without component but even with no title Blank Component still shows html code. This article describes the method used to fully remove component output.<br />
<span id="more-748"></span><br />
Blank component at least will output something like:</p>
<pre class="brush: php; title: ; notranslate">
&lt;div class=&quot;blank&quot;&gt;
&lt;/div&gt;
</pre>
<p>That&#8217;s not an empty page. To achieve this first we did a com_blankpage template override copying the file:</p>
<p><strong>components/com_blankcomponent/views/default/tmpl/default.php</strong></p>
<p>to:</p>
<p><strong>templates/YOURTEMPLATE/html/com_blankcomponent/default/default.php</strong></p>
<p>and comment/remove any output inside the template like:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

// no direct access
defined('_JEXEC') or die;
?&gt;
</pre>
<p>Now in your template index.php add this code:</p>
<pre class="brush: php; title: ; notranslate">
            $document = JFactory::getDocument();
            $compOutput = $document-&gt;getBuffer('component');

            if (!empty($compOutput)) {
                $output = '&lt;jdoc:include type=&quot;component&quot; /&gt;';
            }
</pre>
<p>That will fully disable component output.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.lapizcorto.com/joomla-check-if-component-content-is-empty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
