[TYPO3-english] jm_quote - TYPO3 ver 6.2.x
Markus Klein
klein.t3 at mfc-linz.at
Thu Jun 19 12:16:39 CEST 2014
Hi Peder!
I took a quick look at this extension.
Honestly, you don't need that extension at all.
Just take a sysfolder, create a content element per citation (eg. Header = Author, Text = Text), and add some TypoScript.
You can even use a Fluid template to render this.
Hacking together some code quickly, untested:
temp.randomQuoteRenderObj = FLUIDTEMPLATE
temp.randomQuoteRenderObj {
template = TEXT
template = <cite>{author}{'<br />' -> f:if(condition:author)}{text}</cite>
variables.author.field = title
variables.text.field = bodytext
}
temp.randomQuote = CONTENT
temp.randomQuote {
select.selectFields = title, bodytext
select.pidInList = {$pidForQuotes}
select.orderBy = RAND()
select.max = 1
renderObj < temp.randomQuoteRenderObj
}
You can (and should) move the Fluid template to a file of course.
Cheers
Markus
------------------------------------------------------------
Markus Klein
TYPO3 CMS Active Contributors Team Member
> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-
> bounces at lists.typo3.org] On Behalf Of Peder Høy Kristensen
> Sent: Thursday, June 19, 2014 10:41 AM
> To: typo3-english at lists.typo3.org
> Subject: [TYPO3-english] jm_quote - TYPO3 ver 6.2.x
>
> Hi,
> I use ext jm_quote in several TYPO3 websites ver 6.1.x and below. It work
> very well. I would like to use it in websites TYPO3 ver 6.2.x too, but
> unfortunately it is not updated to use with 6.2.x ... at least not to my
> knowledge.
> If someone has made the neccesary modifications to make it work with 6.2.x,
> I would be very happy to get hold of it.
>
> Best Ragards
> Peder Høy Kristensen
> _______________________________________________
> 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