Support » Plugin: Connections Business Directory » Adding custom field to table

  • Resolved ceviz ms


    I would like to add a number filed to tables. Like player numbers. Prefix is useless for me but want to add it to somewhere else in the table. Also removing prefix from getNameBlock would be usefule as well.

    <table width="100%" border="0px" bgcolor="#FFFFFF" bordercolor="#E3E3E3" cellspacing="0px" cellpadding="0px" style="margin: 0; vertical-align: top;">
        	<td width="5%" align="right" style="vertical-align: inherit;padding-right: 5px;">PREFIX HERE</td>
            <td align="left" width="100%" valign="top" style="vertical-align: top;">
            <div style="float:left;">
            	<div style="float:left;"><?php echo $entry->getImage(); ?></div>
    			<div style="float: left; margin: 0 5px;">
    				<div style="margin-left: 10px;">
    					<span style="font-size:larger;font-variant: small-caps"><strong><?php echo $entry->getNameBlock(); ?></strong></span>
    					<?php $entry->getTitleBlock(); ?>
    					<?php $entry->getOrgUnitBlock(); ?>
    					<?php $entry->getContactNameBlock(); ?>
    				<?php $entry->getAddressBlock(); ?>

Viewing 1 replies (of 1 total)
  • Plugin Author shazahm1


    To remove the prefix (suffix too) from the name use this:

    $entry->getNameBlock( array( 'format' => '%first% %middle% %last%' ) );

    To show just the prefix:

    $entry->getNameBlock( array( 'format' => '%prefix%' ) );

Viewing 1 replies (of 1 total)
  • The topic ‘Adding custom field to table’ is closed to new replies.