TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-project-templavoila@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 25.04.2007, 21:22
michiel zoer
Gast
 
Beiträge: n/a
Standard [TYPO3-templavoila] Map tt_news fields in parent FCE / ContentElements container?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 26.04.2007, 11:55
Dmitry Dulepov
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] Map tt_news fields in parent FCE / ContentElements container?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 26.04.2007, 14:59
Dmitry Dulepov
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] Map tt_news fields in parent FCE / ContentElements container?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 26.04.2007, 15:19
michiel zoer
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] Map tt_news fields in parent FCE / ContentElements container?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 26.04.2007, 20:42
michiel zoer
Gast
 
Beiträge: n/a
Standard [TYPO3-templavoila] SOLVED Map tt_news fields in parent FCE /Content Elements container?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 27.04.2007, 09:55
Dmitry Dulepov
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] SOLVED Map tt_news fields in parent FCE /Content Elements container?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 27.04.2007, 10:22
Michiel Zoer
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] SOLVED Map tt_news fields in parent FCE /Content Elements container?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:25 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77