Joomla search results - joomla

I am facing this issue that the search results page shows all the modules that I only show in the homepage. This happen after I deleted most of the sample data that comes with joomla. Before I deleted here is the url I got from the search:
localhost/my_site/index.php/using-joomla/extensions/components/search-component/search?searchword=cars&searchphrase=all
And now:
localhost/my_site/index.php/component/search/?searchword=cars&searchphrase=all&Itemid=643
So somehow there is a link between any sample menu item or category and the search page, how can I get back or recreate the same behavior so the search results page don't show the homepage modules?
Thank you

Ok, I found it, i had to set itemID (menu id) in the search module.

Related

Why is Joomla 1.5 creating different URLs for the same articles on different pages?

I'm trying to understand the way Joomla (1.5) creates article URLs.
I created a module to display news. The module displays all the news, with correct URLs on the homepage mysite/component/content/article/xxxxxxxx.
I created a module to display the last article on the homepage and a button, see all news, linking to a menu item displaying a page with all the articles. The url is: mysite/news.
The problem is the URLs to the article are generated incorrectly as mysite/news/xxxxxxxx and they give a 404. How can I get the URLs to be the same as on the homepage?
Update: The new URL doesn't give a 404, it points to the same page as the menu, I mean mysite/news/ is the same as mysite/news/xxxxxxxx, it shows the list of all the articles and not the article itself
To create proper SEF URLs, two steps are needed:
Be sure to have a menu entry for each article in the list. You don't have to display that menu, it just has to exist. The menu entry's alias is used to build the SEF URL.
When creating links to such an article, be sure to include the parameter Itemid=n in the URL, with n being the id of the menu item. In article texts, use this structure:
index.php?option=com_content&view=article&id=23&Itemid=125
Joomla! will convert that into a SEF URL automatically, and it will still work, when you for some reason turn SEF off.
If you generate links in a module, the URL is not converted automatically. You have to call JRoute::_() for that:
echo JRoute::_('index.php?option=com_content&view=article&id=23&Itemid=125');

Joomla! what is the link to the new page I just created?

I have been tasked with updating a Joomla site. I have been working with existing pages for a while, but now I had to create a new page.
I just created a new page using Joomla. But I can't find what the URL to that page is. Also, the pretty urls are enabled. But I don't know how to create a pretty url for the page I just created.
I even tried adding the id to /index.php?Itemid= in the url and doesn't work.
Seems like something like this would be self-explanatory, but I have been looking around in the options and the menus and googling for the answer and I can't find it anywhere.
As far as I know, you need to attach an article to a category to view it.
You can assign the article to a category. After that open an article from that category and replace the text after the last "/" in url with the alias of your article.
You can also assign the article to a category that is linked to a menu item. that way you will be able to see the article link in the menu.
You may later remove the article from the category.

Product moved from Cat to Sub-Cat not showing up on site search

In Admin I created new subcats for my CyberPower category. When I search for BH1500 on our site for the product I get the whoops page. If I go step by step through our site to get to the product it works just fine. Why is the URL missing, or nor showing the link properly?
http://www.unipower.com/products/ups/cyberpower/bh-series.html, is what shows up.
However this
http://www.unipower.com/products/ups/cyberpower/bh-series/BH1500.html
should be the right link.
New to Magento, help me if you can!!
All you should need to do is run a reindex and flush your cache! Basically, your catalog URL rewrites are incorrect or out of date.
System > Index Management - Best to select all elements, choose the Reindex Data action and click the Submit button.
System > Cache Management - Flush Magento Cache

Magento add to cart on search result page 2< creates endless loop

On 1.7.0.2 Magento search result page creates endless loop if trying to add product to cart.
This only happens when you are browsing search result pages 2 or more.
Something to do with the URL?
"catalogsearch/result/index/?p=2&q=searchquery"
Any ideas?
i had a very similar issue where add to cart buttons worked everywhere except from the search page.
i managed to fix the issue by increasing the permissions on the js folder, not sure if this will fix your issue as well.

Joomla 2.5 Display Category Page Only via Menu

I want to display the Category page in Joomla 2.5 only via links in the menu.
Is there a way to disable the display of a Category page by taking the id and the name of the category from the url? For e.g., if the Animals category's id is 3, http://example.com/animals/cat/3-animals will load the Animals Category page, resulting in dublicate content with http://example.com/animals!
You can't disable the Joomla long URLs without messing up the rest of the site. What you can do rather than disabling it is to use 301 redirects on any pages that are indexed in Google so that the listings get updated and no longer appear in Google's index. Just google site:example.com to see everything they have indexed.

Resources