fnagel / t3extblog

A record based blog extension for TYPO3 CMS. Easy to use and packed with features (incl. comments, subscriptions for comments and posts, Wordpress like subscription manager, reasonable email sending in FE and BE, GDPR ready, BE modules, Dashboard widgets, RSS, Sitemap, ...). Flexible and powerful!
http://typo3.org/extensions/repository/view/t3extblog
GNU General Public License v2.0
32 stars 18 forks source link

Backend module only allowed in live workspace #275

Open rbnzlknb opened 3 months ago

rbnzlknb commented 3 months ago

Please allow the blog backend module in all workspaces.

fnagel commented 3 months ago

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?

rbnzlknb commented 3 months ago

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

fnagel commented 3 months ago

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?

rbnzlknb commented 3 months ago

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.