[TYPO3-mvc] Fluid and LaTeX
Lienhart Woitok
Lienhart.Woitok at netlogix.de
Fri Jul 22 11:20:15 CEST 2011
Hello Mario,
to extend a view, just create a directory View in Classes and put a class Tx_YourExt_View_TexView extending Tx_Fluid_View_StandaloneView in there.
There you can override buildParserConfiguration like this:
protected function buildParserConfiguration() {
$parserConfiguration = parent::buildParserConfiguration();
$parserConfiguration->setShortHandOpenSymbol('\\\\fluid{');
return $parserConfiguration;
}
And then you should be able to use that view instead of StandaloneView.
This is basically what I did, as far as I can recall and see by a quick look at my code.
Hope this sheds some light on it.
Kind regards
Lienhart Woitok
Web-Entwickler
Telefon: +49 (911) 539909 - 0
E-Mail: Lienhart.Woitok at netlogix.de
Website: media.netlogix.de
--
netlogix GmbH & Co. KG
IT-Services | IT-Training | Media
Andernacher Straße 53 | 90411 Nürnberg
Telefon: +49 (911) 539909 - 0 | Fax: +49 (911) 539909 - 99
E-Mail: info at netlogix.de | Internet: http://www.netlogix.de
netlogix GmbH & Co. KG ist eingetragen am Amtsgericht Nürnberg (HRA 13338)
Persönlich haftende Gesellschafterin: netlogix Verwaltungs GmbH (HRB 20634)
Umsatzsteuer-Identifikationsnummer: DE 233472254
Geschäftsführer: Stefan Buchta, Matthias Schmidt
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von mario chiari
Gesendet: Donnerstag, 21. Juli 2011 17:41
An: TYPO3 v4 MVC project
Betreff: Re: [TYPO3-mvc] Fluid and LaTeX
Hello Lienhart, All
Nope. I am not able to put the pieces together.
Your patch seems ok, but I do not understand how to use it. May I call from within my actions the new methods
Tx_Fluid_Core_Parser_Configuration::get/setShortHandOpenSymbol() ?
How?
I do not see the trick on how to define a new View class either.
Clearly, I am a newbie to extbase, and looking for a further hint.
thanks
mario
ps
public function texAction() {
include_once('mario.php'); \\ tex-pdf output machinery $new = new Mario; $this->view->setTemplatePathAndFilename($this->view->getTemplateRootPath().'/Autore/Tex.tex');
$this->view->???????->setshortHandOpenSymbol('\fluid{');
<<<< how do I fix line above?!!!!
$autores = $this->autoreRepository->findAll();
$this->view->assign('autores', $autores); $new->texIt($this->view->render());
}
On Wed, 2011-07-20 at 11:09 +0000, Lienhart Woitok wrote:
> Hello Mario,
>
> ....
> And finally, back then, I created a patch for Fluid which allows to
> use something other than { and } for object accessors and short hand
> syntax. See http://forge.typo3.org/issues/7608. But I'm not sure if
> this patch still cleanly applies.
>
....
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list