|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hello,
is it possible to use the field values of (single) tt_news elements wich i have placed inside a FCEs' Container for Elements in my FCE? mmm.. difficult to explain.. What it is i would to do is map the header,content & possible other fields from the single tt_news article inside it's parents FCE fields. Can this be done? Michiel Zoer The Netherlands _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#2
|
|||
|
|||
|
michiel zoer wrote:
> is it possible to use the field values of (single) tt_news elements wich i > have placed inside a FCEs' Container for Elements in my FCE? > mmm.. difficult to explain.. > > What it is i would to do is map the header,content & possible other fields > from the single tt_news article inside it's parents FCE fields. Do you mean you want to *use* those values in the FCE? I.e. select tt_news record and use values? If yes, not problem. You need to set type of those fields to [NONE] while mapping and add TS directly to DS to select tt_news record with fields and use them. Not sure if this is clear explanation though... ![]() -- Dmitry Dulepov Web: http://typo3bloke.net/ Skype: callto:liels_bugs "It is our choices, that show what we truly are, far more than our abilities." (A.P.W.B.D.) _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#3
|
|||
|
|||
|
michiel zoer wrote:
> hi, > > explanation is clear; problem is i don't now how to do it. > I get as far as rendering the tt_news record ID, but not the field values > stored inside the record. Quite easy. You need annd something like this to <TypoScript> of the DS field: 10 = CONTENT 10 { select { where = 1=1 andWhere.dataWrap = uid={field_myDsFieldWithNewsUid} } table = tt_news renderObj = TEXT renderObj.field = bodytext } I did not check this myself but even if it does not work, it should be easy to fix ![]() Notice that neither "uidInList", nor "where" can be used in "select" because they are not stdWrap. -- Dmitry Dulepov Web: http://typo3bloke.net/ Skype: callto:liels_bugs "It is our choices, that show what we truly are, far more than our abilities." (A.P.W.B.D.) _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#4
|
|||
|
|||
|
Thanks!
tried your code; no direct succes (tried it with hardcoded news Uid) I'll try to figure this out. Michiel Zoer "Dmitry Dulepov" <9f4eetb02 (AT) sneakemail (DOT) com> wrote in message news:mailman.1.1177592361.10988.typo3-project-templavoila (AT) lists (DOT) netfielders.de... > michiel zoer wrote: >> hi, >> >> explanation is clear; problem is i don't now how to do it. >> I get as far as rendering the tt_news record ID, but not the field values >> stored inside the record. > > Quite easy. You need annd something like this to <TypoScript> of the DS > field: > > 10 = CONTENT > 10 { > select { > where = 1=1 > andWhere.dataWrap = uid={field_myDsFieldWithNewsUid} > } > table = tt_news > renderObj = TEXT > renderObj.field = bodytext > } > > I did not check this myself but even if it does not work, it should be > easy to fix ![]() > > Notice that neither "uidInList", nor "where" can be used in "select" > because they are not stdWrap. > > -- > Dmitry Dulepov > > Web: http://typo3bloke.net/ > Skype: callto:liels_bugs > > "It is our choices, that show what we truly are, > far more than our abilities." (A.P.W.B.D.) _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#5
|
|||
|
|||
|
Thanks to Dmitry I am now able to load any news item (record) inside a
sIfr-styled FCE, great! I needed some way to style tt_news; but not with the 'standard' templating options because all / most of my news articles need different styling. I mapped most of the tt_news fields inside my own FCE and added a container for content elements in wich I 'load' the tt_news record. The fields from the tt_news record are now used inside my own FCE. A great advantage of this is a superb frontpage with nice news records AND the possibility to use the same news in archives etc. Thank Dmitry (again) for helping me out! my code: <![CDATA[ 10 = RECORDS 10.source.field = field_container #the tt_news record holder-container, returns tt_news uid 10.tables = tt_news 10.conf.tt_news= TEXT 10.conf.tt_news{ field = title wrap = <B> | </B> ]]> "michiel zoer" <michielzoer (AT) vlijmscherp (DOT) biz> wrote in message news:mailman.1.1177528961.919.typo3-project-templavoila (AT) lists (DOT) netfielders.de... > Hello, > > is it possible to use the field values of (single) tt_news elements wich i > have placed inside a FCEs' Container for Elements in my FCE? > mmm.. difficult to explain.. > > What it is i would to do is map the header,content & possible other fields > from the single tt_news article inside it's parents FCE fields. > > Can this be done? > > Michiel Zoer > The Netherlands > > > > _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#6
|
|||
|
|||
|
Hi!
michiel zoer wrote: > Thanks to Dmitry I am now able to load any news item (record) inside a > sIfr-styled FCE, great! One thing regarding your code: > wrap = <B> | </B> Generally you need not to do this. One of ideas behind TemplaVoila is that you define all markup and effects inside the template and css. In this case you can build really independent data structures and make them usable for any visual presentation. Imagine that after a month you want your news to look different (including title). If you do not have tags in "wrap", you could just change css. Much easier than edit DS! And no need to clear FE cache. So, if you want, you can do one step further and move markup to your template ![]() -- Dmitry Dulepov Web: http://typo3bloke.net/ Skype: callto:liels_bugs "It is our choices, that show what we truly are, far more than our abilities." (A.P.W.B.D.) _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#7
|
|||
|
|||
|
Hi Dmitry,
You're right. It would be better to remove the styling from the DS. In this particular case however the styling is of no matter since all styling is done based on dynamicly generated CSS en sIfr elements. The <b></b> tags aren't used in the final rendering... But... as you suggested I removed the styling 8-) Michiel Zoer "Dmitry Dulepov" <9f4eetb02 (AT) sneakemail (DOT) com> wrote in message news:mailman.1.1177660556.768.typo3-project-templavoila (AT) lists (DOT) netfielders.de... > Hi! > > michiel zoer wrote: >> Thanks to Dmitry I am now able to load any news item (record) inside a >> sIfr-styled FCE, great! > > One thing regarding your code: > >> wrap = <B> | </B> > > Generally you need not to do this. One of ideas behind TemplaVoila is that > you define all markup and effects inside the template and css. In this > case you can build really independent data structures and make them usable > for any visual presentation. > > Imagine that after a month you want your news to look different (including > title). If you do not have tags in "wrap", you could just change css. Much > easier than edit DS! And no need to clear FE cache. > > So, if you want, you can do one step further and move markup to your > template ![]() > > -- > Dmitry Dulepov > > Web: http://typo3bloke.net/ > Skype: callto:liels_bugs > > "It is our choices, that show what we truly are, > far more than our abilities." (A.P.W.B.D.) _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-ttnews] Map tt_news fields in parent FCE / Content Elementscontainer? | michiel zoer | typo3-project-tt-news@lists.netfielders.de | 1 | 26.04.2007 20:43 |
| [TYPO3-templavoila] Section Container Index | lee perry | typo3-project-templavoila@lists.netfielders.de | 3 | 03.04.2007 19:09 |
| [TYPO3-german] TemplaVoila Container Index | lee perry | typo3-german@lists.netfielders.de | 1 | 30.03.2007 13:26 |
| [TYPO3-templavoila] Container for Elements / Sections and theiroutput | Andreas Jonderko | typo3-project-templavoila@lists.netfielders.de | 6 | 29.03.2007 11:31 |
| [TYPO3] Inherit content from parent page (TemplaVoila) | Wytse P. Bezemer | typo3-english@lists.netfielders.de | 1 | 26.03.2007 16:06 |