felted Posted October 12, 2017 Share 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 Link to comment Share on other sites More sharing options...
abdus Posted October 12, 2017 Share 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; Link to comment Share on other sites More sharing options...
felted Posted October 12, 2017 Author Share Posted October 12, 2017 I have a lot of repeaters. So I need the suffix to identify the repeater. Link to comment Share on other sites More sharing options...
abdus Posted October 12, 2017 Share Posted October 12, 2017 Nope. You dont have to. Link to comment Share on other sites More sharing options...
felted Posted October 13, 2017 Author Share Posted October 13, 2017 Thanks for you help. Felted Link to comment Share on other sites More sharing options...
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