henri Posted April 11, 2018 Share Posted April 11, 2018 I made a php template with the following code // Show inscription, if any if(trim($page->inscr_nr) != "") { $content .= '<tr id="inscr_nr"><td class="label"><p>Inscriptionnr</p></td><td><p>'; $content .= $page->inscr_nr->title . '</p></td></tr>'; } In the backend I can fill the Inscriptionr ( a field inscr_nr that i added) BUT in the page only the text "Inscriptionnr" shows up, not the variable inscr_nr What is wrong with the code??? (by the way: inscr_nr is a text field) Link to comment Share on other sites More sharing options...
Sergio Posted April 11, 2018 Share Posted April 11, 2018 Like you said, $page->inscr_nr is a text field, not a repeater, so output its value directly, removing "->title": $content .= $page->inscr_nr . '</p></td></tr>'; 2 1 Link to comment Share on other sites More sharing options...
henri Posted April 11, 2018 Author Share Posted April 11, 2018 sergio Thanks thanks thanks.. just tried it and it works like it should. I didnt know why there was "->title ." in it, I copied it from some other text line (and that worked, I dont know the difference, but maybe that wasnt a text field??) Once again: thanksssss. 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