t3extblog icon indicating copy to clipboard operation
t3extblog copied to clipboard

Backend module only allowed in live workspace

Open rbnzlknb opened this issue 1 year ago • 5 comments

Please allow the blog backend module in all workspaces.

rbnzlknb avatar Mar 11 '24 15:03 rbnzlknb

Sure, I can do that. I need to configure it like described here, right? https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Workspaces/Index.html#workspaces-backend-acess

The extension was not tested with workspaces in some time. Any feedback on this?

fnagel avatar Mar 21 '24 12:03 fnagel

Correct, it should be solved with this configuration:

return [
    'web_T3extblogBlogsystem' => [
        'parent' => 'web',
        'position' => ['after' => 'web_info'],
        'access' => 'user,group',
        'workspaces' => '*',
        // ... other configuration
    ],
];

In my experience, the extension works with workspaces.

However, there is a problem with content elements that are attached to a post. If a published post is edited in the non-live workspace and content elements are added, the sorting in the FE is not correct. After publishing, the frontend display is correct.

However, it seems to be more of a core problem. https://forge.typo3.org/issues/99426

rbnzlknb avatar Mar 21 '24 13:03 rbnzlknb

I've pushed a small fix with the needed configuration. Please check and and give feedback if this is sufficient.

Regarding the sorting issue: yes, that sounds like the linked core issue indeed. T3extblog uses a TypoScript rendering approach for its tt_content records as EXT:news does. Would be interesting if the News extension has the same issues.

We could try to create a workaround when in workspace mode?

fnagel avatar Mar 21 '24 14:03 fnagel

With this change, the backend module is also visible in other workspaces.

However, there is still a problem in the backend post list.

Illegal offset type in isset or empty
if (isset($sysLanguageUid) && isset($translations['translations'][$sysLanguageUid])) { https://github.com/fnagel/t3extblog/blob/master/Classes/ViewHelpers/Backend/LocalizationViewHelper.php#L89

If I understand correctly, $sysLanguageUid is not 'sys_language_uid' but an array.

$sysLanguageUid = $sysLanguageUid['sys_language_uid'];
This allows me to call up the list in the backend.

However, the corresponding post icon is still missing for translated posts.

rbnzlknb avatar Mar 25 '24 14:03 rbnzlknb

@rbnzlknb Sorry for the late response. Not much time for OSS at the moment.

Can you check if the PR I just merged (#279 and #280) fixed the issues for you? Should be the fix for your issue. It's included in the latest master.

fnagel avatar Sep 18 '24 13:09 fnagel

The current master version fixes the issue.

Thanks for the fix.

rbnzlknb avatar Sep 25 '24 09:09 rbnzlknb