Skip to content

Commit

Permalink
Add marker for current year. Move replacements directly to the fluidt…
Browse files Browse the repository at this point in the history
…empalte - fixes #72
  • Loading branch information
benjaminkott committed Nov 1, 2014
1 parent 706df22 commit 71163c1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Configuration/ContentElements/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,6 @@ tt_content.image.20.1 {
}


#####################
#### BACKEND_URL ####
#####################
styles.content.get.stdWrap.replacement {
1 {
search = http://###BACKEND_URL###/
replace.typolink {
parameter = typo3/
returnLast = url
}
}
}


#################
#### CONTENT ####
#################
Expand Down
16 changes: 16 additions & 0 deletions Configuration/TypoScript/setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,22 @@ page {
themeCopyrightText.value = {$page.theme.copyright.text}

}
stdWrap.replacement {
1 {
search = http://###BACKEND_URL###/
replace.typolink {
parameter = typo3/
returnLast = url
}
}
2 {
search = ###CURRENTYEAR###
replace {
data = date:U
strftime = %Y
}
}
}
}
meta {
viewport = {$page.meta.viewport}
Expand Down

0 comments on commit 71163c1

Please sign in to comment.