I am all new to Typo3. I created an extension called myExtension in /typo3conf/ext/myExtension
The folder structure is as follows
-Classes
--ViewHelpers
--myExtensionViewHelper.php
-Resources
--Resources
--Private
--Templates
--myExtension
--index.html
myExtensionViewHelper.php has the following code
<?php
/**
* This class is a demo view helper for the Fluid templating engine.
*
* @package TYPO3
* @subpackage Fluid
* @version
*/
class Tx_myExtension_ViewHelpers_myExtensionViewHelper extends Tx_Fluid_Core_ViewHelper_AbstractViewHelper {
/**
* Renders some classic dummy content: Lorem Ipsum...
*
* @param int $length The number of characters of the dummy content
* @validate $length IntegerValidator
* @return string dummy content, cropped after the given number of characters
*/
public function render($length) {
$dummyContent = 'Lorem ipsum dolor sit amet.';
return substr($dummyContent, 0, $length);
}
}
?>
the index.html file contains
{namespace myExtension=Tx_myExtension_ViewHelpers}
<f:layout name="Default" />
<f:section name="content">
<h1>
<myExtension:myExtension length="5" />
</h1>
</f:section>
In my typo3 backend, I created a page called "Mango" and included this plugin to it.
I have a template, layout and template.html for the webpage "Mango".
Now what should I do to get the output of the file Index.html into this page?
Am I doing this right ? I haven't done anything else other than the stuff mentioned here.
I'm totally new to Typo3 and all this is a little hard to understand. Please do mention even if anything is trivial and obvious.
Thanks :)