Project

General

Profile

Actions

Task #84827

closed

Task #84821: Add RenderType Library to core

Create TagBox Rendertype

Added by Susanne Moog over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-04-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:
Actions #1

Updated by Nicole Cordes over 6 years ago

Hi,

A few weeks ago I had this topic on my desk as work for a client of mine. We are currently evaluating to publish the solution to an open Git repository.
What I'd like to point out is that there was/is no reason for an own render type for tags but simply re-use the existing groupbox.

What we basically did for haven a flexible tagging api in the projects:

  • introduce an own tag table (flat hierarchy, non translatable)
  • introduce some PHP api to add tagging fields to a table (similar to \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable)
  • we use group fields with internal_type db
  • the suggest wizard is configured using an own receiverClass
    • if the query result is empty (no matching tag yet) or the query result doesn't contain the exact search word, a new element "Create tag" is added to the autocomplete list
  • we extend / overwrite the FormEngine-JavaScript
    • new tags ("Create tag") are attached to the groupbox but not yet saved to the database
    • the identifier (NEW-uid) is stored within the form to be able to use new tags multiple times (e.g. if you have multiple tag fields)
    • after adding an entry to the groupbox the suggest field is emptied and focused again

The client and me decided to not introduce a new render type for the tag-handling but to re-use the groupbox. That way the editors to not have to manage yet another field type and the groupbox is perfectly fine to handle all needs.

Maybe these thoughts help you a bit.

Actions #2

Updated by Susanne Moog over 5 years ago

  • Tracker changed from Story to Task
  • Status changed from New to Closed
  • Assignee deleted (Marc Wessels)

As this task was from UserExperienceWeek and wasn't continued since then and Nicole provided an alternative solution, I'm closing this issue for now.

Actions

Also available in: Atom PDF