Welcome to the nuBuilder Forums!

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

Bug in bread crumb?

Questions related to using nuBuilder Forte.
Post Reply
KEE
Posts: 14
Joined: Sat Feb 24, 2018 1:17 pm
Been thanked: 2 times

Bug in bread crumb?

Unread post by KEE »

Hi,

In nuBuilderPro I use bread crumb title, but there is no `sfo_breadcrumb_title` in the table `zzzzsys_form` and in zzzzsys_form.

Adding these field in the form and in the table solved the problem.
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Bug in bread crumb?

Unread post by admin »

KEE,

In nuBuilder Forte you can use nuSetTitle() inside a Form's Javascript to set a Breadcrumb's title.

http://wiki.nubuilder.net/nubuilderfort ... nuSetTitle

Any changes you make to the structure of any zzzzsys_ tables will get over written next time you run Update.

Steven
KEE
Posts: 14
Joined: Sat Feb 24, 2018 1:17 pm
Been thanked: 2 times

Re: Bug in bread crumb?

Unread post by KEE »

Thanks,
$r->sfo_breadcrumb_title in the function nuBredkrumbDescription() is atavism?

Code: Select all

function nuBreadcrumbDescription($r, $R){
	
	if($R 								== '')	{return $r->sfo_description;}		//-- Browse Form
	if($R 								== '-1'){return $r->sfo_description;}		//-- new record
	if(trim($r->sfo_breadcrumb_title) 	== '')	{return $r->sfo_description;}		//-- no breadcrumb
	
	$b		= nuReplaceHashVariables($r->sfo_breadcrumb_title);
	
	if(strtolower(substr(trim($b), 0, 6)) == 'select'){
		
		$t	= nuRunQuery($b);
		$r	= db_fetch_row($t);
		
		return $r[0];
	
	}

	return nuReplaceHashVariables($r->sfo_breadcrumb_title);
	
}
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Bug in bread crumb?

Unread post by admin »

KEE,

I'm not sure what you are saying.

Steven
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Bug in bread crumb?

Unread post by toms »

admin wrote:I'm not sure what you are saying.
Looking at the table zzzzsys_form, there is no "sfo_breadcrumb_title" in nuBuilder Forte. I this a remnant of nuBuilder Pro?

Code: Select all

   if(trim($r->sfo_breadcrumb_title)    == '')   {return $r->sfo_description;}      //-- no breadcrumb
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Bug in bread crumb?

Unread post by admin »

Guys,

Yes, sfo_breadcrumb_title has been removed from Forte - if that's what you are asking.

Steven
Post Reply