sf_tv2fluidge
sf_tv2fluidge copied to clipboard
Consider "Subpages - Use Template Design" behavior of TV
In one of our installations the option "Subpages - Use Template Design" was empty on the root page. But on subpages no new Template was defined. TV still uses the Template from root page.
While using sf_tv2fluidge it could not determine the uid of the used TV record for the pages, while migrating the reference elements on pages. After selecting the option "Subpages - Use Template Design" on the root page the migration worked.
Would you implement the same behavior as TV? Looks like the same issue #93, as #93 was for the page properties, while this here is for reference items.
Tested with templavoila 1.9.0 and sf_tv2fluidge 0.4.0.
to fix this, change the folling in SharedHelper.php:getTvPageTemplateUid():
if ($myPageRecord['tx_templavoila_next_to']) {
$tvTemplateObjectUid = $myPageRecord['tx_templavoila_next_to'];
break;
}
to
if ($myPageRecord['tx_templavoila_next_to']) {
$tvTemplateObjectUid = $myPageRecord['tx_templavoila_next_to'];
break;
}
if ($myPageRecord['tx_templavoila_to']) {
$tvTemplateObjectUid = $myPageRecord['tx_templavoila_to'];
break;
}