Results 1 to 6 of 6

Thread: [tweaked] Best image handling in catalog edit and detail

  1. #1
    User
    Join Date
    01-29-13.
    Posts
    64

    Default [tweaked] Best image handling in catalog edit and detail

    Hello to everybody,
    my catalog has a "file" type field that I'm using to upload product photos. I was wondering if there's any workaround to handle more precisely the way the pictures are shown in the details and edit page.
    I see that multiple images are saved into the same field, somehow not in an array fashion (am I right?). Therefore I don't know how to change the template with a foreach navigating into those and showing them in something that could look like a table.

    You, who for sure have been using this kind of field in your catalogs more than once, how managed to handle the appearance of image fields?

    Thank you
    --
    Marco
    ---------
    Triste e' l'uomo
    che ama le cose
    solo quando si allontanano.
    (Baolian, libro dei pensieri Baol, I, vv. 1240-1242)

  2. #2
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: Best image handling in catalog edit and detail

    I don't understand what you will have other then the normal output.. multible Files kreate an galerie like the normal galerie template in Contao... So thats like an Table.

    Could you explain your problem more? An example what the code is now and how it should look like would be nice.

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  3. #3
    User
    Join Date
    01-29-13.
    Posts
    64

    Default Re: Best image handling in catalog edit and detail

    I see that inserting more than one image results in a very long detail view with all the pictures in a row, as show in the attachment.
    What I'd like to get is one of the following:
    - A single image shown with a link to a gallery (in another tab, for instance)
    - A customizable list of images. With customizable I mean easily customizable via CSS, having classes and IDs known and clearly defined. As it is by now I think I'm going to identify tre single images somehow and force them to arrange visually into the page structure.

    I don't know if I got my point, I tried to be as clear as possible. The issue I got is basically "how can I show pictures in catalog getting them to look more integrated into catalog itself"?

    Thank you
    --
    Marco
    ---------
    Triste e' l'uomo
    che ama le cose
    solo quando si allontanano.
    (Baolian, libro dei pensieri Baol, I, vv. 1240-1242)

  4. #4
    User
    Join Date
    01-29-13.
    Posts
    64

    Default Re: Best image handling in catalog edit and detail

    Can't see the attachment, so I post the screenshot here:

    --
    Marco
    ---------
    Triste e' l'uomo
    che ama le cose
    solo quando si allontanano.
    (Baolian, libro dei pensieri Baol, I, vv. 1240-1242)

  5. #5
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: Best image handling in catalog edit and detail

    Ah, you mena in the Edit-Module...
    Thats a pain in the ass ... this is a quick and dirty implementation in the catalog.
    What you can do:
    Put a second Edit-Module in the Frontend only with the pictures. Thats a little bit better for the User.
    Second: you can edit the Template.. but its realy realy ugly...

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  6. #6
    User
    Join Date
    01-29-13.
    Posts
    64

    Default Re: Best image handling in catalog edit and detail

    Yes, it was the edit module. Sorry for not having stated it before :?
    I divided the edit module in two, one for the text data and one for the pictures. It's not that bad now, after a quick CSS tweak.

    Thank you!
    --
    Marco
    ---------
    Triste e' l'uomo
    che ama le cose
    solo quando si allontanano.
    (Baolian, libro dei pensieri Baol, I, vv. 1240-1242)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •