Editing the Page Title using WebYep

General discussions about WebYep
Post Reply
testing1
Rank 1
Rank 1
Posts: 23
Joined: Tue Oct 13, 2009 5:25 pm

Editing the Page Title using WebYep

Post by testing1 » Tue Jan 05, 2010 4:59 am

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!

johannes
Objective Development
Objective Development
Posts: 815
Joined: Fri Nov 10, 2006 4:39 pm
Contact:

Re: Editing the Page Title using WebYep

Post by johannes » Mon Jan 11, 2010 11:21 am

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); } ?>

Post Reply