felted Posted October 12, 2017 Posted October 12, 2017 Hello, I am new here and have a question Sorry for my bad english. how can I output the title from an Options Fieldtype inside a repeater? This is my Backend: And this is the code: // This site is a onepager $portfolio = $pages->get('/Portfolio/'); echo "title: ".$portfolio->repeater_portfolio[0]->Category_repeater1037->title; Unfortunately I cant get any output. Can anyone help me? Thanks, Felted
abdus Posted October 12, 2017 Posted October 12, 2017 You need to remove the id suffix. This one works in my setup // This site is a onepager $portfolio = $pages->get('/Portfolio/'); echo "title: ".$portfolio->repeater_portfolio->first->Category_repeater->title;
felted Posted October 12, 2017 Author Posted October 12, 2017 I have a lot of repeaters. So I need the suffix to identify the repeater.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now