Giter Club home page Giter Club logo

Comments (4)

comur avatar comur commented on June 18, 2024

Hi,

if you used the gallery field, there is already a remove image with needed action beside which removes image from gallery array of your entity automatically and you just have to persist it.

Tell me if it's ok for you ?

from comurimagebundle.

carlosequiz avatar carlosequiz commented on June 18, 2024

Thanks for your reply! That's exactly what I need, but I can't figure it out how to enable remove image action.

This is my field definition in Admin class.

->add('galeria', 'comur_gallery', array(
'uploadConfig' => array(
'uploadRoute' => 'comur_api_upload',
'uploadUrl' => Anuncio::ANUNCIO_UPLOAD_ROOT_DIR, // required
'webDir' => Anuncio::ANUNCIO_UPLOAD_DIR, // required
'fileExt' => '.jpg;.gif;.png;.jpeg', //optional
'libraryDir' => null, //optional
'libraryRoute' => 'comur_api_image_library', //optional
'showLibrary' => true, //optional
'saveOriginal' => 'originalImage' //optional
),
'cropConfig' => array(
'minWidth' => 500,
'minHeight' => 300,
'aspectRatio' => true, //optional
'cropRoute' => 'comur_api_crop', //optional
'forceResize' => false, //optional
'thumbs' => array( //optional
array(
'maxWidth' => 180,
'maxHeight' => 400,
'useAsFieldImage' => true //optional
)
)
)
))

Did I miss something in my field definition or is something related to config file?

from comurimagebundle.

carlosequiz avatar carlosequiz commented on June 18, 2024

@comur I just figure it out what happened!!!

It wasn't bad field definition nor bad configuration.

My template was missing remove icon from gallery thumbnails, so I couldn't see the remove function was already there.

Thank you for your time, and again great work.

PS: Spanish (Latin America) translations are welcome?

from comurimagebundle.

comur avatar comur commented on June 18, 2024

Of course for translations ! Thanks !

from comurimagebundle.

Related Issues (20)

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.