[TYPO3-english] tt_news LIST/LATEST linking question
Ulrich Lorenz PHZ Luzern
lorenz.ulrich at phz.ch
Sun Jan 10 22:39:39 CET 2010
Hi Doug
I'm sorry, you are right of course. Untested but try using a COA:
plugin.tt_news.genericmarkers {
data = tx_xmlttnewsimport_xmlunid, title
newtitle = COA
newtitle {
10 = TEXT
10.field = generic_tx_xmlttnewsimport_xmlunid
10.wrap = <a href="http://|" target="_blank">
10.required = 1
20 = TEXT
20.field = generic_title
20.wrap = <strong>|</strong></a>
20.required = 1
}
Regards,
Lorenz
-----Ursprüngliche Nachricht-----
Von: typo3-english-bounces at lists.typo3.org im Auftrag von La Farge Douglas
Gesendet: So 10.01.2010 22:13
An: TYPO3 English
Betreff: Re: [TYPO3-english] tt_news LIST/LATEST linking question
Hi Lorenz,
Are you sure about that?
When I do that it no longer works. The examples I found on the Typo3 site also suggested that the generic_ is needed.
Note the first Advanced Example.
http://typo3.org/documentation/document-library/extension-manuals/ttnewsgenericmarkers/1.1.0/view/1/3/#id4278432
I have this thing working to a point. What I'm not able to do is include a second field - I don't know how to wrap it in.
This works just fine:
plugin.tt_news.genericmarkers {
data = tx_xmlttnewsimport_xmlunid
newtitle = TEXT
newtitle {
field = generic_tx_xmlttnewsimport_xmlunid
wrap = <a href="http://|" target="_blank"><b>[Read the rest of the Story]</b></a>
required = 1
}
}
It outputs:
How Saab Got Here: Pivotal Recent Events
Saab's future remains unclear as parent General Motors Co. considers last-ditch bids from Sweden and the Netherlands. While the bidders are reviewed, GM says it will start winding down the 60-year-old automaker. It has been a...
[Read the rest of the Story]
what I want is something like this (which I know doesn't work)
plugin.tt_news.genericmarkers {
data = tx_xmlttnewsimport_xmlunid, title
newtitle = TEXT
newtitle {
field = generic_tx_xmlttnewsimport_xmlunid, generic_title
wrap = <a href="http://|" target="_blank"><b>|</b></a>
required = 1
}
}
where the first pipe | is xmlttnewsimport_xmlunid, and the second pipe | is the title.
thanks again,
doug
On Jan 10, 2010, at 1:56 PM, Ulrich Lorenz PHZ Luzern wrote:
> Hi Doug
>
> Change
>
> field = generic_tx_xmlttnewsimport_xmlunid
>
> to
>
> field = tx_xmlttnewsimport_xmlunid
>
> It must be the real name of the field. "GENERIC_" only needs to be prepended for the name of the marker.
>
>
> Regards,
>
>
> Lorenz
>
> -----Ursprüngliche Nachricht-----
> Von: typo3-english-bounces at lists.typo3.org im Auftrag von La Farge Douglas
> Gesendet: Sa 09.01.2010 20:23
> An: TYPO3 English
> Betreff: Re: [TYPO3-english] tt_news LIST/LATEST linking question
>
> Hi Lorenz,
>
> Thanks for this little tutorial. I think this will work.
>
> I have this working to a point. I'm stuck though...
>
> Here's what I have:
>
> ###GENERIC_NEWTITLE### in my template.
>
> plugin.tt_news.genericmarkers {
> data = tx_xmlttnewsimport_xmlunid,title
> newtitle = TEXT
> newtitle {
> field = generic_tx_xmlttnewsimport_xmlunid
> wrap = <a href="http://|" target="_blank"> test </a>
> required = 1
> }
> }
>
> According to the docs I can use more than one tt_news data column. In the above case I have the xmlunid properly populating. I'm stuck on how to pull in the title from tt_news to replace 'test' in the URL.
>
> thanks again...
>
> regards,
> doug
>
> On Jan 9, 2010, at 2:34 AM, Ulrich Lorenz PHZ Luzern wrote:
>
>> Hi Doug
>>
>> As far as I know that's not possible. But you may use generic markers to do so:
>>
>> 1. Make sure you're using tt_news 3.0 _or_ have ttnewsgenericmarkers installed (tt_news 2.x).
>>
>> 2. Place a marker named ###GENERIC_MARKERNAME### into your template.
>>
>> 3. Adapt the following typoscript and insert it:
>>
>> plugin.tt_news.genericmarkers {
>> # define which fields from the tt_news table you want to have available for generic markers (comma separated list)
>> data = field_from_tt_news
>>
>> # name of the marker without GENERIC_
>> markername = TEXT
>> markername {
>> field = field_from_tt_news # fieldname as above
>> wrap = <a href="|" target="_blank">My Link</a>
>> required = 1
>> }
>>
>> }
>>
>> You may of course also use typolink to generate the link.
>>
>>
>> Regards,
>>
>>
>> Lorenz
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: typo3-english-bounces at lists.typo3.org im Auftrag von La Farge Douglas
>> Gesendet: Sa 09.01.2010 03:41
>> An: TYPO3 English
>> Betreff: [TYPO3-english] tt_news LIST/LATEST linking question
>>
>> Is it possible to over ride the LIST/LATEST link from the SINGLE PAGE to the URL listed in the Links input box?
>>
>> if so would someone mind letting me know where I can start looking for this config?
>>
>> thanks,
>> doug
>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
-+-+-+-+-+-+-+-+-+-+-+-+-+
Doug La Farge
GCN Publishing, Inc.
Internet Design, Development and Consulting For Today's Media Companies
http://www.gcnpublishing.com
203.665.6211 x209
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list