$nuConfigTitle

Questions related to using nuBuilder Forte.

$nuConfigTitle

Postby ARWEN » Thu Dec 20, 2018 10:55 pm

Although I assigned a value to $nuConfigTitle in nuconfig.php, index.php still displays 'nuBuilder 4'. What am I doing wrong?

Code: Select all
$nuConfigTitle  = "myCRM";


nuconfig.php outputs <title>nuBuilder 4</title> instead of <title>myCRM</title>
ARWEN
 
Posts: 48
Joined: Thu Nov 01, 2018 2:31 pm

Re: $nuConfigTitle

Postby nac » Fri Dec 21, 2018 5:31 am

Hello Arwen,

I just use something like this in the JavaScript of the home form.

Code: Select all
document.title = "myCRM";


It also means you can change the title to something different on other forms.

Neil
nac
 
Posts: 46
Joined: Wed Dec 13, 2017 7:58 am
Location: Aberdeen, UK

Re: $nuConfigTitle

Postby ARWEN » Fri Dec 21, 2018 6:20 pm

Neil,

while this works when a user is logged in the login page still shows nuBuilder4.
ARWEN
 
Posts: 48
Joined: Thu Nov 01, 2018 2:31 pm

Re: $nuConfigTitle

Postby nac » Sat Dec 22, 2018 12:23 am

Arwen,

I think that could be because the line
Code: Select all
<title>nuBuilder 4</title>

is hard-coded in index.php (at line 22). You could edit this (but you would need to make the same edits after any updates).

Neil
nac
 
Posts: 46
Joined: Wed Dec 13, 2017 7:58 am
Location: Aberdeen, UK

Re: $nuConfigTitle

Postby ARWEN » Wed Jan 02, 2019 5:35 pm

Thanks Neil, I'll give it a try.
ARWEN
 
Posts: 48
Joined: Thu Nov 01, 2018 2:31 pm

Re: $nuConfigTitle

Postby nac » Thu Jan 03, 2019 6:08 am

Arwen,

Since my last reply, index.php has been updated so that the variable $nuConfigTitle is used. That line is now:
Code: Select all
<title><?php echo $nuConfigTitle;?></title>

and so no editing will be required.

Thanks to Steven for this and Happy New Year to the nuBuilder team.

Neil
nac
 
Posts: 46
Joined: Wed Dec 13, 2017 7:58 am
Location: Aberdeen, UK

Re: $nuConfigTitle

Postby ARWEN » Thu Jan 03, 2019 2:54 pm

Perfect, thanks.
ARWEN
 
Posts: 48
Joined: Thu Nov 01, 2018 2:31 pm

Re: $nuConfigTitle

Postby admin » Fri Jan 04, 2019 12:33 pm

Neil,

Back at cha!


Steven
admin
Site Admin
 
Posts: 3132
Joined: Mon Jun 15, 2009 9:53 am


Return to General