| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 -- |
|
#3
| |||
| |||
| 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 > > |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.