Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RTM] Use the file meta data by default when adding an image #807

Merged
merged 3 commits into from May 3, 2017
Merged

[RTM] Use the file meta data by default when adding an image #807

merged 3 commits into from May 3, 2017

Conversation

leofeyer
Copy link
Member

@leofeyer leofeyer commented May 3, 2017

This PR implements contao/core#7774. It is still work in progress, but it already works for adding images to text elements.

@leofeyer leofeyer added this to the 4.4.0 milestone May 3, 2017
@leofeyer leofeyer self-assigned this May 3, 2017
@leofeyer
Copy link
Member Author

leofeyer commented May 3, 2017

Default form:

Form with the "Overwrite meta data" option set:

@leofeyer leofeyer changed the title [WIP] Use the file meta data by default when adding an image [RTM] Use the file meta data by default when adding an image May 3, 2017
@leofeyer leofeyer requested review from ausi, Toflar and aschempp May 3, 2017 10:30
@leofeyer
Copy link
Member Author

leofeyer commented May 3, 2017

This PR is ready to merge now IMHO.

*/
public static function addFileMetaInformationToRequest($strUuid, $strPtable, $intPid)
{
@trigger_error('Using Backend::addFileMetaInformationToRequest() has been deprecated and will no longer work in Contao 5.0.', E_USER_DEPRECATED);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use what instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing. The elements now directly use the meta data, so we do not need this workaround anymore.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok :)

@leofeyer leofeyer merged commit cc1bd18 into contao:develop May 3, 2017
@leofeyer leofeyer deleted the feature/image-fields branch May 3, 2017 13:48
leofeyer added a commit to contao/calendar-bundle that referenced this pull request May 3, 2017
leofeyer added a commit to contao/faq-bundle that referenced this pull request May 4, 2017
leofeyer added a commit to contao/faq-bundle that referenced this pull request May 4, 2017
leofeyer added a commit to contao/faq-bundle that referenced this pull request May 4, 2017
leofeyer added a commit to contao/news-bundle that referenced this pull request May 4, 2017
leofeyer added a commit to contao/faq-bundle that referenced this pull request May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants