[TYPO3] Retrieving RECORD bodycontent via TS?
Jason A. Lefkowitz
jason at jasonlefkowitz.net
Thu Mar 22 20:57:30 CET 2007
Tyler Kraft wrote:
> I didn't say you were an idiot, nor did I think it.
Tone is important. A response saying "You're completely wrong! Go read
the manual" is insulting. But I accept that you didn't intend it that
way. Plain text can sometimes come off differently than we intend.
> I simply pointed out
> some facts! And then I gave you a hint on how to get what you wanted.
You told me that using the RECORDS cObject is inappropriate for this
case, which isn't a "fact" if Typoscript By Example is to be believed.
If I'm reading that page in TSByEx wrong, feel free to enlighten me as
to how.
> I'm not going to do it for you, and it wasn't meant as a offensive
> response.
I didn't expect you to "do it for me"; I was simply looking for some
help understanding my mistake, beyond "go read the manual" (since I'd
been doing that, to no avail). But again, I accept that it wasn't meant
to cause offense.
> If you spent all day pouring over TSref then why would you just randomly
> create an additional property for 'source'?
It wasn't random. According to TSRef, the "source" property of RECORDS
has stdWrap. "field" is a stdWrap property. If there's a syntax error
in putting stdWrap properties off "source", you could have just said
that and told me how to access stdWrap from a RECORDS cObject (if that's
even possible), and I would have been happy. But everywhere else I've
seen "stdWrap" listed in a property's "Data type" column in TSRef, it
means you can hang stdWrap methods off it. Hence my confusion.
> And NO the example doesn't retrieve part of a record, it retrieve ALL of
> that record, but then goes on to create its own rendering definition
> through the 'conf' property - which your not doing, but would be one
> method of getting what you want. But again that's mentioned in TSref...
>
Yes, it's "mentioned" in TSRef, in the sense that TSRef says "it is
possible to do this" and then gives no helpful examples or instructions
on HOW to do it. Again, if the key is adding a rendering definition,
just say that and tell me how.
> So perhaps instead of assuming that I think your an idiot, start by
> looking at the response I gave and going to look at what I offered as
> explanation, example or suggestion. It might help you actually.
Your response, as I noted above, was incorrect in that if you believe
TSByEx the RECORDS object is in fact an appropriate way to do what I'm
trying to do. I'm open to using CONTENT (and in fact tried to do so),
or any other cObject that gets the job done for that matter, but don't
tell me to meditate on incorrect answers and then say it's my fault when
things don't work. This "blame the [l]user" attitude is the worst part
about being part of the global TYPO3 community.
-- Jason Lefkowitz
More information about the TYPO3-english
mailing list