Add field in browse.php

In the browse.php I would like to add the field 'province' after 'country' field, but I don't know where to start.

Quote · 8 Jun 2010

Hello browse.php is customized file and don't have any of builder! I think you need a good programmer

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 8 Jun 2010

I tried to edit : templates/base/scripts/BxBaseBrowse.php

• to copy

// gen County section ;
$sCountrySection  = _genCountrySection( $this, $sCurrentKey );
if ( $sCountrySection ) {
$sVisibleParam = ( $this -> aParameters['country'] ) ? false : true;
$sCountrySection  =  _genSubDesignBox(
_genJsControlBox($sCountryCaption, 'country_section', $sVisibleParam),
$sCountrySection
);
}

• and rename to an other field

// gen Custom section ;
$sCustomSection  = _genCustomSection( $this, $sCurrentKey );
if ( $sCustomSection ) {
$sVisibleParam = ( $this -> aParameters['Custom'] ) ? false : true;
$sCustomSection  =  _genSubDesignBox(
_genJsControlBox($sCustomCaption, 'Custom_section', $sVisibleParam),
$sCustomSection
);
}

•• Copy the _genCountrySection function

•• and replace all County by Custom

 

After doing all of this, the Custom field doesn't appear in the browse section.

I'm I missing something ?

Thanks if someone answer

Quote · 6 Oct 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.