Skip to content

Instantly share code, notes, and snippets.

@katzefudder
Created January 8, 2014 20:53
Show Gist options
  • Save katzefudder/8324459 to your computer and use it in GitHub Desktop.
Save katzefudder/8324459 to your computer and use it in GitHub Desktop.
Gridelement with the latest tx_news entry
10 = FLUIDTEMPLATE
10 {
file = {$screen.html}/gridelements/newsteaser/template.html
partialRootPath = {$screen.html}/gridelements/newsteaser/partials/
layoutRootPath = {$screen.html}/gridelements/newsteaser/layouts/
variables {
heading = TEXT
heading.field = flexform_header
category = TEXT
category.field = flexform_category
image = TEXT
image.value = <img src="{$screen.img}/dummy.jpg" alt="dummy" />
content = USER
content {
userFunc = tx_extbase_core_bootstrap->run
extensionName = News
pluginName = Pi1
switchableControllerActions {
News {
1 = list
}
}
view =< plugin.tx_news.view
view.templateRootPath = {$screen.html}/gridelements/newsteaser/Templates/
view.partialRootPath = {$screen.html}/gridelements/newsteaser/Partials/
view.layoutRootPath = {$screen.html}/gridelements/newsteaser/Layouts/
settings < plugin.tx_news.settings
settings {
categories = flexform_news.categories
// einstellen der höchstens anzuzeigenden Beiträge
limit = 1
// ID der Newsseite
detailPid = 9
overrideFlexformSettingsIfEmpty := addToList(detailPid)
// ID des Ordners mit den auszulesenden News
startingpoint = 5
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment