[TYPO3-UG Dutch] New field in tx News is not shown in Fluid templates

Frans Saris franssaris at gmail.com
Tue Dec 16 09:08:19 CET 2014


Hoi Geert,

als je in je fluid template een <f:debug>{newsItem}</f:debug> doet zie je
daar jaar, week etc bij staan?

Zoniet dan is/wordt Resources/Private/extend-news.txt niet goed opgepakt.
Heb je via de install tool de cache geleegd en voor de zekerheid ook
handmatig typo3temp/Cache ?

gr. Frans

2014-12-15 21:26 GMT+01:00 Geert Vegter <geertvegter at hotmail.com>:
>
> Wat betreft camelCase De inhoud van News.php (van de extensie waar het
> eigenlijk om gaat is) is zoals hieronder staat. Is dat fout ?
> <?php
> /***************************************************************
> *  Copyright notice
> *
> *  (c) 2013 Peter Benke <peter.benke (at) nttdata.com>
> *  All rights reserved
> *
> *  This script is part of the TYPO3 project. The TYPO3 project is
> *  free software; you can redistribute it and/or modify
> *  it under the terms of the GNU General Public License as published by
> *  the Free Software Foundation; either version 2 of the License, or
> *  (at your option) any later version.
> *
> *  The GNU General Public License can be found at
> *  http://www.gnu.org/copyleft/gpl.html.
> *
> *  This script is distributed in the hope that it will be useful,
> *  but WITHOUT ANY WARRANTY; without even the implied warranty of
> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> *  GNU General Public License for more details.
> *
> *  This copyright notice MUST APPEAR in all copies of the script!
> ***************************************************************/
>
> /**
> * News model
> *
> * @package TYPO3
> * @subpackage tx_news
> */
> class Tx_PbNewsJobs_Domain_Model_News extends Tx_News_Domain_Model_News {
>
>         /**
>          * jaar
>          *
>          * @var string
>          */
>         protected $jaar = '';
>
>         /**
>          * week
>          *
>          * @var string
>          */
>         protected $week = '';
>
>         /**
>          * afleveringnummer
>          *
>          * @var string
>          */
>         protected $afleveringnummer = '';
>
>         /**
>          * datum
>          *
>          * @var \DateTime
>          */
>         protected $datum = NULL;
>
>         /**
>          * vimeonummer
>          *
>          * @var string
>          */
>         protected $vimeonummer = '';
>
>         /**
>          * Returns the jaar
>          *
>          * @return string $jaar
>          */
>         public function getJaar() {
>                 return $this->jaar;
>         }
>
>         /**
>          * Sets the jaar
>          *
>          * @param string $jaar
>          * @return void
>          */
>         public function setJaar($jaar) {
>                 $this->jaar = $jaar;
>         }
>
>         /**
>          * Returns the week
>          *
>          * @return string $week
>          */
>         public function getWeek() {
>                 return $this->week;
>         }
>
>         /**
>          * Sets the week
>          *
>          * @param string $week
>          * @return void
>          */
>         public function setWeek($week) {
>                 $this->week = $week;
>         }
>
>         /**
>          * Returns the afleveringnummer
>          *
>          * @return string $afleveringnummer
>          */
>         public function getAfleveringnummer() {
>                 return $this->afleveringnummer;
>         }
>
>         /**
>          * Sets the afleveringnummer
>          *
>          * @param string $afleveringnummer
>          * @return void
>          */
>         public function setAfleveringnummer($afleveringnummer) {
>                 $this->afleveringnummer = $afleveringnummer;
>         }
>
>         /**
>          * Returns the datum
>          *
>          * @return \DateTime $datum
>          */
>         public function getDatum() {
>                 return $this->datum;
>         }
>
>         /**
>          * Sets the datum
>          *
>          * @param \DateTime $datum
>          * @return void
>          */
>         public function setDatum(\DateTime $datum) {
>                 $this->datum = $datum;
>         }
>
>         /**
>          * Returns the vimeonummer
>          *
>          * @return string $vimeonummer
>          */
>         public function getVimeonummer() {
>                 return $this->vimeonummer;
>         }
>
>         /**
>          * Sets the vimeonummer
>          *
>          * @param string $vimeonummer
>          * @return void
>          */
>         public function setVimeonummer($vimeonummer) {
>                 $this->vimeonummer = $vimeonummer;
>
>         }
>
>
> }
>
> _______________________________________________
> TYPO3-UG-Dutch mailing list
> TYPO3-UG-Dutch at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch
>


More information about the TYPO3-UG-Dutch mailing list