This repository was archived by the owner on May 21, 2021. It is now read-only.
[TASK] Adds an example how to add attributes.#1
Open
pfinkbeiner wants to merge 2 commits intohelhum:masterfrom
Open
[TASK] Adds an example how to add attributes.#1pfinkbeiner wants to merge 2 commits intohelhum:masterfrom
pfinkbeiner wants to merge 2 commits intohelhum:masterfrom
Conversation
With that commit comes the ability to add a specific title and description to an image directly while uploading them. There is even more possible like adding links or alternative text or any other already existing field in sys_file_reference table. Even extending the sys_file_reference reference is possible and fill it up with custom data. Just extend the FileReference model in your extension, assign your content via the model setter in UploadedFileReferenceConverter and thats it. Happy uploading.
Also improves the storage handling of additionalAttributes. If the given value is empty, even after trimming, it uses NULL as value. The same as the origin value.
Author
|
Well, I removed that obsolete mysql_real… and htmlspecial… stuff. I also wrote a fallback if the given values are empty it will act a more natural way and NULL will be stored in the DB. In TYPO3 backend you'll see the checkboxes only checked if it contains valid content. Maybe the PersistentObjectConverter is the right way to store that additional attributes in more »extbase way«, but for know it should do the trick. I would really appreciate it to see such a solution implemented in the extension_kickstarter! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

With that commit comes the ability to add a specific title and
description to an image directly while uploading them.
There is even more possible like adding links or alternative text or any
other already existing field in sys_file_reference table. Even
extending the sys_file_reference reference is possible and fill it up with custom
data. Just extend the FileReference model in your extension, assign your
content via the model setter in UploadedFileReferenceConverter and thats
it. Happy uploading.