help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Feature requests for JEM 2.0 - initial public release

Search-module

Re: Search-module

9 years 9 months ago - 9 years 9 months ago
#17825
just wanted to add a bit of extra info:
did replace the code for the radius as the code above was a bit off so hopefully that's fine for me. it's been replaced by the code that Google is using for the Store Locator

In the attached image you'll see the module (very basic) at the moment. Am having a menu-item with eventslist view and for me it doesn't make much sense to point to a category view so
- removed the link (href) from the category.
- removed the href from category within the event-view
- removed the filters in the eventslist view, this as for me the user is able to select things in the module so no need to have a seperate filter in the views.

did add code like below to eventslist model and module. things like:
Code:
$mod_search_address = $app->getUserStateFromRequest('com_jem.module.'.$itemid.'.address', 'mod_search_address', '', 'string'); $this->setState('filter.mod_search_address',$mod_search_address); $mod_search_radius = $app->getUserStateFromRequest('com_jem.module.'.$itemid.'.radius', 'mod_search_radius', '', 'string'); $this->setState('filter.mod_search_radius',$mod_search_radius); $mod_search_category = $app->getUserStateFromRequest('com_jem.module.'.$itemid.'.category', 'mod_search_category', '', 'string'); $this->setState('filter.mod_search_category',$mod_search_category);
did name it module so it's a bit clear to me where that variable comes from.

did had a problem that the module was appearing in the event-view and didn't want that to happen so did tweak the module a bit. by adding a check for the view it's appaering as wanted. it's code like below
Code:
$app = JFactory::getApplication(); $jinput = $app->input; $view = $jinput->get('view'); $id = $jinput->getInt('id'); if ($view == 'event') { return false; }

ah well, it's still a request but wanted to give some information :)
(and am still experimenting)

Attachments:

Last edit: 9 years 9 months ago by Bluefox.

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

Re: Search-module

9 years 9 months ago
#17826
I have to say I like the idea, but I agree with Hoffi it sould be 'bonded' to the content area and not separated in a module. Otherwise users will misplace it on irrelevant pages.
Well, at least we can not avoid it that way.

But on top of the content page.. I'm pro!

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

Re: Search-module

9 years 9 months ago
#17827
, but I agree with Hoffi it sould be 'bonded' to the content area and not separated in a module. Otherwise users will misplace it on irrelevant pages.
thnink it's indeed better to skip this feature as it's to specific.

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

Re: Search-module

9 years 9 months ago - 9 years 9 months ago
#17828
uhm, if anyone wants to see what i meant then you can visit this link

Be aware that that site is in development but as i do think it's good to show things live the link is there so you can take a look. It's using JEM 3.0.7 but it's a modified version and will be modified a lot more. (also be aware that i'm no webdesigner)

//
one thing to keep in mind: when using set_locale ALL it will also interfere with numbers so be sure when using numbers be sure that the values are correct. did see that when setting the language to "dutch" it was replacing dots with comma's and as a result there were no results (obviously).

so did use a setlocale(LC_NUMERIC, 'en_US'); to deal with it.
Last edit: 9 years 9 months ago by Bluefox.

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

Re: Search-module

9 years 9 months ago - 9 years 9 months ago
#17848
to add:

Not sure if it's due to the module but am experiencing "document expired" problems when hitting the back button. maybe because the module is using Post too so will expirement a bit with Ajax, or maybe i'll strip the module and move it to the view's.

another things that can be tried is to change the form "post" method to "get" so yep there are some things to be done.
Last edit: 9 years 9 months ago by Bluefox.

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

Time to create page: 0.451 seconds