Jump to content

Text doesnt show


henri
 Share

Recommended Posts

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

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

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...