The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 49 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue Apr 14, 2009 5:44 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Apr 14, 2009 5:36 pm
Posts: 21
Location: inverness-shire
Hi I have been referred to this forum by the support team for the template I am using as it is linked to the core mod_search

Here's my dev URL: http://79.170.44.101/yellowcherrydigital.co.uk/

The problem is that regardless of what page you when you use the search on it re-loads elements of the front page with the results

I'd really appreciate any ideas on how to fix this

Thanks!


Top
 Profile  
 
PostPosted: Tue Apr 14, 2009 5:53 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Thu Feb 05, 2009 10:27 am
Posts: 309
the search results will be reloaded in the component area of the template other modules in the front page will be displayed as parent items ..


Top
 Profile  
 
PostPosted: Tue Apr 14, 2009 6:07 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Apr 14, 2009 5:36 pm
Posts: 21
Location: inverness-shire
thanks but I don't understand how I can stop the front page modules from appearing as well as the search results?

_________________
http://www.yellowcherrydigital.co.uk


Top
 Profile  
 
PostPosted: Tue Apr 14, 2009 9:40 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Thu Feb 05, 2009 10:27 am
Posts: 309
in administration you find extensions in the top menu inside it module management then find the search module and edit its parameters


Top
 Profile  
 
PostPosted: Fri Apr 24, 2009 7:43 am 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 13, 2009 12:54 pm
Posts: 65
I don't understand,
the Search Module is responsible for displaying the search form box. The menu assignment parameters inside, are about where to desplay the search box not the search results.


Top
 Profile  
 
PostPosted: Fri Apr 24, 2009 9:19 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Thu Aug 18, 2005 8:43 pm
Posts: 7846
Location: New York
Are you positive those modules are not set to all?

_________________
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.


Top
 Profile  
 
PostPosted: Fri Apr 24, 2009 11:34 am 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 13, 2009 12:54 pm
Posts: 65
I found a solution to this. I post this solution here in case somebody else needs it.

1. Go to Menu Manager and create a new Menu.
2. Create a new Menu Module and assign it to the Menu you have created. (Module Parameters>Menu Name). Keep this module NOT enabled.
3. Add a new menu item to your menu. Choose the Search menu Type for it. Save it.
4. After you have created the search menu type item, go to Menu Item's edit page and copy the Link.
5. Paste this Link into the file /httpdocs/modules/mod_search/tmpl/default.php

line 3, replace:
<form action="index.php" method="post">

with this

<form action="menu_item_copied_link" method="post">


It's working ok for me.


Top
 Profile  
 
PostPosted: Fri Apr 24, 2009 11:37 am 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 13, 2009 12:54 pm
Posts: 65
mcsmom wrote:
Are you positive those modules are not set to all?


It is set to All in my website, because I want the search box to be visible in all pages, including frontpage. But I want the search results to be shown in a different page, not frontpage.


Top
 Profile  
 
PostPosted: Sat Apr 25, 2009 1:19 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Thu Aug 18, 2005 8:43 pm
Posts: 7846
Location: New York
IF the modules on frontpage are set to all, then they are goingto show on all pages.

_________________
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.


Top
 Profile  
 
PostPosted: Sat Apr 25, 2009 12:27 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 13, 2009 12:54 pm
Posts: 65
I think that we are talking about different things. Maybe my english are too bad and you have not correctly understood what is my problem. Anyway thanks for your replies


Top
 Profile  
 
PostPosted: Sun May 03, 2009 8:37 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 9:32 pm
Posts: 8
Location: Zagreb, Croatia
I believe Yellow Cherry experienced the same problem as me. I have an an extra module on the front page, and when search results are displayed (no matter from which page the search was initiated), the contents of this module are displayed below them.

Is there a way to prevent this?


Top
 Profile  
 
PostPosted: Sun May 03, 2009 9:59 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 9:32 pm
Posts: 8
Location: Zagreb, Croatia
I tried something along the lines of what ktsixit suggested.
In the templaate override (I am using a template built on top of Beez) I changed the file ../mod_search/default.php as follows:

Line 6 before: <form action="index.php" method="post" [...]

Line 6 now: <form action="index.php?option=com_search&amp;view=search&amp;Itemid=53" method="post" [...]

This did the trick, now the search results are displayed on a separate page, i.e. the front page modules are not displayed any more.


Top
 Profile  
 
PostPosted: Mon May 18, 2009 5:56 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Mon May 15, 2006 2:21 am
Posts: 489
Location: The magical land of Iowa
I suspect the problem brought up here in relation to mod_search output has to do with the limited direction the module's form gives for output (action="index.php"), and perhaps in combination with some alternative third party menu modules or complex, multi-menu sites this will cause search results to be displayed on the home page, not the search page/a page created by making a menu item/component link to com_search.

if you have this problem, do NOT copy dkaraman's modification since it is overly specific and refers page output to a menu item with ItemID 53.

All you need is to make the form action point to index.php?option=com_search&amp;view=search

_________________
On the web since 1995. 495 posts in the old Mambo forum. Under the hood with Wordpress, Joomla, and Drupal since 2006. Many more platforms before and since.

