The second issue was simply we are using the IDs of the buttons to workout which button data type we want to search for.
When we create a new layout the ids are wiped and given Hype ids. The is normal.
IDs have to be unique.
When we encounter this we need to use another method. We commonly use class names.
So all we have to do is give the buttons another class name in the identity inspector.
They already have an extra class called ‘tag’. we add a new class which is the same name we had used for the button/s id.
We the just change the line in the code.
var tagged =$(tagValue).attr('id');
to
var tagged =tagValue.classList[2];
This singles out second class name in the class name list of a button.
When we give .i.e the PHP button the class name of PHP along with it’s tag class name
The button actually ends up with 3 class names.
0, hype generated class name ( at run time)
1, tag
2,PHP
mh_Tags_v5.0.1.hype.zip (279.5 KB)