TYPO3 - next Generation
FORTY3-Extension
Dummy Kickstarter 
Easy-Admin 
Verwendung von Platzhaltern 
Verwendung von Tags
Kategorisierung von Datensätzen 
FORTY3 Schablonen 
Mobile Version von Website 
Forty3 Mehrsprachigkeit 
HTML-Quellcode Komprimierung 
FORTY3-Extensions für TYPO3 8

Tags



IF-TAG, IF_SUB-TAG

funktioniert mit:
  • session
  • request
  • elemente
  • category
  • page
  • keine &&, || Verknüpfungen möglich
  • Wichtig " " und keine ' ' Einführungszeichen nutzen!

<if "###session_global_category###"=="48">.. </if>
<if "###request_global_category###"=="48">..</if>
<if "###element_tx_capps_data_table_is_machine_installation###" == 1>...
<if "###page_tx_capps_data_table_is_machine_installation###" == 1>...
<if "###address_tx_capps_data_table_is_machine_installation###" == 1>...
<if "###address_data_table_is_machine_installation###" == 1>...
<if "###category_data_table_is_machine_installation###" == 1>...



<if_sub "###category_data_table_is_machine_installation###" == 1>.../if_sub>

Wenn innerhalb einer Liste, dann Schlüsselwörter element_, category_, page_ weglassen.

<if "###data_table_is_machine_installation###"=="1">...</if>




EMPTY, NOTEMPTY

<notempty element="element_tx_capps_data_picture"></notempty>
<notempty element="category_data_picture"></notempty>
<empty element="element_tx_capps_data_picture"></empty> 




MODIFY-TAG

Textlänge und HTML-Tags rausparsen:

<modify attribute="tx_capps_data_description" length="130" striptags="1"/> ###element_tx_capps_data_description###

Text: Suchen-Ersetzen

Category:
<modify str_replace="1" search=".." replace="###data_product_pole3###" text=###name###" />

Element:
<modify str_replace="1" search=".." replace="###element_tx_capps_data_product_pole3###" text=###element_header###" />


GENERATE FORMULA-TAG

<generate formula="[p_1*(p_2-1)+p_3+p_4]" parameter="###data_gridmass_metric###|###data_product_pole3###|###data_product_width_left###|###data_product_width_right###" />


EMPTY_SUB, NOTEMPTY_SUB

// element
<
notempty_sub element="element_tx_capps_data_picture">
</notempty_sub>

<
empty_sub element="element_tx_capps_data_picture"> 
</empty_sub>


// Kategory

<notempty_sub element="category_data_product_picture">

</notempty_sub>


// Page
<notempty_sub element="page_data_product_picture">

</notempty_sub>


LINK

###LINK###
###LINK:78###
###LINK:###page_uid######




LISTEN

address-List:

<list type="address"
limit="30"
template_id="48"
group_id="4"
specify_order="company"
ignore_country="1"
show_nearest_address="1"
show_nearest_address_limit="1"
use_only_googlemaps="1"
show_nearest_address_template="Hinweis: Der nächste Händler ist ###SEARCH_ADDRESS_NEAREST_DISTANCE### km entfernt." 
specify_data_categories="###session_global_target###,###session_global_region###" />


Beispiel von Info-Meldung:
 
Wir haben ###SEARCH_ADDRESS_AMOUNT### Händler im Umkreis von ###request_search_arround### km für Sie gefunden: ###SEARCH_ADDRESS_NEAREST_MESSAGE##
 

category-List:

<list type="category" parent_id="###session_global_category###" order="name"
direction="asc"
template_id="4" />

Attribute-List: mit externen Parametern (Info ist nicht in Listenelement vorhanden)


<list classkey="tx_capps_content_attribute_values" id="" order="id" parameter="art_number=|art_number_3=" t3_pid="3" template_id="221" where="attribute_id=24" />
 

Listen-Element:
###art_number###data_colour_code###


Allgemeine-List:

mit dem Parameter "classkey" gibt man die Tabelle wie auch die Klasse dieser Tabelle aus:

Attributes

<list classkey="tx_capps_content_attribute_values" catmatrix="###session_categories###,###request_category_id###"
attribute_list="media_product_picture" where="attribute_id = 4"
t3_pid="86" />


Attribute-Liste nur in Default-Sprcahe (ignore_language="1")

