I'm trying to design a new site with Joomla 2.5.6 (french translation installed), Phoca download 3.2.1 and Gallery Tree 3.1.2
I've created so far one empty category for all 2012 categories, but each time I'm clicking on the 2012 item in the module, I'm getting the following error message :
Not Found
The requested URL /component/phocadownload/category/3-2012 was not found on this server.
The goal is to have only subcategories in this category (and one for each year). but I've tried to add images to that category without any success.
I've not planned to create a menu and manually create a link to these emply categories. If the category contains a sub-category, this subcategory is working like a charm (correctly displayed, etc...)
The link given by the module is /component/phocadownload/category/3-2012 instead of /index.php/component/phocadownload/category/3-2012. The index.html is missing.
Have-I done something wrong in my setup ?
First of all: 2.5.19 or 3.2.3: you simply cannot use an old version or your site will be hacked - quickly!
Try adding a letter at the beginning of the alias text: I am guessing phoca is getting confused by the number-only alias, so use something like y2012 as an alias, your url will look like /3-y2012 which should be acceptable.
Related
I managed to get sub-categories showing on the category page with images, but now since updating 1.9.2.1 up to 1.9.2.4 it no longer works. I cant imagine what may have changed and haven't altered anything.
I followed this tutorial:
http://www.templatemonster.com/help/magento-listing-sub-categories-on-a-category-page.html#gref
Picture of it working in 1.9.2.1:
Picture of it not working in 1.9.2.4:
It's because you are loading a special block type in a cms block. You need to allow the block type catalog/navigation for it to display. It's a very easy fix though;
You can do this in admin, from;
system > permissions > blocks
Or directly in the database in table permission_block.
A prestashop website at version 1.4.1.4 was working with manufacturer.php file for manufacturer pages. The update to 1.6.0.6 unfortunatley deleted that file because it has been considered as deprecated (URL structure changed after CMS update).
One consequence is the change in the URL structure.
from:
url/manufacturer.php?id_category=6
to :
url/index.php?id_manufacturer=6&controller=manufacturer&id_lang=2
So now, the first URL structure is giving 404.
The problem:
In the old website, when the id_manufacturer is set to 0, the url returns a page containing a list of all manufacturers. When it is set to the id of a specific manufacturer, the url returns products of that specific manufacturer. With the new version, the results are the same EXCEPT for the id=0 (404 page). In other words, I cannot find what is id_manufacturer to return the list of manufacturers.
If I am not wrong, Prestashop gives id=0 by default to the page of manufacturers list? What is going wrong in your point of you?
It looks like I need to override ManufacturerController like in 'Home' category page not working after update. But please, do these overrides are only workarounds that might be broken in the next updates when core Prestashop team correct these mistakes (if they are mistakes).
Any insights are highly appreciated.
EDIT:
I am sorry, yesterday I maybe didn't clarify the point very well.
In fact the url is working for id=0 (it displays all parts of the page). But for where the list of manufactrurers should appear, I have "Il n'y aucun fabricant." even I have 80 manufacuturers in my database. Thanks again
There is no need of any override, I just tested it and with no id specified, or id=0, it gives the manufacturer list page on 1.6.0.6.
See this bit from that controller
if (Validate::isLoadedObject($this->manufacturer) && $this->manufacturer->active && $this->manufacturer->isAssociatedToShop())
{
$this->productSort();
$this->assignOne();
$this->setTemplate(_PS_THEME_DIR_.'manufacturer.tpl');
}
else
{
$this->assignAll();
$this->setTemplate(_PS_THEME_DIR_.'manufacturer-list.tpl');
}
So either of these
index.php?controller=manufacturer&id_lang=1&id_manufacturer=0
index.php?controller=manufacturer&id_lang=1
Should be working fine!
I have a problem. I bought an old domain name and I redirected all my content to it now.
So I have this category as example: http://www.formulawahad.com/category/news/ (or simply formulawahad.com/news/)
So any news link is like this: http://www.formulawahad.com/news/37329/
(My wordpress installed is not in the root - inside a folder).
Today, I got all the files from this domain which goes back to 2001. And Google found like 2000 errors. Now I want to upload them and make them available as they have a lot of backlink.
But the problem is the link of the old articles are like these:
http://www.formulawahad.com/news/090217_coulthard.htm
Or: http://www.formulawahad.com/news/080623_trulli.htm
So what do I do? create a "news" folder and place all html files in it? but then what will happen to my wordpress category formulawahad.com/news/?
I have the same problem with 2 more categories. So I need your help before I decide what to do.
Thanks a lot.
This is simple to get rid of those 2000 errors in google. In wordpress init() hook you have to make a redirect function. In databse add a table with old and new url,get url and search with old url and redirect it to new one.
I am new to Joomla and am trying to develop a module under 3.1. I managed to get the selected article ID and title in the module options but I don't know how to get the url to the ID, something similar to get_permalink(ID) in Wordpress.
You would want to run the url through JRoute to get the full url. You would also need to know how Joomla articles are usually built.
$url = JRoute::_('index.php?option=com_content&view=article&id='.$id);
This assumes that you have the id in the variable $id. For the rest of the url you would need to know the component you are calling (added as the option like above, Content manager is always com_content) and the view (which for an article is article). You can see the different views available for com_content by checking the file structure under /components/com_content/views/. Besides Article, you should see articles, categories, and category as well as a few other.
I'm trying to learn how to develop a Joomla component, according to this tutorial:
http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!1.6_-_Part_01
I'm on Part 4. My problem is that I build the component and zip it, then install. But Joomla adds -"component" word after my component's name, in folders and in menu item.
For example, let's say my component's name is "stack". So it's "com_stack". I build it that way, when I install it, folders in /components and /administrator/components are "com_stackcomponent". And the link under Components menu is "administrator/index.php?option=com_stackcomponent" So it doesn't open it.
I can manually change folders' names, but how to change the link under menu?
Or, how to solve it from the beginning?
Its doing that because you stopped at step 4 of 17 steps. A few steps later it explains how to properly name the component.
To fix the link in the menu, go to phpMyAdmin and search for "stackcomponent", then edit accordingly.
Unfortunately its not really a solution to your problem - I've not used Joomla 1.6 so don't know why it would be doing that.