- Posts: 106
- Thank you received: 2
OS Property support center
featured agents module
- Jim
- Topic Author
- Offline
- Premium Member
-
Less
More
10 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
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 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
"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.
- Eduardo Caiza
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
9 years 9 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') ) );
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 9 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
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.
- Foma
-
- Offline
- Junior Member
-
9 years 3 months ago - 9 years 3 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???
<?php
if($item->phone != ""){
?>
<div class="phone"><?php echo $item->phone;?></div>
<?php
I understand here what phone to change???
Last edit: 9 years 3 months ago by Foma.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 3 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:
and replace by:
<?php
if($item->mobile!= ""){
?>
<div class="phone"><?php echo $item->mobile;?></div>
Good luck
Dam
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. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.