<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>TYPO3 backend: hide content element preview title header header_layout</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/487 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="487"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;style type="text/css"&gt;/**
 * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2014 Benny Baumann
 * (http://qbnz.com/highlighter/ and http://geshi.org/)
 */
.php .de1, .php .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.php  {font-family:monospace;}
.php .imp {font-weight: bold; color: red;}
.php li, .php .li1 {color: #DDD;}
.php .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.php .kw1 {color: #b1b100;}
.php .kw2 {color: #000000; font-weight: bold;}
.php .kw3 {color: #990000;}
.php .kw4 {color: #009900; font-weight: bold;}
.php .co1 {color: #666666; font-style: italic;}
.php .co2 {color: #666666; font-style: italic;}
.php .co3 {color: #0000cc; font-style: italic;}
.php .co4 {color: #009933; font-style: italic;}
.php .coMULTI {color: #666666; font-style: italic;}
.php .es0 {color: #000099; font-weight: bold;}
.php .es1 {color: #000099; font-weight: bold;}
.php .es2 {color: #660099; font-weight: bold;}
.php .es3 {color: #660099; font-weight: bold;}
.php .es4 {color: #006699; font-weight: bold;}
.php .es5 {color: #006699; font-weight: bold; font-style: italic;}
.php .es6 {color: #009933; font-weight: bold;}
.php .es_h {color: #000099; font-weight: bold;}
.php .br0 {color: #009900;}
.php .sy0 {color: #339933;}
.php .sy1 {color: #000000; font-weight: bold;}
.php .st0 {color: #0000ff;}
.php .st_h {color: #0000ff;}
.php .nu0 {color: #cc66cc;}
.php .nu8 {color: #208080;}
.php .nu12 {color: #208080;}
.php .nu19 {color:#800080;}
.php .me1 {color: #004000;}
.php .me2 {color: #004000;}
.php .re0 {color: #000088;}
.php span.xtra { display:block; }
&lt;/style&gt;&lt;div class="code"&gt;&lt;table class="php"&gt;&lt;tbody&gt;&lt;tr class="li1"&gt;&lt;td class="ln"&gt;&lt;pre class="de1"&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
&lt;/pre&gt;&lt;/td&gt;&lt;td class="de1"&gt;&lt;pre class="de1"&gt;&lt;span class="kw2"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="kw2"&gt;namespace&lt;/span&gt; Example\Together\Typo3&lt;span class="sy0"&gt;;&lt;/span&gt;
&amp;#160;
&lt;span class="kw2"&gt;use&lt;/span&gt; TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface&lt;span class="sy0"&gt;;&lt;/span&gt;
&amp;#160;
&lt;span class="co4"&gt;/**&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160;* Modify the content preview rendering in the backend.&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160;* Remove the content element header and header_layout rendering.&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160;*&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160;* @author Christian Weiske &amp;lt;weiske@mogic.com&amp;gt;&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160;*/&lt;/span&gt;
&lt;span class="kw2"&gt;class&lt;/span&gt; HideContentHeader &lt;span class="kw2"&gt;implements&lt;/span&gt; PageLayoutViewDrawItemHookInterface
&lt;span class="br0"&gt;&amp;#123;&lt;/span&gt;
&amp;#160; &amp;#160; &lt;span class="co4"&gt;/**&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160; &amp;#160; &amp;#160;* Remove &amp;quot;header&amp;quot; and &amp;quot;header_layout&amp;quot; in the backend content preview.&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160; &amp;#160; &amp;#160;*&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160; &amp;#160; &amp;#160;* @param object $parentObject &amp;#160;Calling parent object&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160; &amp;#160; &amp;#160;* @param bool &amp;#160; $drawItem &amp;#160; &amp;#160; &amp;#160;Whether to draw the item using the&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160; &amp;#160; &amp;#160;* &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;default functionalities&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160; &amp;#160; &amp;#160;* @param string $headerContent Header content&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160; &amp;#160; &amp;#160;* @param string $itemContent &amp;#160; Item content&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160; &amp;#160; &amp;#160;* @param array &amp;#160;$row &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Record row of tt_content&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160; &amp;#160; &amp;#160;*&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160; &amp;#160; &amp;#160;* @return void&lt;/span&gt;
&lt;span class="co4"&gt;&amp;#160; &amp;#160; &amp;#160;*/&lt;/span&gt;
&amp;#160; &amp;#160; &lt;span class="kw2"&gt;public&lt;/span&gt; &lt;span class="kw2"&gt;function&lt;/span&gt; preProcess&lt;span class="br0"&gt;&amp;#40;&lt;/span&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; \TYPO3\CMS\Backend\View\PageLayoutView &lt;span class="sy0"&gt;&amp;amp;&lt;/span&gt;&lt;span class="re0"&gt;$parentObject&lt;/span&gt;&lt;span class="sy0"&gt;,&lt;/span&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span class="sy0"&gt;&amp;amp;&lt;/span&gt;&lt;span class="re0"&gt;$drawItem&lt;/span&gt;&lt;span class="sy0"&gt;,&lt;/span&gt; &lt;span class="sy0"&gt;&amp;amp;&lt;/span&gt;&lt;span class="re0"&gt;$headerContent&lt;/span&gt;&lt;span class="sy0"&gt;,&lt;/span&gt; &lt;span class="sy0"&gt;&amp;amp;&lt;/span&gt;&lt;span class="re0"&gt;$itemContent&lt;/span&gt;&lt;span class="sy0"&gt;,&lt;/span&gt; &lt;a href="http://www.php.net/array"&gt;&lt;span class="kw3"&gt;array&lt;/span&gt;&lt;/a&gt; &lt;span class="sy0"&gt;&amp;amp;&lt;/span&gt;&lt;span class="re0"&gt;$row&lt;/span&gt;
&amp;#160; &amp;#160; &lt;span class="br0"&gt;&amp;#41;&lt;/span&gt; &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span class="kw1"&gt;if&lt;/span&gt; &lt;span class="br0"&gt;&amp;#40;&lt;/span&gt;&lt;span class="re0"&gt;$row&lt;/span&gt;&lt;span class="br0"&gt;&amp;#91;&lt;/span&gt;&lt;span class="st_h"&gt;'CType'&lt;/span&gt;&lt;span class="br0"&gt;&amp;#93;&lt;/span&gt; &lt;span class="sy0"&gt;==&lt;/span&gt; &lt;span class="st_h"&gt;'fluidcontent_content'&lt;/span&gt;&lt;span class="br0"&gt;&amp;#41;&lt;/span&gt; &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span class="re0"&gt;$headerContent&lt;/span&gt; &lt;span class="sy0"&gt;=&lt;/span&gt; &lt;span class="st_h"&gt;''&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;
&amp;#160; &amp;#160; &lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;
&lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;
&lt;span class="sy1"&gt;?&amp;gt;&lt;/span&gt;
&amp;#160;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/487/rev-raw/3258b758bab4d8eac9c28bb247f4cf38ef28d805/Classes/Typo3/HideContentHeader.php" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/487#Classes/Typo3/HideContentHeader.php"&gt;Classes/Typo3/HideContentHeader.php&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;&lt;a class="reference external" href="https://stmllr.net/blog/customizing-preview-widgets-in-the-typo3-page-module/"&gt;https://stmllr.net/blog/customizing-preview-widgets-in-the-typo3-page-module/&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/487/rev-raw/3258b758bab4d8eac9c28bb247f4cf38ef28d805/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/487#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;style type="text/css"&gt;/**
 * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2014 Benny Baumann
 * (http://qbnz.com/highlighter/ and http://geshi.org/)
 */
.php .de1, .php .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.php  {font-family:monospace;}
.php .imp {font-weight: bold; color: red;}
.php li, .php .li1 {color: #DDD;}
.php .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.php .kw1 {color: #b1b100;}
.php .kw2 {color: #000000; font-weight: bold;}
.php .kw3 {color: #990000;}
.php .kw4 {color: #009900; font-weight: bold;}
.php .co1 {color: #666666; font-style: italic;}
.php .co2 {color: #666666; font-style: italic;}
.php .co3 {color: #0000cc; font-style: italic;}
.php .co4 {color: #009933; font-style: italic;}
.php .coMULTI {color: #666666; font-style: italic;}
.php .es0 {color: #000099; font-weight: bold;}
.php .es1 {color: #000099; font-weight: bold;}
.php .es2 {color: #660099; font-weight: bold;}
.php .es3 {color: #660099; font-weight: bold;}
.php .es4 {color: #006699; font-weight: bold;}
.php .es5 {color: #006699; font-weight: bold; font-style: italic;}
.php .es6 {color: #009933; font-weight: bold;}
.php .es_h {color: #000099; font-weight: bold;}
.php .br0 {color: #009900;}
.php .sy0 {color: #339933;}
.php .sy1 {color: #000000; font-weight: bold;}
.php .st0 {color: #0000ff;}
.php .st_h {color: #0000ff;}
.php .nu0 {color: #cc66cc;}
.php .nu8 {color: #208080;}
.php .nu12 {color: #208080;}
.php .nu19 {color:#800080;}
.php .me1 {color: #004000;}
.php .me2 {color: #004000;}
.php .re0 {color: #000088;}
.php span.xtra { display:block; }
&lt;/style&gt;&lt;div class="code"&gt;&lt;table class="php"&gt;&lt;tbody&gt;&lt;tr class="li1"&gt;&lt;td class="ln"&gt;&lt;pre class="de1"&gt;1
2
3
4
5
&lt;/pre&gt;&lt;/td&gt;&lt;td class="de1"&gt;&lt;pre class="de1"&gt;&lt;span class="kw2"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="co2"&gt;#hide content header in backend preview&lt;/span&gt;
&lt;span class="re0"&gt;$GLOBALS&lt;/span&gt;&lt;span class="br0"&gt;&amp;#91;&lt;/span&gt;&lt;span class="st_h"&gt;'TYPO3_CONF_VARS'&lt;/span&gt;&lt;span class="br0"&gt;&amp;#93;&lt;/span&gt;&lt;span class="br0"&gt;&amp;#91;&lt;/span&gt;&lt;span class="st_h"&gt;'SC_OPTIONS'&lt;/span&gt;&lt;span class="br0"&gt;&amp;#93;&lt;/span&gt;&lt;span class="br0"&gt;&amp;#91;&lt;/span&gt;&lt;span class="st_h"&gt;'cms/layout/class.tx_cms_layout.php'&lt;/span&gt;&lt;span class="br0"&gt;&amp;#93;&lt;/span&gt;&lt;span class="br0"&gt;&amp;#91;&lt;/span&gt;&lt;span class="st_h"&gt;'tt_content_drawItem'&lt;/span&gt;&lt;span class="br0"&gt;&amp;#93;&lt;/span&gt;&lt;span class="br0"&gt;&amp;#91;&lt;/span&gt;&lt;span class="st_h"&gt;'together'&lt;/span&gt;&lt;span class="br0"&gt;&amp;#93;&lt;/span&gt;
&amp;#160; &amp;#160; &lt;span class="sy0"&gt;=&lt;/span&gt; &lt;span class="st_h"&gt;'Example\\Together\\Typo3\\HideContentHeader'&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;
&amp;#160;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/487/rev-raw/3258b758bab4d8eac9c28bb247f4cf38ef28d805/ext_localconf.php" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/487#ext_localconf.php"&gt;ext_localconf.php&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
