Page 1 of 1

Editing the Page Title using WebYep

Posted: Tue Jan 05, 2010 4:59 am
by testing1
Question for Johannes.
Is it possible for the client to change the Page Title using WebYep. Something similar to this approach: http://forums.obdev.at/viewtopic.php?f=6&t=1413&p=5200&hilit=+keywords#p5200

Thanks!

Re: Editing the Page Title using WebYep

Posted: Mon Jan 11, 2010 11:21 am
by johannes
Yes, this is possible.

But to make sure the title is also displayed while in edit mode, I would use a somewhat different approach:

In the head section of the page
<title><?php echo webyep_sShortTextContent("Title", false); ?></title>

And somewhere in the page's body:
<?php if (webyep_bIsEditMode()) { echo "Page Title: "; webyep_shortText("Title", false); } ?>