Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

[Added] Breadcrumb Title

Information about updates, news, Code Library
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

[Added] Breadcrumb Title

Unread post by admin »

There's a new field in the nuBuilder Form: Breadcrumb Title. This field was also present in v.3.
Breadcrumb Title.png
Breadcrumb Title.png (14.4 KiB) Viewed 234 times
It accepts a Text or SQL statement who's result can act as a descriptive title for this record. It can also contain Hash Variables.

If separated by |, the first part is used for existing records, the second part for new records.

Example: #not_title#|New

Explanation: Th Hash Cookie (an object on the form) #not_title# is shown on the form for existing records and "New" for new records.

Previously, one had to write a JS code like:
Breadcrumb Title.png
Breadcrumb Title.png (14.4 KiB) Viewed 234 times

Code: Select all

if (nuIsNewRecord()) {
	nuSetTitle(nuTranslate('New'));
	nuEnable('sus_name'); 
}
else {
	nuSetTitle($('#sus_name').val());
}
Post Reply