RSS
Home Forum v3
Welcome, Guest
Please Login or Register.    Lost Password?

Menu Item - Sates + Localities
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Menu Item - Sates + Localities
#2542
Menu Item - Sates + Localities 1 Year, 8 Months ago Karma: 0
Hello,
first I would like to thank the developer for this great components.

I'm trying to adapt some options to my need, but I'm blocked to add a menu item by states or localities.

Actually in List Properties Layout, we can select:
- Types
- Categories

I would like to add 2 more select box:
- States
- Localities

Can you please orient me to which files control the menu item.

I found
/views/elements/view.html.php for the form once select.
but didn't find the way to add the both select buttons and interact with url.

Best regards,
Jack
dreamond
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2787
Re: Menu Item - Sates + Localities 1 Year, 8 Months ago Karma: 0
Hi Jack,

Did you find a solution for this issue?

If yes, please send it to me.

I think that is the most important feature that is missing at this time.

Thank you in advance,
Radu
radu
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2788
Re:Menu Item - Sates + Localities 1 Year, 8 Months ago Karma: 1
A solution:
this is with State, but is similar with Locality

modify 2 files:

in administrator/components/com_properties/elements/state.php (the other file is locality.php)

found at the end of file the similar follow lines and reemplace with:

Code:


JHTML::_('behavior.modal', 'a.modal');

// $html = "\n".'<div style="float: left;"><input style="background: #ffffff;" type="text" id="'.$name.'_name" value="'.htmlspecialchars($article->title, ENT_QUOTES, 'UTF-8').'" disabled="disabled" /></div>';

// $html .= "\n &nbsp; <input class=\"inputbox modal-button\" type=\"button\" value=\"".JText::_('Select')."\" />";

// $html .= '<div class="button2-left"><div class="blank"><a class="modal" title="'.JText::_('Select an State').'"  href="'.$link.'" rel="{handler: \'iframe\', size: {x: 750, y: 475}}">'.JText::_('Select').'</a></div></div>'."\n";

$html .= "\n".'<input id="'.$name.'_id" name="'.$fieldName.'" value="'.(int)$value.'" />';




second file:

components/com_properties/views/properties/tmpl/default.xml

after of:
Code:

<param name="tid" type="type" default="" label="Select type" description="An type" />



add
Code:


<param name="sid" type="state" default="" label="put id of State" description="An state" />



Regards
pichichus14
Expert Boarder
Posts: 80
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2793
Re:Menu Item - Sates + Localities 1 Year, 8 Months ago Karma: 59
www.com-property.com/down/GenerateJoomlaMenuLocalities.rar

WARNING!!
Use in test server.
upload files, in left menu have link "Generate Joomla menus"
click, if is ok, go joomla menus
find new menu 'propertieshidden'
first menu will be "Countries States and Localities"

test please
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3166
Re:Menu Item - Sates + Localities 1 Year, 7 Months ago Karma: 0
Hi pichichus14,

You are a savior. Thank you very much.

This is what I was looking for.

Regards.
radu
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3401
Re:Menu Item - Sates + Localities 1 Year, 7 Months ago Karma: 0
Hi pichichus14,

I have one problem with this script hack.
It does not show any meta data. No title, no description, no keywords.

Do you have any idea, how can I also add this info?

Many thanks in advance.
Radu
radu
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3410
Re:Menu Item - Sates + Localities 1 Year, 7 Months ago Karma: 1
but, without the hack: the page show any meta data?
I think that this problem is not generate by hack, you must see php file when the component show the list of properties, is uncommon.
Regads
pichichus14
Expert Boarder
Posts: 80
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5216
Re:Menu Item - Sates + Localities 1 Year, 5 Months ago Karma: 0
This hack : www.com-property.com/down/GenerateJoomlaMenuLocalities.rar
generate errors in breadcrumbs , how it can be resolve this littel defect??
Enzo
Expert Boarder
Posts: 123
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Italy Birthday: 11/08
The administrator has disabled public write access.
 
Go to topPage: 1