<list classkey="tx_capps_content_attribute_values" catmatrix="###session_categories###,###request_category_id###"
template_id="34"
attribute_list="media_picture" where="attribute_id = 4"
t3_pid="86"
ignore_language="1"
limit="1"
order="sorting"
direction="ASC"/>

Categorien
 
<list classkey="tx_capps_category" template_id="35" where="uid = ###session_global_category###" t3_pid="59" />

Elemente

<list classkey="tx_capps_content" specify_data_categories="###session_global_region###" template_id="###element_tx_capps_data_template###" t3_pid="###session_global_region### exclude_id="302,301,819" />

Elemente von der Auflistung ausschließen: exclude_id="…,…,…">


GENERATE

googlemaps

<generate googlemaps="googlemaps"
center_longitude="7.305089"
center_latitude="52.393634"
masstab="9"
version="3"
map_width="690"
map_height="350"
map_picture_width="20"
map_picture_height="30"
mapcontrol="off" />


<list type="address" group_id="3"
limit="1"
ignore_country="1"
use_only_googlemaps="1" />


Element-Template als Plug-In: cAddress auswählen und darauf achten, dass im Template keine Leerzeichen verwendet wurden.
Adresse selber als FE-User mit der dazugehörigen Gruppe anlegen.
Parameter sind identisch mit den von goliath, sodass diese leicht anzupassen sind.

filesize

<generate filesize="###element_tx_capps_data_download###" unit="mb">


picture

Bild ist in einem sourcelink in EasyAdmin (capps) von einem Objekt gepflegt: im Feld data_media_thumb, oder tx_capps_data_media_thumb

<
generate graphic="picture" width="123px" height="123px" crop="1" quality="100" file="###element_data_media_thumb###" return_url="1"  />


Bild ist in einem image-DB Field entweder beim Page (Tabelle pages) oder beim Content-Element(Tabelle tt_content) gepflegt. Z.b. In Seiteengenschaften : Ressourcen. Keine file-Attribute!

reference_picture_index="0" - das erste Bild nehmen, Position 0

<generate graphic="picture" width="123" reference_uid="###uid###" reference_table"tt_content" reference_picture_index="0"  return_url="1"  />
 

siehe  LINK

PDF 

Tags script und pdf_script sind obligatorisch, die restlichen Parameter sind optional und können beliebeig  genannt werden mit dem Schlüsselwort paramNr="paraname|paramvalue"

<generate pdf="pdf" 
pdf_script="fileadmin/media/generate_pdf.php"  param1="category|###request_category###" param2="region|###request_region###" />

PHP script einbinden

Tags script und pdf_script sind obligatorisch, die restlichen Parameter sind optional und können beliebeig  genannt werden mit dem Schlüsselwort paramNr="paraname|paramvalue"

<generate script="php" php
_script="fileadmin/media/myScript.php"  />

// myScript.php, in der variable $strScriptContent kommt Script Output


$strScriptContent = 'myOutput';

?>
 



NAVBAR

<navbar limit="3" vonbis="true" />

WIchtig: Cache für die Seite deaktivieren


NAVIGATION

mit Seiten und Kategorien

<navigation type="page"
parent_id="2" template_id="27"
leveldepth="2"
order="header"
direction="asc" /> navigation type="category" parent_id="###session_global_category###"
template_id="27"
specify_category_id="###session_global_region###"
leveldepth="2"
order="name"
direction="asc" />


LANGUAGE

<language id="1"> </language>

falls nicht funktioniert, weil Inhalt innerhalb von language-Tag auch id="xy"  hat, dann mit lid arbeiten.

<language lid="1"> </language>


DATE TAG

<date attribute="d.m.Y" value="###element_crdate###" />


CHECK TAG: mobile

<!-- MICH SIEHT MAN IN ALLEN BROWSERN -->
<div>###page_data_subtitle###</div>

<check notmobile="on">
Mich sieht man NICHT auf mobilen Geräten aber in Browsern auf desktop Rechnern.
</check>

<check mobile="on">
Mich sieht man auf mobilen Geräten und NICHT in Browsern auf desktop Rechnern.
</check>

<check ignore_device="iPad, Galaxy S" mobile="on">
Mich sieht man auf mobilen Geräten und NICHT in Browsern auf desktop Rechnern, ausgenommen der gelisteten Geräte unter "ignore_device".
</check>


© 2003-2025 by cybob communication GmbH • All rights reserved • 4T3 ist ein Service der cybob communication GmbH | NutzungsbedingungenDatenschutzImpressum