Skip to content

Instantly share code, notes, and snippets.

@Plou
Created August 16, 2013 14:38
Show Gist options
  • Select an option

  • Save Plou/6250489 to your computer and use it in GitHub Desktop.

Select an option

Save Plou/6250489 to your computer and use it in GitHub Desktop.
How to use any available field in tt_news for any display code. bellow an example of "news_files" use.
<!-- ###TEMPLATE_LIST### begin -->
<!-- ###CONTENT### begin -->
<!-- ###NEWS### begin -->
[---]
<div class="download">
###FILE_LINK###
</div>
[---]
<!-- ###NEWS### end-->
<!-- ###CONTENT### end -->
<!-- ###TEMPLATE_LIST### end -->
plugin.tt_news {
renderFields {
LIST = image,short,category,content,news_files
LATEST = image,short,category,content,news_files
SINGLE = *
}
# newsFiles_stdWrap.wrap bug, il ne rend uniquement la partie droite du wrap
#newsFiles_stdWrap.wrap = <div class="fileList">|</div>
newsFilesHeader_stdWrap.wrap = <p class="fileTitle">|</p>
newsFiles {
path = uploads/media/
icon = 0
size = 0
size.bytes = 0
jumpurl = 0
stdWrap.wrap = <div class="fileLink">|</div>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment