Detecting layout name

@warrenao, your are onto something there but I do not think running a Javascript alone would work well.
I think that would mean you would have to have a javascript for each layout.

iChat you could do is use behaviours to run a single JavaScript function. The behaviours have an event property we can use to get the layouts name. customBehaviorName


Create each layout.

Then on each layout’s ‘On Layout Load’ add a custom behaviour.
Name the custom behaviour’s name the same name as the Layout.
Set ALL the custom behaviour’s action to trigger the same (single) javascript.

The javascript will then be able to check the event and access the :

event.customBehaviorName

example:

LayoutName.hypetemplate.zip (21.2 KB)

3 Likes