Code Monkey home page Code Monkey logo

filereferenceupdatewizard's Introduction

EXT:filereferenceupdatewizard

Reason for this extension

If you use upgrade your project from 4.x to 6.2, then there is a TceformsUpdateWizard to bring resources (mostly images) from uploads/* into FAL. Unfortunately this wizard is not aware of the possibility to a setting in TCA, which keeps files in fileadmin instead of copying it to uploads-folder.

['columns'][field name]['config'] / TYPE: "group"
internal_type='file_reference'  

If you used this setting, the Wizard throws errors claiming that the images were not found in uploads/*. In 6.2 the old references would not work anymore, since the are expected to be FAL-based.

This wizard expects the page:media field to use internal_type='file_reference' and creates FAL-record in sys_file and sys_file_reference for it. The orginal file is kept in fileadmin.

Usage

Just install the extension in your upgraded project and run the wizard. Tested with 6.2 LTS. Beware: there are no further checks yet, it should only be used if you use file_reference for the pages:media field.

Next steps

Since file_reference was not often used and most projects should be on >= 6.2 meanwhile, we probably won't put much effort into this extension. But we could think of:

  • make it check for other fields using file_reference
  • make sure is does no hard to regular fields if it is used against all warnings without having set file_reference

filereferenceupdatewizard's People

Contributors

franzkugelmann avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.