OS Property support center

featured agents module

  • Jim
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 4 months ago #54669 by Jim
featured agents module was created by Jim
Hi,

As the featured agents module is used in 2 different places on the same page, i would like to have an alternative layout for one of them.

In most modules in the advanced tab is a drop-down option to select an alternative layout/template, however in this mode its missing.

Is there a way to turn this feature back on ?

Thanks in advance

Jim

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #54735 by Mr. Dam
Replied by Mr. Dam on topic featured agents module
Hi Jim,
"Featured agents" is simple module, it doesn't have complex feature as you want
Thanks
Dam
The following user(s) said Thank You: Jim

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #67130 by Eduardo Caiza
Replied by Eduardo Caiza on topic featured agents module
Hi, I use on module ospropertysearch the next code
I Add this code on mod_ospropertysearch.xml file
<fieldset name="advanced">
<field
name="layout"
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC" />
<field
name="moduleclass_sfx"
type="text"
label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC" />
<field
name="owncache"
type="list"
default="1"
label="COM_MODULES_FIELD_CACHING_LABEL"
description="COM_MODULES_FIELD_CACHING_DESC">
<option
value="1">JGLOBAL_USE_GLOBAL</option>
<option
value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
</field>
</fieldset>
And I modified the next code on mod_ospropertysearch.php file
require( JModuleHelper::getLayoutPath( 'mod_ospropertysearch', $params->get('layout', 'default') ) );

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #67134 by Mr. Dam
Replied by Mr. Dam on topic featured agents module
Hi Eduardo,
Your solution is only solved one part related to Parameters form of module. You need to have the module's layout in folder "tmpl" of module first.
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago - 8 years 2 months ago #76196 by Foma
Replied by Foma on topic featured agents module
Hello Dang Thuc Dam! Please, please tell me how to do module instead of the phone to show mobile phone!!!
<?php
if($item->phone != ""){
?>
<div class="phone"><?php echo $item->phone;?></div>
<?php
I understand here what phone to change???
Last edit: 8 years 2 months ago by Foma.

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago #76374 by Mr. Dam
Replied by Mr. Dam on topic featured agents module
Hi,
You can change Phone by Mobile by this way:
Code:
<?php if($item->phone != ""){ ?> <div class="phone"><?php echo $item->phone;?></div>

and replace by:

<?php
if($item->mobile!= ""){
?>
<div class="phone"><?php echo $item->mobile;?></div>

Good luck
Dam
The following user(s) said Thank You: Foma

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan