Is there a way to show the sitemap at 404 page in cs-cart(4.5.x)? What I did is copied the sitemap.tpl code inside the 404.tpl, but it just renders empty container without links. I think the sitemap controller should be called somehow to populate the sitemap but I have no idea how to do it. May be u can give me any hint?
So to call sitemap controller when the 404 renders I had to hook up fn_control function by using before_dispatch(http://www.cs-cart.com/api#312352) and to copy the sitemap controller code inside that hook function. That's all.
Related
I'm working on a project based on the October CMS, with Laravel 5.0.35.
I'm trying to override the 404 page.
The current 404 page is located here:
modules\cms\views\404.php
... and is served by:
modules\cms\classes\Controller.php
As you can see, both the controller and the view are inside modules. This folder is a dependency folder and its content should not be altered. The best approach I see here is to use an override.
You can see the October CMS structure here:
https://github.com/octobercms/october
Do you have any ideas or suggestions on how to achieve this?
Thanks.
'If the theme contains a page with the URL /404 it is displayed when the system can't find a requested page.'
http://octobercms.com/docs/cms/pages#404-page
Essentially just create a page withe the URL /404 and it will use this by default. The same can be done for an error (500) page, just use /error.
I know you can create and customize 404 pages directly within the Magento backend. However, I am wanting to completely use my own 404 customized page and was wondering how to do this.
I have created a 404.html file and added it in the root of my magento installation. However, I don't see in the .htaccess file how magento currently is redirecting the 404 to the CMS 404 page. How can I have it redirect to my custom 404 html file instead without causing some sort of never ending redirect loop?
Thanks!
404 page set from backend
System>Configuration>General>Web>Default Pages > YOU CAN FIND CMS No Route Page which will be default Magento CMS PAGE 404
for custom 404 page you have to create new cms page and you have to call your CUSTOM.phtml file in your new cms page after then go to the
System>Configuration>General>Web>Default Pages >CMS No Route Page > you can see your cms page and set your page as 404 page
I know it is quite an old question, but I've found the answer in this tutorial: http://alanstorm.com/magentos_many_404_pages
It explain very well how to make really custom 404 error page.
I have my custom magento plugin. I have the image slider in the product page. I want to call ths particular template(abc.phtml) file via ajax in the product page. Can somebody help me in this?
Thanks
Create such code in your controller (which will render AJAX call) action:
$html = Mage::getSingleton('core/layout')->createBlock('core/template')
->setTemplate('your_module/abc.phtml')->toHtml();
$this->getResponse()->setBody($html);
I removed *catalogsearch_advanced_index* section from catalogsearch.xml. Now I get empty page catalogsearch/advanced/index/
How to set 404 error for this page then?
Remove the controller. Without the xml layout, the controller will still render an empty page. In order to get Magento to not respond to that url, you have to remove the controller. Or maybe you could use a redirect.
I'm looking for example of overriding cms controller for noRoute action. I'm trying to make my 404 page send me an email when it happens.
I have followed this tutorial and did everything exactly as written but nothing happens.
I googled some more and found this which also doesen't work for me.
My Magento version is 1.5.0.0-rc1.
Could anyone give me any link to some tutorial or example code? Thank you very much!
I've did some try/error research and managed to create my module. After a lot of search I found that Magento uses custom No-route controller for 404 pages (this page is GOLD: http://alanstorm.com/magentos_many_404_pages). This can be set as following:
Under "System -> Configuration -> Web -> Default Pages" I've changed the setting for Default No-route URL which now points to my custom made controller.
I've basically copied contents from the existing CMS IndexController and added my own logic (sending email and showing search form). That's it, it works form me.
Thanks to everyone.
mXperts skuroute extension - get it and edit the controller.
http://www.magentocommerce.com/magento-connect/mxperts/extension/1749/mxperts-skuroute