Hi,
I have a module that creates a Table of Contents for a page based on the h1 through h6 tags in the content. I want to alter the function in the module that steps through the content so it only looks for h2 tags. Now I can make this work the way I wish by directly editing the function in the module but I am aware this is very bad practice.
Instead I am trying to use inheritance to overide the module function by creating a file in mysite/code with a class that extends the module function, which contains a copy of the function code modified to only look for h2 tags.
This however does not work, on the upside it is not breaking the site, and I am wondering where I am going wrong with this? If anyone has any pointers on this it would be greatly appreciated.
Cheers
H.