Auto Scrolling image Gallery

Certified Associate Developer

Hi All,

          I have a requirement that to display  gallery of  images that needs to be automatically scrolled  .

Is there any possibilities for this requirement?

                   

  Discussion posts and replies are publicly visible

Parents
  • Whilst you couldn't have an auto-scrolling gallery, you could use the interface refresh capability to cycle through a set number of images.

  • 0
    Certified Associate Developer
    in reply to Stewart Burchell

    I am unable to iterate the array . can you please explain a bit more?

  • 0
    Certified Senior Developer
    in reply to Divya

    a!localVariables(
      local!index:1,
      local!pictures:{
        cons!SR_CARD3_223425722,
        cons!SR_FREE_BLEEDING_CC0_PIXABAY_MYRIAMS_FOTOS_191216
      },
      local!seletedPicture:index(local!pictures,local!index,cons!SR_CARD3_223425722),
      {
        a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                a!imageField(
                  labelPosition: "COLLAPSED",
                  images: {
                    a!documentImage(
                      document:cons!SR_LEFT,
                      link: a!dynamicLink(
                        saveinto: {
                          a!save(
                            target: local!index,
                            value: local!index-1,
                          )
                        },
                        showWhen: local!index>1
                      )
                    ),
                  },
                  size: "LARGE",
                  isThumbnail: false,
                  style: "STANDARD"
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!imageField(
                  labelPosition: "COLLAPSED",
                  images: a!documentImage(
                    document: local!seletedPicture
                  ),
                  size: "LARGE",
                  isThumbnail: false,
                  style: "STANDARD"
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!imageField(
                  labelPosition: "COLLAPSED",
                  images: a!documentImage(
                    document:cons!SR_RIGHT,
                    link: a!dynamicLink(
                      saveinto: {
                        a!save(
                          target: local!index,
                          value: local!index+1,
                        )
                      },
                      showWhen: local!index<count(local!pictures)
                    )
                  ),
                  size: "LARGE",
                  isThumbnail: false,
                  style: "STANDARD"
                )
              }
            )
          }
        )
      }
    )


    super quick and ugly try




Reply
  • 0
    Certified Senior Developer
    in reply to Divya

    a!localVariables(
      local!index:1,
      local!pictures:{
        cons!SR_CARD3_223425722,
        cons!SR_FREE_BLEEDING_CC0_PIXABAY_MYRIAMS_FOTOS_191216
      },
      local!seletedPicture:index(local!pictures,local!index,cons!SR_CARD3_223425722),
      {
        a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                a!imageField(
                  labelPosition: "COLLAPSED",
                  images: {
                    a!documentImage(
                      document:cons!SR_LEFT,
                      link: a!dynamicLink(
                        saveinto: {
                          a!save(
                            target: local!index,
                            value: local!index-1,
                          )
                        },
                        showWhen: local!index>1
                      )
                    ),
                  },
                  size: "LARGE",
                  isThumbnail: false,
                  style: "STANDARD"
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!imageField(
                  labelPosition: "COLLAPSED",
                  images: a!documentImage(
                    document: local!seletedPicture
                  ),
                  size: "LARGE",
                  isThumbnail: false,
                  style: "STANDARD"
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!imageField(
                  labelPosition: "COLLAPSED",
                  images: a!documentImage(
                    document:cons!SR_RIGHT,
                    link: a!dynamicLink(
                      saveinto: {
                        a!save(
                          target: local!index,
                          value: local!index+1,
                        )
                      },
                      showWhen: local!index<count(local!pictures)
                    )
                  ),
                  size: "LARGE",
                  isThumbnail: false,
                  style: "STANDARD"
                )
              }
            )
          }
        )
      }
    )


    super quick and ugly try




Children