From f16ba91de28862992be1fe77816317c0e906765b Mon Sep 17 00:00:00 2001 From: Christian Hackl Date: Tue, 2 Jul 2024 15:13:51 +0200 Subject: [PATCH] [TASK] Update example TypoScript condition --- Configuration/TypoScript/example.typoscript | 2 +- README.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Configuration/TypoScript/example.typoscript b/Configuration/TypoScript/example.typoscript index 5890882..93db6a1 100644 --- a/Configuration/TypoScript/example.typoscript +++ b/Configuration/TypoScript/example.typoscript @@ -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 diff --git a/README.md b/README.md index 5a3712a..58fbbb7 100644 --- a/README.md +++ b/README.md @@ -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