Skip to content

Commit

Permalink
[TASK] Update example TypoScript condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Teisi committed Jul 2, 2024
1 parent 2302871 commit f16ba91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Configuration/TypoScript/example.typoscript
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[traverse(request.getQueryParams(), 'tx_hhsimplejobposts_jobslist/jobpost') > 0 || traverse(request.getQueryParams(), 'tx_hhsimplejobposts_jobsdetail/jobpost') > 0]
[request && (traverse(request.getQueryParams(), 'tx_hhsimplejobposts_jobslist/jobpost') > 0 || traverse(request.getQueryParams(), 'tx_hhsimplejobposts_jobsdetail/jobpost') > 0)]
page.10.variables.MainContent >
page.10.variables.MainContent =< styles.content.get
page.10.variables.MainContent.select.where = colPos = 100
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Lists and shows job posts / job offers incl. schema.org stuff (e. g. for google
In this Example you should replace "MainContent" with your own one!
TypoScript example (https://github.com/Hauer-Heinrich/hh_simple_job_posts/blob/master/Configuration/TypoScript/example.typoscript):
```
[traverse(request.getQueryParams(), 'tx_hhsimplejobposts_jobslist/jobpost') > 0]
[request && (traverse(request.getQueryParams(), 'tx_hhsimplejobposts_jobslist/jobpost') > 0 || traverse(request.getQueryParams(), 'tx_hhsimplejobposts_jobsdetail/jobpost') > 0)]
### In our current opinion better solution:
### Create a new colPos for your TYPO3 backendlayout
### and show this colpos only if the detail view of job-posts is given
Expand Down

0 comments on commit f16ba91

Please sign in to comment.