In typo3 we can add meta title,meta description and meta keyword as follows,
Normally in typo3 each page displays it’s own content added from the backend.
We can also access contents from other pages via typoscript.
For example if we want to show ‘content’ in colPos = 0 (column position corresponds to this ‘content’ element in backend layout) from page id 3 in page id 2.
Add the following typoscript in template setup,
1 2 3 4 5 6 7 8 9 | lib.content_from_page3 = COA lib.content_from_page3 { 10 = CONTENT 10 { table = tt_content select.where = colPos = 0 select.pidInList = 3 } } |
The RealURL Configuration means to rewrite our URL to readable form
Normaly the URL looks like
http://site1.com/mysite/index.php?id=1&L=1
Id means the page id and L means the language. Using RealUrl we can change the URL into readable form like
http://site1.com/mysite/en/home/
Here “en” means languange English and “home” means homepage
Back End process/changes
1. Installation
Install the extension “RealUrl” from the TYPO3 extension repository
2. Configuration
We should create a configuration file for rewriting the URL to take effect.
Select “Extension manager” from left panel, search for “RealURL” and click on the name on it.
Back End process/changes
Let us assume our website name is ‘mysite’
Step 1. Create Web root with two root files.
Here “Root_Local” is accessed with ‘site1.com/mysite’ and “Root_IP” is accessed with ‘site2.com/mysite’
Example 1
1. Add the following code into your typoscript.
1 2 3 4 5 6 7 8 9 | includeLibs.image = fileadmin/image_slider.php lib.imageslider1 = USER_INT lib.imageslider1 { userFunc = homeImages userFunc { albumId = 11 } } |
2. The fileadmin/image_slider.php file has the following content.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <?php function homeImages($content = '', $conf = array()) { global $TSFE; $conf = $conf['userFunc.']; $albumId = $conf['albumId'];// $albumId contains value '11' // do something // $data = 'some return content' return $data; } ?> |
AJAX is a way updating parts of a web page without reloading the whole web page by exchanging data with a server.Creating AJAX calls in typo3 extensions.
AJAX is a way updating parts of a web page without reloading the whole web page by exchanging data with a server.
TYPO3 has some features that allow you to easily combine AJAX with TYPO3.
1. Making an AJAX request.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | $(document).ready(function() { $('#target_id').click(function(){ $.ajax({ url: 'index.php', data: { eID: 'ediName', tx_ediNameajax_pi1: ({ 'value': $('#target_value').val() }) }, success: function(data) { //Somethinf to do. } }); return false; }); }); |
You can add the method without any extension support.
* Configure tt_products extension as specified in the extension document.
* Add the following typoscript into the setup part of your template.
1 2 3 4 5 6 | plugin.tt_products { payment { radio = 1 10.title = cash on delivery } } |
‘radio = 1’ is used for implementing radio button. if this is not specified then by default drop down will be implemented.
If there is more than one payment mechanisms are used, then the number 10 (10.title) will be changed accordingly.