Support

Account

Home Forums Add-ons Flexible Content Field Using the same field twice

Helping

Using the same field twice

  • Let’s say I have a layout that corresponds to a section of my site. For example I make a layout called “3_images”. Let’s say I use this layout at the top of the page, then I use some layouts in between, but then I want to use “3_images” again toward the bottom. Do I have to make two separate layouts if I want to use the same layout non-consecutively? For example “3_images-1″ and 3_images-2”. This can definitely hamper flexibility down the road.

    Is there a way that I can get the first 3-images layout, such as:
    get_row_layout()[0]

  • are you talking about frontend or backend?
    and how did you decide to use or not use 3 images at top and bottom?

    it is possible to use first 3_image at top and again later.
    but as far as i know it would only work if you fill your own array/variable pool instead of echo it inside the while loop. and echo later from this filled array/variable.

    or if you use 2 times the same while loop with different if loops inside
    the one for top only with get_row_layout 3_images and a count that allows only 1 loop. and the normal while loop

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Using the same field twice’ is closed to new replies.