ObjectViewHelper¶
ViewHelper to render extended objects
Type: Basic
General properties¶
Name: | Type: | Description: | Default value: |
---|---|---|---|
* as | string | output variable | |
* className | string | custom class which handles the new objects | |
extendedTable | string | table which is extended | tx_news_domain_model_news |
* newsItem | Tx_News_Domain_Model_News | current newsitem |
Examples¶
Basic example¶
Code:
<n:object newsItem="{newsItem}"
as="out"
className="Tx_Myext_Domain_Model_CustomModel" >
{out.fo}
</n:link>
Output:
Property "fo" from model Tx_Myext_Domain_Model_CustomModel
which extends the table tx_news_domain_model_news
!!Be aware that this needs a mapping in TS!!
config.tx_extbase.persistence.classes {
Tx_Myext_Domain_Model_CustomModel {
mapping {
tableName = tx_news_domain_model_news
}
}
}