Setting the TypoScript values

We need to create an extension template for the newsletters to clear out unnecessary headers and set the values for our TypoScript objects. As we move away from being the site builders, we might need to show this setup to our co-workers in the future, but for now go ahead and choose the Template icon from the far-right sidebar and select the Newsletters folder so we can make an example. Just like last time, TYPO3 will need to know if we are creating a template for a new site or simply an extension. Click on the button labeled Click here to create an extension template to create our new extension. This is a review of what we've already learned, we are just going to quickly add the following lines to the Setup section to clear our external CSS calls, eliminate our JavaScript, and set the TypoScript objects that we created in our template data structure:

## Clear our CSS and JavaScript calls
page {
headerData.10 >
headerData.20 >
headerData.30 >
jsFooterInline.10 >
}
## Set the banner image
lib.bannerImage = IMAGE
lib.bannerImage.file = fileadmin/templates/newsletter_banner.png
## Set the news title
lib.newsTitle = TEXT
lib.newsTitle.value = Other News
## Set the calendar title
lib.eventListTitle = TEXT
lib.eventListTitle.value = Upcoming Dates
## Set the products area title
lib.productTitle = TEXT
lib.productTitle.value = New Products
## Set the contact info title
lib.contactTitle = TEXT
lib.contactTitle.value = Contact Us
## Set the contact information with HTML formatting
lib.contactInfo = HTML
lib.contactInfo.value (
<p>Suite 850</p><p>1214 Rebekah Ave.</p><p>Dallas, TX 75154 USA</p><p><a href="mailto:[email protected]">[email protected]</a></p><p><a href="http://www.example.com">www.example.com</a></p>
)
## Set the footer as plaintext with a dynamic year. See the TSref for more formatting
lib.footer = TEXT
lib.footer.data = date:U
lib.footer.strftime = %Y
lib.footer.wrap = Copyright&nbsp;|&nbsp;Example.com

These are all the values that we need to set in the TypoScript, so we can save our changes and close the Template view.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.47.230