Template path hinting for STK?

View: New views
2 Messages — Rating Filter:   Alert me  

Template path hinting for STK?

by Timo Pulkkinen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

I stumbled on a nice development aid in a webshop project and began  
wondering if it's possible to implement something similar to this
in STK / Magnolia easily?

Here's a tutorial which contains a link to video demonstrating the  
feature:

http://www.topinternetguides.com/2008/05/26/magento-tutorial-turning-on-template-path-hints/


br,
Timo


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: Template path hinting for STK?

by Matteo Pelucco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Timo Pulkkinen ha scritto:
>
> Hello,
>
> I stumbled on a nice development aid in a webshop project and began
> wondering if it's possible to implement something similar to this
> in STK / Magnolia easily?

Hey, they are cloning "our" green bars! But they are red... :-)
Anyway, back to the topic, it should be absolutely easy to implement this.
Just extend the template definition model and add a custom variable,

eg: templateHint = true/false

Then, inside the template, you can enable that feature:

[#if def.templateHint]
[@iwouldpreferhereamacro or include--- /]
[#/if]

It is just an idea...

M.


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------