Ignores settings if site has more than one root page.
|Priority:||Must have||Due date:|
|Assignee:||Jochen Rau||% Done:||
I'm using contagged on a site with more than one root pages. I included contagged TS on one of the roots with uid '48'. Now contagged ignores most of my settings, for example 'types'. That's because in tca.php it tries to determine the uid of the root page, fails, and then goes ahead with the fallback of root uid=1 which is false.
Why does it fail to determine the root uid?
tca.php::getCurrentPageId() doesnt work correctly with multiple roots...
Reproduce the bug: make up a site with two root pages. Make sure root uid is not '1'. Install contagged and include root template on the root site which is not uid=1. Now define a tag. Oops, can't determine a type for the tag, the select box is empty.
But there is an alternative way to determine the relevant uid:
tca.php#299 -> $rootline = $sysPage->getRootLine(intval($params['row']['pid']));