Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing TypoScript && / || / AND / OR documentation #518

Open
helsner opened this issue Apr 12, 2022 · 5 comments
Open

Missing TypoScript && / || / AND / OR documentation #518

helsner opened this issue Apr 12, 2022 · 5 comments

Comments

@helsner
Copy link
Contributor

helsner commented Apr 12, 2022

Hi,

  1. small issue: https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Conditions/Index.html
    Here, right in the first info box the link to the chapter of the core api is broken

  2. I'm kinda missing some info about using TypoScript with multiple conditions.
    You can combine multiple statements with the classic && or ||, but also with normal "and" or "or" AFAIK.

@helsner
Copy link
Contributor Author

helsner commented Apr 12, 2022

i'm also not sure about proper syntaxing here which is the inital problem for this issue
is it
[123 in tree.rootLineIds || 456 in tree.rootLineIds]
or
[123 in tree.rootLineIds] || [456 in tree.rootLineIds]
or both?

@mbrodala
Copy link
Member

Only the 1st is correct, the 2nd is the legacy TypoScript syntax. Once written you can try to ignore the [ and ] and write everything like you need it.

@DavidBruchmann
Copy link
Contributor

related to 1.: today that's the box in applicationContext, that link is working.

related to 2.: combinations of conditions are explained on this site: https://docs.typo3.org/m/typo3/reference-coreapi/12.4/en-us/Configuration/TypoScript/Syntax/Conditions/Index.html
but I agree that it should be also mentioned in TSREF on the site you linked @helsner .
Would you like to make a paragraph about it and add it to that site? we could instead also link the according paragraph from the coreapi, then the content never has to be maintained twice, so that would be the better solution.

@brotkrueml
Copy link
Contributor

It is mentioned and linked (first paragraph): https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Conditions/Index.html

But I agree, it can be better visible, like in a note or something.

@sarahmccarthy123
Copy link
Contributor

I have moved up the info about multiple conditions in the core api docs so that it is more obvious

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants