Contact map
- Posted by romica (1) Offline
Hi,I have install the Contact Map module,it is working ok but I have one questions regarding modification . I want to add three fields after the phone number with additional information (Bank account number , open time,etc).
Can you help me please.
Thank you in advance.
9 years 4 months ago #1
by romica
Can you help me please.
Thank you in advance.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Hi, please open file /root/modules/mod_contactmap/mod_contactmap.xml
at lines 198 - 202 you will see this code :
change that to :
then open file :
root/modules/mod_contactmap/mod_contactmap.php
at lines 36 you will see this code :
change that to
then open file :
root/modules/mod_contactmap/tmpl/default.php at lines 258 you will see this code :
change that to
9 years 4 months ago #2
by TemplatePlazza
at lines 198 - 202 you will see this code :
<field name="phone"
type="text"
default=""
label="MOD_CONTACTMAP_TELEPHONE_LABEL"
description="MOD_CONTACTMAP_TELEPHONE_DESC" />
change that to :
<field name="phone"
type="text"
default=""
label="MOD_CONTACTMAP_TELEPHONE_LABEL"
description="MOD_CONTACTMAP_TELEPHONE_DESC" />
<field name="bank"
type="text"
default=""
label="Bank" />
<field name="open_time"
type="text"
default=""
label="Open Time"/>
<field name="misc"
type="text"
default=""
label="Misc" />
then open file :
root/modules/mod_contactmap/mod_contactmap.php
at lines 36 you will see this code :
$phone = $params->get('phone');
change that to
$phone = $params->get('phone');
$bank = $params->get('bank');
$open_time = $params->get('open_time');
$misc = $params->get('misc');
then open file :
root/modules/mod_contactmap/tmpl/default.php at lines 258 you will see this code :
<?php echo $s_address.$s_phone; ?>
change that to
<?php echo $s_address.$s_phone; ?>
<li><?php echo $bank; ?></li>
<li><?php echo $open_time; ?></li>
<li><?php echo $misc; ?></li>
Please Log in or Create an account to join the conversation.