field - Typo3 6.0 - Extending tx_news -


i new in typo3, , tried extend news following tutorial : http://docs.typo3.org/typo3cms/extensions/news/main/tutorial/extendingnews/index.html

my main goal create new extension, did using extension builder, , extend news can add new field , use it.

i followed every step described in tutorial, there's 1 point i'm not sure how proceed. , how supposed use new custom field in template?

in tutorial, written :

"you can use new field in template using {newsitem.txworkshoptitle}or {newsitem.workshoptitle}".

where supposed put line ? need make custom template in own extension? don't quite understand.

first, create custom templates copying default fluid templates ext:news/resources/private/* new folder, example fileadmin/templates/ext/news/

then need configure path custom template typoscript:

plugin.tx_news {     view {         templaterootpath = fileadmin/templates/ext/news/templates         partialrootpath = fileadmin/templates/ext/news/partials         layoutrootpath = fileadmin/templates/ext/news/layouts         } } 

alternatively can put stuff own extension. you'd need settings like:

... templaterootpath = ext:your_ext/resources/private/tx_news/templates ... 

and put above mentioned copies resources/private/tx_news/

now can customize templates in fileadmin/templates/ext/news/ , use own accessor it.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -