TemplaVoila Content Element Default Header Type

by Michael Cannon in Featured, TYPO3 · 0 comments

To enable a different default header type for a TemplaVoila container of content elements, you can alter the TemplaVoila Data Structure XML TypoScript component with a LOAD_REGISTER entry as below. The image, “TempaVoila default header type change” can help you get a better idea of how the TypoScript component fits into the TemplaVoila Data Structure XML.

The TypoScript component below, is changing the default header type of content elements within a particular TemplaVoila container to “3″. 3, in this case, is associated with a H3 HTML tag.

	5.defaultHeaderType = 3
	10 {
		source.current = 1
		tables = tt_content
		wrap = <!--TYPO3SEARCH_begin]]> | <!--TYPO3SEARCH_end-->

Through this same TypoScript LOAD_REGISTER method, you can also adjust default TypoScript settings like image maximum width by adding the following to above.

5.maxImageWidth = 200
5.maxImageWidthInText = 200


Whenever you user LOAD_REGISTER, call RESTORE_REGISTER when done using your overrides. Otherwise, follow-on content elements might have changes that you don’t want them to have.

Related Links

Be Sociable, Share!

Related Entries

About Michael Cannon

Hello, I'm Michael Cannon, Peichi's smiling man, an adventurous water-ratchief technology officer, cyclist, poet, WWOOF'er and world traveler.

Previous post:

Next post: