Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
TYPO3 Extension Development

You're reading from   TYPO3 Extension Development

Arrow left icon
Product type Paperback
Published in Sep 2008
Publisher
ISBN-13 9781847192127
Length 232 pages
Edition Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Dmitry Dulepov Dmitry Dulepov
Author Profile Icon Dmitry Dulepov
Dmitry Dulepov
Arrow right icon
View More author details
Toc

Frontend Plugins: The Basics


This section will describe the basics of the Frontend plugins. The main goal of this section is to give the reader an overview and basic understanding of what Frontend plugins are, how they work, and what they look like. The details are discussed later in this chapter.

Concepts

A Frontend plugin is a class or a function that runs as a part of the page content generation process. Typically, Frontend plugins produce some visible content, but they can also be silent and do other tasks.

The simplest possible Frontend plugin looks like this:

function user_myext_plugin() { return 'Hello world!'; }

To call such a plugin, use the following TypoScript:

includeLibs.myext_plugin = EXT:myext/user_myext_plugin.php
page.10 = USER
page.10.userFunc = user_myext_plugin

The first line includes the PHP file with a plugin code. The second line defines that the plugin type is USER. There are several types of plugins. USER is the most common and it means that the plugin's output is cached...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image