Selección de columna específica

Hola,

Estoy creando una aplicación con lugares de interés, restaurantes, bares, cafeterias etc, para una zona turística.

Me gustaria poder hacer un carrusel o galería de imagenes.

He probado con guias y tutiriales de Glide que hay en internet pero no consigo que funcione.

Hay alguna solución?

Gracias.

Hola,

Los carruseles no están disponibles en la última versión de Glide utilizando el editor de datos nativo de Glide. Cualquier solución probablemente no le dará la experiencia nativa de carrusel o deslizador que usted esperaría.

Los carruseles solían estar disponibles en las ya antiguas y clásicas aplicaciones. Estos carruseles se podían construir creando columnas de array sólo en Google Sheets. Una antigua explicación se puede encontrar aquí, aunque esta explicación será actualizada y eliminada en algún momento.

(Translated from English using DeepL)


Hello,

Carousels are not available in the newest version of Glide using Glide’s native data editor. Any workarounds will probably not give you the native carousel or slider experience you would expect.

Carousels used to be available in the now old and classic apps. These carousels could be built buy creating array columns in Google Sheets only. An old explanation can be found here, though this explanation will be updated and removed at some point.

Thank you.

How i can select a specific column of source??

Kind Regards

Ideally you would have a separate table just for images, and then create a relation linking the restaurants table to the images table. The relation would be the source of the collection of cards.

Thanks for youre reply.

I try to make a relation with name of the restaurants in both tables, but in the cards grid is not appears the photos of the same restaurant.

What am I doing wrong?

Can you show how you set up the relation and how you set up the collection?

Yes, of course.


I want to feel like this. This sample is correct the restaurant and the pictures.

But in the other locals, like Terraza 360, i cant select the specific column to show the correct data.


Show the same colletion in all the restaurants.

And this is how my tables are configurated.

Thank you for youre help.

Kind regards

OK. The first thing you need to do is open your relation configuration and check the box that says ‘Multiple’. This is because the relation should be finding multiple image rows.

Once you do that, then you should be able to select the relation as the source of your collection.

2 Likes

Yes, it works. But in section items data on grid, only i can choose one column for show.

It’s possible show all the images per Row??

The purpose of my suggestion was to place all of your images into rows. It will not work if images are in multiple columns in each row.

Sorry but i dont understand.

I make this:

One image per column. in the row of each restaurant.

How i can correct that?

Thank you for your patience with me and your help.

For it to work, you can only have one image per row.

I have one image per row, but i can select the images in each profile of restaurant.

I hace wat i want, but in all restaurants appears the same photo carrusel.

Thank you

If it’s appearing the same for each restaurant, then you are not using the relation as the source of your collection. Change the collection to use the relation instead of the table.

1 Like

Thank for youre help Jeff,

I have this:

Captura de Pantalla 2023-05-11 a las 17.36.14

But i have a problem with items data, i only can select 1 column of the relation.

with this form, i cant show the images like a gallery with in grid with horizontal slider.

Is there any way to fix it?

We are going in circles here…

Glide does not provide a native carousel function in New Apps. What I’m giving you is an alternative workaround. It will require you to structure you data differently. Each image must have it’s own row. You cannot have images in multiple columns if you want my suggestion to work.

3 Likes

Hello Jeff,

Thank you for youre help.

But i started with glide now.

I make arrays for put all the images in one row, but dont work.

Can you show me with a screenshot or visual example how i can make this please?

Thank you

Hola @sergioclimente ! A ver si puedo echarte una mano… He creado 2 tablas para mostrarte cómo lo haría yo para mostrar un carrusel de imágenes en Glide.

Lo primero, he creado una tabla Restaurantes donde le he creado un campo Nombre y he creado 3 restaurantes de ejemplo.
sergio_01

Después he creado una tabla Imágenes con un campo Imagen y otro Restaurante y he creado 8 imágenes donde he asociado al Restaurante.01 tres imágenes, al Restaurante.02 otras 3 imágenes y al Restaurante.03 dos imágenes.

Después, he creado una relación entre los Restaurantes y las Imágenes por el campo Nombre de la tabla Restaurantes y el campo Restaurante de la tabla Imágenes y he marcado la casilla “Match multiple” porque un restaurante tiene varias imágenes.

Ahora viene la “magia”. Para mostrar un carrusel de imágenes he hecho lo siguiente. Lo primero, una pantalla con un componente collection para mostrar todos los restaurantes.

Al hacer clic en un restaurante, nos iremos a una pantalla de detalle del restaurante donde añadiremos un componente collection para mostrar las imágenes asociadas al Restaurante y para hacer un “swipe” lateral, configura el componente como te muestro en la captura.

Si no quieres que te aparezca la barra de búsqueda, desmárcala en opciones.

Adjunto te envío el vídeo de cómo quedaría.
ezgif-4-9febdbb5cb

Espero haberte ayudado… :wink:

4 Likes

¡MIL GRACIAS EDUARDO!

Me has solucionado la vida.

Entre que he empezado hace nada con Glide y que me está costando adaptarme a pensar en tablas…

Mil gracias de verdad!

1 Like