[Typo3-dev] Catching 'header' text from templavoila FCE
Elijah Alcantara
elijah.alcantara at gmail.com
Fri Dec 9 07:37:41 CET 2005
Ellow there list,
How can this be done? I've read a lot of messages re: this from the
mailing list and none I've found is solved ...
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110138155/?tx_maillisttofaq_pi1%5Bsword%5D=%20how%20to%20use%20Header%20in%20output%3F&tx_maillisttofaq_pi1%5Bpointer%5D=5&tx_maillisttofaq_pi1%5Banswered_only%5D=0&tx_maillisttofaq_pi1%5Bmode%5D=1
Using this is ideal, but doesn't work:
HEADER = TEXT
HEADER.field = header
OR
HEADER = TEXT
HEADER.value = {field : header}
HEADER.insertData = 1
OR
HEADER = TEXT
HEADER.value = tt_content.header
HEADER.insertData = 1
now I know why: (Using HEADER.data = debug : data)
uid 254
pid 10
tstamp 1133751918
hidden 0
sorting 1280
CType templavoila_pi1
header
header_position
bodytext
image
I could fetch uid's and pid's with a simple:
UID = TEXT
UID.field = uid
but not headers & body texts cause they are empty .. why is that? I
checked the database and there's a value for headers there.
I'm running out of things to try here:
These could fetch the headers but I had to give away hardcoded uid's
"255" just to get the right header, I wanted it dynamic:
HEADER = TEXT
HEADER.data = DB : tt_content : 255 : header
This one gets the entire FCE content, headers and all. Uid is hardcoded too ...
HEADER = RECORDS
HEADER {
tables = tt_content
source = 255
}
Any ideas please?
Elijah A.
More information about the TYPO3-dev
mailing list