|
INTERVIEW QUESTIONS
CONTENT MANAGEMENT SYSTEM
TYPO3 CMS
DETAILS
Question: Explain TypoScript syntax.
Answer: TypoScript is parsed in a very simple way; line by line. This means that each line normally contains three parts based on this formula:
[Object Path] [Operator] [Value]
object path: The object path (in this case myObject.myProperty) is like the variable name in a programming language. The object path is the first block of non-whitespace characters on a line until one of the characters =<>{( or a white space is found. The dot (.) is used to separate objects and properties from each other creating a hierarchy. Here we have the object myObject with the property myProperty. Use only A-Z, a-z, 0-9, "-", "_" and periods (.) for object paths!
Dots in the object path can be escaped using a backslash.
operator: The operator (in the example it is =) can be one of the characters =<>{(. The various operators are described below.
value: The value (in case of the above example "value 2") is whatever characters follow the operator until the end of the line, but trimmed for whitespace at both ends. Notice that values are not encapsulated in quotes! The value starts after the operator and ends with the line break.
Comments: When a line starts with / or # it is considered to be a comment and will be ignored.
Comment blocks: When a line starts with /* or */ it defines the beginning or the end of a comment section respectively.
|
|
|
Category |
TYPO3 CMS Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7564 users |
Added on |
7/5/2016 |
Views |
68857 |
Rate it! |
|
|
Question:
Explain TypoScript syntax.
Answer:
TypoScript is parsed in a very simple way; line by line. This means that each line normally contains three parts based on this formula:
[Object Path] [Operator] [Value]
object path: The object path (in this case myObject.myProperty) is like the variable name in a programming language. The object path is the first block of non-whitespace characters on a line until one of the characters =<>{( or a white space is found. The dot (.) is used to separate objects and properties from each other creating a hierarchy. Here we have the object myObject with the property myProperty. Use only A-Z, a-z, 0-9, "-", "_" and periods (.) for object paths!
Dots in the object path can be escaped using a backslash.
operator: The operator (in the example it is =) can be one of the characters =<>{(. The various operators are described below.
value: The value (in case of the above example "value 2") is whatever characters follow the operator until the end of the line, but trimmed for whitespace at both ends. Notice that values are not encapsulated in quotes! The value starts after the operator and ends with the line break.
Comments: When a line starts with / or # it is considered to be a comment and will be ignored.
Comment blocks: When a line starts with /* or */ it defines the beginning or the end of a comment section respectively. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All TYPO3 CMS Interview Questions & Answers - Exam Mode /
Learning Mode
|