Jump to content

Using Options in Repeater


SIERRA
 Share

Recommended Posts

I am using a options with in repeater as below.

Repeater is: normal_days

Options field inside repeater is : tables  Options are: table 1, table 2, table 3

To display them in front end I am using loop as below.But this display the values 3 times (like table 1, table 2, table 3,  table 1, table 2, table 3, table 1, table 2, table 3) 

foreach ($page->normal_days as $normal_day) {
    foreach ($normal_day->tables as $table) { 
            echo $table->title.",";
        }     
    }

Please suggest how can I fetch this

Thanks

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...