http://www.newlocalmedia.com
http://www.twitter.com/newlocalmedia


Top
 Profile  
 
PostPosted: Wed May 20, 2009 10:41 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Jul 20, 2006 9:07 am
Posts: 113
I am having this issue as well. I tried the ktsixit trick but so far it did not work for me (am I missing out something?).
I don't know what dkaraman is talking about when he writes "In the template override". What/where is it? I'd like to try his trick but I don't know what he is refering to.

Pretty annoying issue.

_________________
http://www.el-sphere.com


Top
 Profile  
 
PostPosted: Wed May 20, 2009 12:20 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Mon May 15, 2006 2:21 am
Posts: 489
Location: The magical land of Iowa
ktsixit's answer doesn't apply for the search module results output. Look up "Joomla template overrides" online and do some reading. If you still can't make sense of it, post again here. The basic concept is that Joomla 1.5 extensions separate their layout in a file/folder structure like this:
/modules/mod_search/tmpl/default.php

This is the file that controls search module html output

If, under your active template folder, you create a file/folder structure like /templates/TEMPLATENAMEl/html/mod_search/default.php then this second default.php will be used to override the one in /modules/mod_search/tmpl/default.php. You can copy the core module's output/template file and modify it this way. One benefit of this is that when you upgrade Joomla, your overrides still work--as opposed to changing the core files themelves which will be overwritten in a standard upgrade.

_________________
On the web since 1995. 495 posts in the old Mambo forum. Under the hood with Wordpress, Joomla, and Drupal since 2006. Many more platforms before and since.

http://www.newlocalmedia.com
http://www.twitter.com/newlocalmedia


Top
 Profile  
 
PostPosted: Wed May 20, 2009 1:19 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Jul 20, 2006 9:07 am
Posts: 113
Thank you dpk. I just read an article about "How to override the output from the Joomla! core". Interesting. Now I understand the solution proposed by dkaraman. Unfortunately it dosen't work for me either.
My problem is the following:

If I run a search, the search results will load WITH two unwanted modules: a frontpage slideshow and a frontpage 'latest news' module.
I would just like the search results to load in a page WITHOUT these two modules. Both modules are only asigned to the homepage menu.

_________________
http://www.el-sphere.com


Top
 Profile  
 
PostPosted: Wed May 20, 2009 2:07 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Jul 20, 2006 9:07 am
Posts: 113
OK. It worked. Case closed. Thanks for the help!

_________________
http://www.el-sphere.com


Top
 Profile  
 
PostPosted: Thu May 21, 2009 9:15 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu May 21, 2009 4:34 pm
Posts: 11
I have read DPK's wiki article but I'm still lost. I am having the same problem with search results appearing with front page modules. I only want search results and criteria to appear not the front page mods. I need to know clearly step by step what code the code is, what code must be changed, which file this code can be found, and what directory this file is located so that I can resolve this on my own. I'm very sure others are having similar problems with this search mod.
Thanks


Top
 Profile  
 
PostPosted: Tue Jul 21, 2009 8:26 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Nov 07, 2007 6:22 pm
Posts: 8
See http://www.johncrumpton.com/joomla-sear ... -template/


Top
 Profile  
 
PostPosted: Tue Sep 01, 2009 3:50 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jul 09, 2007 5:34 pm
Posts: 21
ktsixit wrote:
I found a solution to this. I post this solution here in case somebody else needs it.

1. Go to Menu Manager and create a new Menu.
2. Create a new Menu Module and assign it to the Menu you have created. (Module Parameters>Menu Name). Keep this module NOT enabled.
3. Add a new menu item to your menu. Choose the Search menu Type for it. Save it.
4. After you have created the search menu type item, go to Menu Item's edit page and copy the Link.
5. Paste this Link into the file /httpdocs/modules/mod_search/tmpl/default.php

line 3, replace:
<form action="index.php" method="post">

with this

<form action="menu_item_copied_link" method="post">


It's working ok for me.


Thank you....


Top
 Profile  
 
PostPosted: Mon Oct 12, 2009 5:45 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jun 30, 2008 9:52 pm
Posts: 20
Hey ktsixit,

That totally worked for me! Thanks!


Top
 Profile  
 
PostPosted: Sat Dec 12, 2009 3:03 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri May 23, 2008 9:57 pm
Posts: 1
Location: NYC
it can also result from a conflict with SEF extensions like sh404SEF. In my case some of the above solutions didn't work, though coincidentally did on other sites I manage. To solve this issue I set the sh404SEF configuration to skip the search component, you may also need to go to global configurations and click save once for the changes to take place - good luck!


Top
 Profile  
 
PostPosted: Wed Jan 20, 2010 10:43 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Apr 11, 2007 1:43 pm
Posts: 7
Hi,

I have a similar problem (not quite sure is it exactly the same, and therefore decided to post it here rather than staring a new thread...)

Set-up:
- 2 different templates: one is assigned to frontpage only and the other one is a default.
- search module is published on all pages.

Problem:
Search results are always displayed in a “weird pattern”

1. Regardless of where I start the search (either on frontpage or any other see: img_022.jpg) the results are first displayed, what appears to me, as if they are displayed using a template for Frontpage (see attached screenshots img_020.jpg).

