Page 1 of 1

Bug in bread crumb?

Posted: Sat Feb 24, 2018 2:11 pm
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.

Re: Bug in bread crumb?

Posted: Sat Feb 24, 2018 9:31 pm
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

Re: Bug in bread crumb?

Posted: Sun Feb 25, 2018 7:46 am
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);
	
}

Re: Bug in bread crumb?

Posted: Tue Feb 27, 2018 1:10 am
by admin
KEE,

I'm not sure what you are saying.

Steven

Re: Bug in bread crumb?

Posted: Tue Feb 27, 2018 5:07 am
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

Re: Bug in bread crumb?

Posted: Tue Feb 27, 2018 8:05 pm
by admin
Guys,

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

Steven