Differences

This shows you the differences between two versions of the page.

english:phpwcms_replacer_rts:frontend_init:cp_trigger:teaser-without-title-if-no-content [2010/02/22 21:06]
Claus
english:phpwcms_replacer_rts:frontend_init:cp_trigger:teaser-without-title-if-no-content [2018/06/03 18:09] (current)
Line 6: Line 6:
If there is not Content for the teaser available, you can use this snippet to kill entries in the header and footer of the template from CP before delivery. Like that the output of the CP-title or the container avoided if no content is present. If there is not Content for the teaser available, you can use this snippet to kill entries in the header and footer of the template from CP before delivery. Like that the output of the CP-title or the container avoided if no content is present.
-In teaser template we must be filled in additional tags.+In teaser template we have to insert additional tags.
===== Description: ===== ===== Description: =====
 +
 +- To identify this CP, it is important to place the entry ##%%<!--TEASERX_01//-->%%## into the head area of the template, analogous to the entry in the script.
- If there is no content available, all messages between ##%%<!--TEASERX_LEER_01//-->%%## and ##%%<!--TEASERX_LEER_02//-->%%## are removed. - If there is no content available, all messages between ##%%<!--TEASERX_LEER_01//-->%%## and ##%%<!--TEASERX_LEER_02//-->%%## are removed.
- +- Additionally you have to insert **%%<!--TEASER_ENTRY_START//-->%%** ##%%<!--TEASERX_CONTENT//-->%%## **%%<!--TEASER_ENTRY_END//-->%%**.
-- To identify this CP, it is important to place the entry ##%%<!--TEASERX_01//-->%%## in the head area of the template, analogous to the entry in the script. +
- +
-- Additionally you must insert **%%<!--TEASER_ENTRY_START//-->%%** ##%%<!--TEASERX_CONTENT//-->%%## **%%<!--TEASER_ENTRY_END//-->%%**.+
##**%%<!--TEASERX_CONTENT//-->%%**## serves as a simple mark to determine whether content is present or not. ##**%%<!--TEASERX_CONTENT//-->%%**## serves as a simple mark to determine whether content is present or not.
Line 23: Line 22:
<code> <code>
-<!--TEASER_HEAD_START//-->    // ----- Eingebauter Tag+<!--TEASER_HEAD_START//-->    // ----- Built-in tag
-<!--TEASERX_01//-->           // CP Identifizierer    (Neuer Tag)+<!--TEASERX_01//-->           // CP Identifier        (New tag)
-<!--TEASERX_LEER_01//-->      // Loeschbereich Anfang (Neuer Tag)+<!--TEASERX_LEER_01//-->      // Delete range start   (New tag)
<div> <div>
Line 33: Line 32:
<h5>{SUBTITLE}</h5> <h5>{SUBTITLE}</h5>
-<!--TEASERX_LEER_02//-->      // Loeschbereich Ende (Neuer Tag)+<!--TEASERX_LEER_02//-->      // Delete range ende    (New tag)
-<!--TEASER_HEAD_END//-->      // ----- Eingebauter Tag+<!--TEASER_HEAD_END//-->      // ----- Built-in tag
-<!--TEASER_ENTRY_START//-->   // ----- Eingebauter Tag+<!--TEASER_ENTRY_START//-->   // ----- Built-in tag
-<!--TEASERX_CONTENT//-->      // Wenn kein Content, dann nicht vorhanden!!! (Neuer Tag)+<!--TEASERX_CONTENT//-->      // If no content, it does not exist!!! (New tag)
-<!--TEASER_ENTRY_END//-->     // ----- Eingebauter Tag+<!--TEASER_ENTRY_END//-->     // ----- Built-in tag
-<!--TEASER_FOOTER_START//-->  // ----- Eingebauter Tag+<!--TEASER_FOOTER_START//-->  // ----- Built-in tag
-<!--TEASERX_LEER_01//-->      // Loeschbereich Anfang  (Neuer Tag)+<!--TEASERX_LEER_01//-->      // Delete range start   (New tag)
</div> </div>
-<!--TEASERX_LEER_02//-->      // Loeschbereich Ende   (Neuer Tag)+<!--TEASERX_LEER_02//-->      // Delete range ende   (New tag)
-<!--TEASER_FOOTER_END//-->    // ----- Eingebauter Tag+<!--TEASER_FOOTER_END//-->    // ----- Built-in tag
</code> </code>
\\ \\
english/phpwcms_replacer_rts/frontend_init/cp_trigger/teaser-without-title-if-no-content.1266869211.txt.gz · Last modified: 2018/06/03 18:08 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0