Strona 1 z 1

Jak przeniesc modol do header i footer

PostNapisane: 28 maja 2011, o 15:13
przez kolczu
witam mam pytanie czy wie ktos w jaki sposob zmodyfikowac modol tak aby mozna bylo go umieszczac w footer lub header a nie tylko left kolumn right kolumn home ? 1.4.9.5

Re: Jak przeniesc modol do header i footer

PostNapisane: 2 sie 2011, o 17:32
przez tomsky
Najszybsze co przychodzi mi na mysl to edycja header.php lub footer.php w catalog/ controller/ common i dodanie tego modulu do array children[]. W ten sposob bedziesz mogl po prostu zrobic php echo z nazwa tego modulu i zostanie on wyswietlony w odpowiednim miejscu.

Re: Jak przeniesc modol do header i footer

PostNapisane: 26 wrz 2013, o 10:19
przez Cebab
Ale w którym miejscu?
Bo przenoszę:
Kod: Zaznacz cały
'common/column_left',
         'common/column_right',
         'common/content_top',
         'common/content_bottom',
         'common/footer',
         'common/header'


do pliku controller/common/header.php ale strona przestaje się wyświetlać.
A chcę przenieść moduł z content_top.tpl do header.tpl

Re: Jak przeniesc modol do header i footer

PostNapisane: 26 wrz 2013, o 10:43
przez Cebab
Bo gdy dodaję w header.php do children array 'module/featured' to pojawia się komunikat:
Notice: Undefined index: image_width in C:\xampp\htdocs\catalog\controller\module\featured.php on line 29Notice: Undefined index: image_height in C:\xampp\htdocs\catalog\controller\module\featured.php on line 29Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in C:\xampp\htdocs\system\library\image.php on line 96Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\system\library\image.php on line 104Warning: imagefilledrectangle() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\system\library\image.php on line 107Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\system\library\image.php on line 109