while I was trying to include your code into a new set up 4.5.3 on a subdomain of our shop
Thanks anyway! ____________________________________________________________________ Haller Stahlwaren GmbH Am Gartennest 1 74544 Michelbach/Bilz --- Tel.: 0791/47003 Fax : 0791/47005 www.haller-stahlwaren.de --- Sitz: Schwäbisch Hall Registergericht: Stuttgart HRB 570131 Geschäftsführer: Hermann Hebsacker, Karin Hebsacker _____ Von: dev-general-boun...@lists.oxidforge.org [mailto:dev-general-boun...@lists.oxidforge.org] Im Auftrag von Alexander Kludt Gesendet: Dienstag, 11. Oktober 2011 17:01 An: dev-general@lists.oxidforge.org Betreff: Re: [oxid-dev-general] Template documentation 4.5 (Azure) Sure you have to check that back - i was just talking about my effort to build a module for that. I posted the solution to the forums meanwhile: http://www.oxid-esales.com/forum/showthread.php?p=70511#post70511 -- mit freundlichen Grüßen Alexander Kludt __________________________ Phone: 09283-5925453 Skype: kingschnulli Email: cod...@aggrosoft.de Website: www.aggrosoft.de __________________________ Aggrosoft it intelligence GbR Tannstrasse 12 95111 Rehau GERMANY Sitz Rehau, Amtsgericht Hof Steuernummer: 223/165/54508 Ust.-Id. Nr. gemäß § 27 a Umsatzsteuergesetz: DE260722773 ___________________________ Diese Nachricht ist nur für den Empfänger () bestimmt, sollten Sie nicht der Empfänger sein löschen Sie diese Nachricht umgehend und geben Sie uns bitte per Email (cod...@aggrosoft.de) Bescheid über den fälschlichen Erhalt. _____ Dainius Bigelis <mailto:dainius.bige...@oxid-esales.com> 11. Oktober 2011 16:18 Hi, @Alexander: thanks for the good idea. We will check this solution. But still this needs to be checked and only then would be clear if it fits and does not need any template changes. Then would be clear when it might be included in eShop. So this task will be included in our backlog, to keep our usual process, even if it looks like 5 mins work ;) Thank you all for the feedback. Best regards, Dainius Bigelis _______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general _____ Raimund Lang <mailto:r.l...@haller-stahlwaren.de> 11. Oktober 2011 15:51 @oxid: If there are no frontend-templates involved, can you include immediately into the upcoming patch? Or at least in a Demo-Shop perhaps? ____________________________________________________________________ Haller Stahlwaren GmbH Am Gartennest 1 74544 Michelbach/Bilz --- Tel.: 0791/47003 Fax : 0791/47005 www.haller-stahlwaren.de --- Sitz: Schwäbisch Hall Registergericht: Stuttgart HRB 570131 Geschäftsführer: Hermann Hebsacker, Karin Hebsacker _______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general _____ Alexander Kludt <mailto:cod...@aggrosoft.de> 11. Oktober 2011 15:46 No - this will automatically do this without touching any of the templates, it uses a smarty prefilter (postfilter might work as well) which captures the current template name and appends and prepends it in an html comment. Workload to implement this is below 5 minutes. _______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general _____ Raimund Lang <mailto:r.l...@haller-stahlwaren.de> 11. Oktober 2011 15:43 Thanks for the hint but this includes changes of the frontend templates, right? So 4.6.0 would be the next possibility to release. ____________________________________________________________________ Haller Stahlwaren GmbH Am Gartennest 1 74544 Michelbach/Bilz --- Tel.: 0791/47003 Fax : 0791/47005 www.haller-stahlwaren.de --- Sitz: Schwäbisch Hall Registergericht: Stuttgart HRB 570131 Geschäftsführer: Hermann Hebsacker, Karin Hebsacker _______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general _____ Alexander Kludt <mailto:cod...@aggrosoft.de> 11. Oktober 2011 15:31 Hi guys, Adding an output on each template start and end can be done easily using a smarty prefilter - just create the following file in core/smarty/prefilter.debugtpl.php: <?php function smarty_prefilter_debugtpl($sSource, &$oSmartyCompiler) { //return $sSource; return "<!-- ". $oSmartyCompiler->_current_file ." -->".$sSource."<!-- EOF ". $oSmartyCompiler->_current_file ." -->"; } Then create module that will initialize this filter on smarty creation (which is done by oxutilsview::_fillCommonSmartyProperties): <?php class debugtpl extends debugtpl_parent{ protected function _fillCommonSmartyProperties( $oSmarty ){ parent::_fillCommonSmartyProperties($oSmarty); include_once dirname(__FILE__).'/smarty/plugins/prefilter.debugtpl.php'; $oSmarty->register_prefilter('smarty_prefilter_debugtpl'); } } This will create an HTML Comment in before every template that is parsed - if you want to see the names inside of your template just create a red span tag like the yaml template does. _______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general
<<image001.gif>>
<<image002.jpg>>
_______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general