[TYPO3-mvc] Extension "news". Using custom fields.
Jost Baron
Jost.Baron at gmx.de
Fri Mar 8 18:07:13 CET 2013
Hi!
You class definition looks ok, except that the classname should be
"Tx_WedoExtendnews_Domain_Model_News", but that does not matter in this
case.
Did you create the file
"///EXT:wedo_extendnews/Resources/Private/extend-news.txt/" with
"Domain/Model/News" as content?
After installing your extension and clearing the cache, is there a file
"/typo3temp/Cache/Code/cache_phpcode//Domain_Model_News.php"/?/
Regards,
Jost
On 03/08/2013 05:22 PM, Enrique Moreno wrote:
> I've followed the steps but it's not working. I think the underscores
> are playing tricks on me. Could you check my code?
>
> The new field is "tx_wedoextendnews_location"
> The extension key of my extension is "wedo_extendnews"
>
>
> This is News.php:
>
> <?php
> class Tx_wedoextendnews_Domain_Model_News extends
> Tx_News_Domain_Model_News {
>
> /**
> * @var string
> */
> protected $txWedoextendNewsLocation;
>
> public function getTxWedoextendnewsLocation() {
> return $this->txWedoextendNewsLocation;
> }
> public function getWedoextendnewsLocation() {
> return $this->txWedoextendNewsLocation;
> }
> }
>
> ?>
>
> _______________________________________________
> 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