... has a main controller (the dispatcher) that handles “translation” between the old and new architectures. Up to now, launching a plug-in required calling its main class through TS:
//CODE:typoscript:userFunc = tx_yourext_pi1->main//CODE
Now, when writing our plugin, we are calling the dispatcher.
//CODE:typoscript:userFunc = tx_extbase_dispatcher->dispatch//CODE
If we forward an additional...
... automatically set in the message.
Multiple languages
With the use of special subparts in the templates, managing multiple language versions is now easier.
Configuration from TCA or through TypoScript
This solution is the optimum way of freely setting the plugin in various parts of your website. All the settings can be configured through TypoScript.
Notifications
The plugin allows for notifying...
... TYPO3. W tym roku impreza odbędzie się 5 listopada 2011 roku o godz. 12:00.
Poruszonych zostanie wiele tematów skierowanych w szczególności do nowych użytkowników systemu TYPO3:1) TypoScript: “zwykły” optionSplit2) TypoScript: stdWrap - jego możliwości i rozszerzanie3) Development: wykorzystanie hooków i xclass do bezinwazyjnej modyfikacji funkcjonalności.4) Społeczność: Zostań...
... separated list of fields which you want to sort the news datetime, title evo_news_sorting.limitOptions int The list of options to choose in the "items per page" 10,20,30,40
//CODE:typoscript:plugin.tt_news { evo_news_sorting.templateFile = EXT:evo_news_sorting/templates/template.html evo_news_sorting.sortFields = datetime, title evo_news_sorting.limitOptions = 10,20,30,40 }//CODE...
... list of fields which you want to sort the news datetime, title evo_news_sorting.limitOptions int The list of options to choose in the "items per page" 10,20,30,40
//CODE:typoscript:plugin.tt_news { evo_news_sorting.templateFile = EXT:evo_news_sorting/templates/template.html evo_news_sorting.sortFields = datetime, title evo_news_sorting.limitOptions = 10,20,30,40 }//CODE
Video
###YOUTUBEVIDEO###
Files...
... code of our USER_INT plug:
CODE:php: //set page title $GLOBALS['TSFE']->additionalHeaderData['title'] = '<title>'.htmlspecialchars($title).' - my page</title>';//CODE
Then in the Typoscript template for the single view page we should add such TS code:
CODE:typoscript: //set page title config.noPageTitle = 2//CODE
If we look into the cache_pages table now and find the cached single...
... kod:
//CODE:php: //set page title $GLOBALS['TSFE']->additionalHeaderData['title'] = '<title>'.htmlspecialchars($title).' - my page</title>';//CODE
Następnie w szablonie Typoscript dla strony single view dodajemy taki kod TS: //CODE:typoscript: //set page title config.noPageTitle = 2//CODE
Jeśli zajrzymy teraz do tabeli cache_pages i odnajdziemy scachowaną zawartość strony...
... ($this->conf['useSPidFromMountPage']) { $singlePid = $row['pid']?$row['pid']:$this->config['singlePid']; }//CODE
Then, we set the following in tt_news typocsript config
//CODE:typoscript: plugin.tt_news.useSPidFromMountPage =1//CODE
From now on, all tt_news records will be linked to a page where a given record is mounted.
Single View and List on a single page
Our next challenge...
... główna > Produkty > Notebooki > Macbook Pro 17 cali
Jak zwykle w TYPO3 rozwiązań jest więcej niż jedno. Można zrobić to z poziomu wtyczki ale można również za pomocą Typoscript. Poniżej przedstawiam przykład takiego rozwiązania.
//CODE:typoscript:######## ROOTLINE###### # This is our default rootline menu ####################### temp.navi = HMENU temp.navi.entryLevel...
... dodać poniższy zmianę
//CODE:php:if ($this->conf['useSPidFromMountPage']) { $singlePid = $row['pid']?$row['pid']:$this->config['singlePid']; }//CODE
Następnie w konfiguracji typoscript dla tt_news należy ustawić
//CODE:typoscript: plugin.tt_news.useSPidFromMountPage =1//CODE
Od tej pory wszystkie rekordy tt_news będą linkowane do strony w której rekord jest zamontowany.
Single...
... records select records to be open as tabs Use ajax check if you want to load content with ajax Start with tab # number of tab to be open as default
###YOUTUBEVIDEO###
Konfiguracja Typoscript.
Property Data type Description Default template_file file choose file as tabs template EXT:evo_jqtabs/templates/tabs.html css_file int set 1 to include default css file 1 jquery int set 1 to include...
... Select records select records to be open as tabs Use ajax check if you want to load content with ajax Start with tab # number of tab to be open as default
###YOUTUBEVIDEO###
Typoscript configuration.
Property Data type Description Default template_file file choose file as tabs template EXT:evo_jqtabs/templates/tabs.html css_file int set 1 to include default css file 1 jquery...
... zwany dispatcher, który zajmuje się "tłumaczeniem" nowej architektury na starą. Do tej pory uruchomienie wtyczki polegało na wywołaniu w niej głównej klasy poprzez TS:
//CODE:typoscript:userFunc = tx_yourext_pi1->main//CODE
Teraz pisząc wtyczkę wywołujemy właśnie dispatcher:
//CODE:typoscript:userFunc = tx_extbase_dispatcher->dispatch//CODE
Oczywiście poprzez przekazanie...
... obsadzane w wiadomości.
Multi języczność
Dzięki specjalnym subpartom w szablonach ułatwione zostało zarządzanie wersjami językowymi.
Konfiguracja z poziomu TCA lub poprzez TypoScript
Takie rozwiązanie gwarantuje optymalne możliwości obsadzania wtyczki w różnych miejscach serwisu w dowolny sposób. Wszystkie parametry można skonfigurować przez TypoScript.
Powiadomienia
Wtyczka...
Recent Comments
Powered by Disqus