2. Now - when I perform a new search on the result page for example just by hitting “Search” button (with the same keyword see: img_020.jpg)

3. This time however the results are displayed, what appears to me, as if they are displayed using a template for Default template (see screenshot: img_021.jpg)...

Additional comment: I also tried solution suggested by "dpk" by replacing “index.php” with "index.php?option=com_search&amp;view=search" in copied file structure under the Default template. Unfortunately it did not work out for me – the results are behaving exactly as described above...

Any suggestions? Thank you in advance and with all the best wishes...


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Wed Jan 20, 2010 11:48 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Thu Aug 18, 2005 8:43 pm
Posts: 7846
Location: New York
Make a hidden menu link to search and assign the template and modules that you want to it. You don't need to do any of the other pasting etc.

_________________
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.


Top
 Profile  
 
PostPosted: Wed Jan 20, 2010 7:10 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Apr 11, 2007 1:43 pm
Posts: 7
Hi,

thanks for the prompt response...

I spent some time trying to figure out how it may work. I tried every possible combination that I could imagine and did not get it work. So next I read plenty of different posts on "hidden menu" links and tricks and still do not get it....

So here is what I did:

1. Created new menu "Hidden" in Menu Manager, Now I had 2 menues: Main and Hidden
2. Created new menu item "Test" and set the type of the menu item to "search"
3. In order to assign anything to it I had to publish it. So I did
4. Next assigned existing "Search" module to Hidden Menu -> Test
5. Tested search - and nothing had changed, it behaved like before.

Next I unpublished Hidden menu and lost search module at front end...

I must be completely lost and on wrong tracks ????!!!!

Could you please help me out here?

Thank you for your patience and help...


Top
 Profile  
 
PostPosted: Thu Jan 21, 2010 1:42 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Apr 11, 2007 1:43 pm
Posts: 7
Hi,

Meanwhile I got it fixed. At least it behaves consistently.

Solution was simple (the one that has been suggested above):
- edited file: "../modules/mod_search/tmpl/default.php"
- line 3: "index.php"
- replaced by: "index.php?option=com_search&view=search"

I tested it out and can say that "override" did not work for reasons unknown to me.

1. Kept the original "default.php" "../modules/mod_search/tmpl/default.php"

2. Replicated the file structure from "../modules/mod_search/tmpl/"
at path: "/../templates/mytemplate/html/mod_search/tmpl/"

3. Edited "default.php"
- line 3: "index.php"
- replaced by: "index.php?option=com_search&view=search"

4. Repeated it for the other template

5. Search behaved still as I mentioned above.

So it looks to me as if the "override" just didn't work.

Any comments?

with all the best wishes...


Top
 Profile  
 
PostPosted: Tue Apr 06, 2010 9:39 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jul 08, 2009 1:38 pm
Posts: 28
wagn0270 wrote:
it can also result from a conflict with SEF extensions like sh404SEF. In my case some of the above solutions didn't work, though coincidentally did on other sites I manage. To solve this issue I set the sh404SEF configuration to skip the search component, you may also need to go to global configurations and click save once for the changes to take place - good luck!


This worked for me thank you.


Top
 Profile  
 
PostPosted: Thu Jul 15, 2010 5:40 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Apr 07, 2009 6:27 am
Posts: 130
Location: Tampa, FL
mcsmom's post seems to be the most logical. Looking forward to trying it.

_________________
JJ Spelman
http://www.j2studio.com
FaceBook: http://www.facebook.com/j2studio


Top
 Profile  
 
PostPosted: Wed Jul 28, 2010 10:24 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Jul 28, 2010 10:17 pm
Posts: 1
I just updated my joomla version and I lost the patch, but then I tried just to add a menu item that links to the search page "index.php?option=com_search&view=search" (Search>Search>Search) and somehow the Search Module is linking itself to this menu item. Now the results are shown on the same page that the menu item is using, they are no longer shown mixed with the Front Page, I can also control which other modules will be shown there.

Seem that the problem is solved, at least for me :)


Top
 Profile  
 
PostPosted: Tue Aug 10, 2010 2:13 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Aug 10, 2010 1:56 am
Posts: 20
Location: Brazil
ktsixit wrote:
I found a solution to this. I post this solution here in case somebody else needs it.

1. Go to Menu Manager and create a new Menu.
2. Create a new Menu Module and assign it to the Menu you have created. (Module Parameters>Menu Name). Keep this module NOT enabled.
3. Add a new menu item to your menu. Choose the Search menu Type for it. Save it.
4. After you have created the search menu type item, go to Menu Item's edit page and copy the Link.
5. Paste this Link into the file /httpdocs/modules/mod_search/tmpl/default.php

line 3, replace:
<form action="index.php" method="post">

with this

<form action="menu_item_copied_link" method="post">


It's working ok for me.



Thanks alot man ! Saved me hours of work and google searchs :D . I own you that !

_________________
Curso de Joomla 2.5 - Treinamento online em vídeo aulas para iniciantes em Joomla.
http://cursos7.com.br/joomla_2_5.php


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 49 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group