[TYPO3] Override automaketemplate values from an extension template???
Timothy Patterson
tjpatter at svsu.edu
Fri Apr 18 16:30:26 CEST 2008
Here is my scenario... I have an HTML file similar to the following:
<div id="main_content">
<!--###content_heading### begin -->
<!--###content_heading### end -->
<!--###content_main### begin -->
<!--###content_main### end -->
</div>
My main TS template utilizes automaketemplate and contains the following
section to always place a specific content element in the
content_heading section. Here is what I am using (for sake of keeping
this short I have only included the important parts):
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body> tags
workOnSubpart = DOCUMENT_BODY
subparts.content_heading >
subparts.content_heading = RECORDS
subparts.content_heading.tables = tt_content
subparts.content_heading.source = 13113
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
# Copying the content from the TEMPLATE object for the <body> section.
page.10 < temp.mainTemplate
This works great! The problem that I am having is now I need to be able
to override the subparts.content_heading.source = 13113 and substitute
different content element uids on many different pages.
I thought that this might be possible to accomplish through the use of
an extension template on each page that needs the new value, however I
cannot find out how to access the subparts.content_heading.source field
from another page.
I store unique images, text, etc. in the content elements that I am
inserting on these various pages. (I cannot simply use the header field
for a content element)
Can anyone help me with this?
Thanks in advance for your time!
~Tim
More information about the TYPO3-english
mailing list