Magento template hints 
Magento can wrap every template into a div with title of it's name. This can be done in admin > System > Configuration > Developer.



But switch Current Configuration Scope in upper left corner to website or some store view, because that config is not available in default config.




Now in Debug section change Template Path Hints to "Yes".



Make sure you have disabled cache or refresh it and load frontend. You will see many red borders with titles. That are paths to template files in app/design/.

Template hints in backend



And what if you want template hints in backend? That is not so obvious, but it can be done by storing some config to database. It is not available to change in admin. So run this query:

INSERT INTO core_config_data (scope, scope_id, path, value)
VALUES ('default', 0, 'dev/debug/template_hints', 1),
('default', 0, 'dev/debug/template_hints_blocks', 1);


When you want to remove that hints, change values of that config to 0.

With this knowledge we can speed up turning template hints on and off also in frontend. Paths in config are:

'dev/debug/template_hints'
'dev/debug/template_hints_blocks'

,where _blocks means names of the blocks in upper right corner.



[ 1 comment ] ( 6835 views )   |  permalink  |  related link  |   ( 2.9 / 1084 )
Fraktalne kolaciky 
Na letnej skole p-matu (25.-31.7.2009) som mal kruzok o peceni. Napriek pochybnostiam sa vsetko podarilo. Povodny napad bol zo stranky http://www.evilmadscientist.com/article ... talcookies. Ale efektivnejsie bolo namiesto stvorcov robit trojuholniky. Recept bol nasledovny:
1kg polohrubej muky
0.5kg cukru
4 vajcia
4*125g masla

Vsetko vymiesat, vyvalkat, rozdelit na 256 casti, z toho do 84 casti sa pridalo kakao. Potom sa z jednotlivych casti spravili dlhe trojboke hranoly, pospajali do takej strudly, nakrajali a upiekli.


[ add comment ] ( 3862 views )   |  permalink  |   ( 2.9 / 1274 )

<Back | 1 |