typo3 - How to download files from tx_news listView? -


i'm working on typo3 6.2 site using tx_news.

my goal user can use listview directly download related file, possible in tt_news type download.

the problem in tx_news type news, internal page, external page available. dont want extend news generate new news type.


i got two possible solutions:

use external page link file

problem:

i dont want user type external file link these fields, since bigger project many files.

use sys_category , link "more" field related file

problem:

i need hardcoded check in template files "file download category" uid. if changes, or in year new people need maintain this.

this possible template this, said before, ugly hardcoded check in template file:

<f:for each="{newsitem.categories}" as="category" iteration="catiterator"> </f:for> 

any appreciated, if knows better, cleaner solution.

to clarify: 'listview' mean list of news items?

if so, add templatelayout display urls of related files.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -