#1
|
|||
|
|||
![]()
Using the kinabalu template, I have the address items set to show in one row. However, I'd like to change it to show in two rows like this:
Address City, State ZIP Where can I make this change in the code? Also, I want to change the detail listing so it doesn't display the email address, but instead just gives a text link like "Click to Email". I can do this in the default template, but don't see it in the kinabalu template. Thanks. |
#2
|
|||
|
|||
![]()
You can make the changes wrt to the address here:
/components/com_mtree/templates/kinabalu/sub_listingDetails#.tpl.php where # is the listing details style you are using. Re: E-mail You can override the output by editing the field type class at MT's back-end: Mosets Tree > Custom Fields > Manage field types > E-mail (core) under PHP Class Code field. |
#3
|
|||
|
|||
![]()
I see the email field management area... but I don't know what to put in the PHP field to replace the visible email address with just the word "Email". Please give a little more direction for that one.
Regarding the address display, I was already in that file, but don't see what to modify to move the address display into two lines. Also, need to remove the , comma that displays in between the state and the zip. Don't see anywhere in this file to modify that either. These kinabalu template files are a lot different from the m2 template files. More direction would be much appreciated. Thanks. |
#4
|
|||
|
|||
![]()
Re: E-mail
Use these codes for E-mail's PHP Class Code: PHP Code:
|
#5
|
|||
|
|||
![]()
Re: Address
Open up the listing details template file. Depending on the details style you are using, they maybe one of these: /components/com_mtree/templates/kinabalu/sub_listingDetails.tpl.php /components/com_mtree/templates/kinabalu/sub_listingDetailsStyle2.tpl.php /components/com_mtree/templates/kinabalu/sub_listingDetailsStyle3.tpl.php /components/com_mtree/templates/kinabalu/sub_listingDetailsStyle4.tpl.php /components/com_mtree/templates/kinabalu/sub_listingDetailsStyle5.tpl.php /components/com_mtree/templates/kinabalu/sub_listingDetailsStyle6.tpl.php /components/com_mtree/templates/kinabalu/sub_listingDetailsStyle7.tpl.php near line 31 - 44 Replace these codes: PHP Code:
PHP Code:
|
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
custom field to core field | nandoronsisvalle | Discussions, Troubleshooting and Problems | 0 | 05-28-2009 08:21 PM |