preg_match_all question to table_of_contents UDT

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
SimonSchaufi

preg_match_all question to table_of_contents UDT

Post by SimonSchaufi »

Hi!
I edited the table_of_contents UDT and it works but only if the only attribute is name or id. if i add a class attribute, it doesn't work again. Can anybody help me in editing the function so that whatever other attribute is there, the function will select the correct tag (here: ) and the attribute id or name?

preg_match_all("/(.*)/i", $page_contents, $match);

http://wiki.cmsmadesimple.org/index.php ... f_contents

Maybe here, but i have not yet tried many examples:

http://de.php.net/manual/en/function.preg-match-all.php
Locked

Return to “Modules/Add-Ons”