sf_tv2fluidge icon indicating copy to clipboard operation
sf_tv2fluidge copied to clipboard

Consider "Subpages - Use Template Design" behavior of TV

Open DanielSiepmann opened this issue 9 years ago • 1 comments

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.

DanielSiepmann avatar Oct 02 '15 12:10 DanielSiepmann

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;
}

sir-gawain avatar May 17 '16 09:05 sir-gawain