Topic: how to insert php code to pages

i want to edit my 404 template

i got this code inside the page

404 Page Not Found

We're sorry but the page you are looking for doesn't appear to exist!

Please go back in your browser, or click the link to return to website.

website.com

but doesn't work here


regards bernte

Re: how to insert php code to pages

you can edit it in "pages -> edit 404 pages"

but remember, you have to make a "error.template.php" or "404.template.php" first. and then you select "settings", and change your template.

3 (edited by bernte 2013-11-17 14:57:56)

Re: how to insert php code to pages

Hi Aryandhani...

thats all i have done before... i think you have missunderstood my question.

i try to explain again!

i click on Pages -> Edit 404 Page

there i insert

404 Page Not Found

We're sorry but the page you are looking for doesn't appear to exist! Please go back in your browser, or click the link to return to website. website.com

then i go to frontend and call a link which doesn't exist!
the 404 template works but not the php-part of

my sourcecode from the frontend looks like this

404 Page Not Found

We're sorry but the page you are looking for doesn't appear to exist! Please go back in your browser, or click the link to return to website. website.com

all i want to know how to echo the site-url inside Pages (without typing manually)

Re: how to insert php code to pages

ahh.. yes. sorry, I apparently misunderstood big_smile

if that's the problem. I still do not understand hehe

Re: how to insert php code to pages

Why don't you just write this native PHP code?