How do I overide the page title

This is a discussion on How do I overide the page title within the Net Objects Fusion forums in Application Servers & Tools category; Hi, I'm using PHP to populate information on my pages from a mysql database, and everything is working fine. However I have some pages that are generic and the content is determined by passing variables from one page to another. The problem I have is I want to use these variables and some php code to generate the page title rather than use the one generated by NOF, but it seems that when the html is generated by NOF you cant override the title output automaticaly being generated is there a way around this without having to edit the generated ...

Go Back   Application Development Forum > Application Servers & Tools > Net Objects Fusion

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-17-2006, 02:19 PM
Roy
Guest
 
Default How do I overide the page title

Hi,
I'm using PHP to populate information on my pages from a mysql database, and
everything is working fine. However I have some pages that are generic and
the content is determined by passing variables from one page to another. The
problem I have is I want to use these variables and some php code to
generate the page title rather than use the one generated by NOF, but it
seems that when the html is generated by NOF you cant override the title
output automaticaly being generated is there a way around this without
having to edit the generated html in a text editor before uploading to the
server ?

Roy


Reply With Quote
  #2  
Old 10-17-2006, 03:04 PM
Guest
 
Default Re: How do I overide the page title

Roy said:

| I'm using PHP to populate information on my pages from a mysql
| database, and everything is working fine. However I have some pages
| that are generic and the content is determined by passing variables
| from one page to another. The problem I have is I want to use these
| variables and some php code to generate the page title rather than
| use the one generated by NOF, but it seems that when the html is
| generated by NOF you cant override the title output automaticaly
| being generated is there a way around this without having to edit
| the generated html in a text editor before uploading to the server ?


Just enter <? echo variable ?> in the title box (see attached gif). Replace the word "variable" with the name of the variable you wish to show... and you will have to already have queried the table holding what you wish to use. Page titles on the gotFusion site are all database elements.

--
Mike - (a.k.a. turtle) - gotFusion Extended Support

For more helpful information visit
http://www.gotfusion.com

View the entire gotFusion tutorial list
http://www.gotfusion.com/menu/tuts_by_topic.cfm

--

Reply With Quote
  #3  
Old 10-17-2006, 03:04 PM
Chuck «BeyondFusion»
Guest
 
Default Re: How do I overide the page title

Roy,

Your page title is determined by you in Site View in the page properties. (select page, press F3)

The default is the page file name, but you can change that.

You can insert PHP code in there if you wish to set the page title dynamically by echoing a variable.

The code for the variable itself would go at the start of the page. You do that by adding the code to the Layout HTML.

--
Chuck Joslin - Team NetObjects
BeyondFusion.com - Your Fusion Community
www.beyondfusion.com

Register domain names at www.awavedomains.com

"Roy" <buying@merseyscene.co.uk> wrote in message news:eh36r1$aqt4@flsun90netnews01.netobjects.com.. .
> Hi,
> I'm using PHP to populate information on my pages from a mysql database, and everything is working fine. However I
> have some pages that are generic and the content is determined by passing variables from one page to another. The
> problem I have is I want to use these variables and some php code to generate the page title rather than use the one
> generated by NOF, but it seems that when the html is generated by NOF you cant override the title output automaticaly
> being generated is there a way around this without having to edit the generated html in a text editor before uploading
> to the server ?
>
> Roy
>
>



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:40 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.