Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

$nuConfigTitle

Questions related to using nuBuilder Forte.
Post Reply
ARWEN
Posts: 78
Joined: Thu Nov 01, 2018 6:01 am

$nuConfigTitle

Unread post by ARWEN »

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>
nac
Posts: 115
Joined: Tue Dec 12, 2017 11:28 pm
Location: Aberdeen, UK
Has thanked: 9 times
Been thanked: 12 times

Re: $nuConfigTitle

Unread post by nac »

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
ARWEN
Posts: 78
Joined: Thu Nov 01, 2018 6:01 am

Re: $nuConfigTitle

Unread post by ARWEN »

Neil,

while this works when a user is logged in the login page still shows nuBuilder4.
nac
Posts: 115
Joined: Tue Dec 12, 2017 11:28 pm
Location: Aberdeen, UK
Has thanked: 9 times
Been thanked: 12 times

Re: $nuConfigTitle

Unread post by nac »

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
ARWEN
Posts: 78
Joined: Thu Nov 01, 2018 6:01 am

Re: $nuConfigTitle

Unread post by ARWEN »

Thanks Neil, I'll give it a try.
nac
Posts: 115
Joined: Tue Dec 12, 2017 11:28 pm
Location: Aberdeen, UK
Has thanked: 9 times
Been thanked: 12 times

Re: $nuConfigTitle

Unread post by nac »

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
ARWEN
Posts: 78
Joined: Thu Nov 01, 2018 6:01 am

Re: $nuConfigTitle

Unread post by ARWEN »

Perfect, thanks.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: $nuConfigTitle

Unread post by admin »

Neil,

Back at cha!


Steven
Post Reply