Prestashop: how to stop CMS editor from redirecting after save - prestashop

In Prestashop, it is so annoying that after editing and saving a CMS page (in the BO), I am automatically redirected to the CMS main page. If I want to edit again, I have to click on "edit" again and it gets really repetitive.
Is there any way to alter the admin/tabs/adminCMS.php so that saving edits does NOT redirect me to the CMS main list page?
Any help would be much appreciated.

Hello Jay Na? Which version of PrestaShop are you using? In 1.5 there is a feature called "Save and Stay" in which you will not be redirected to the main page.

thank you for the reply. I'm using Prestashop 1.4.9, so I didn't have that functionality. Someone on Prestashop forum let me know the solution:
Go to admin directory/tabs and open AdminCms.php. About line 295 find and delete or comment out
Tools::redirectAdmin($currentIndex.'&id_cms_category='.(int)$cms->id_cms_category.'&conf='.(int)($cms->id ? 3 : 4).'&token='.Tools::getAdminTokenLite('AdminCMSContent'));
and add
Tools::redirectAdmin($currentIndex.'&id_cms='.(int)$cms->id.'&updatecms&token='.Tools::getAdminTokenLite('AdminCMSContent'));
Works perfectly

Related

Magnific Popup Wordpress

Magnific Popup Wordpress giving me a bit of a headache at the moment (3days) trying to open a php page called (find.php) in an iframe, which contains a form and other data off the same site from a button id is ping, it just will not happen for me.
In prettyPhoto on html5 easy to do, any help will save my brain, thanks in advance
Chris
Sorry for the late reply.
The solution is you can change your WordPress plugin and install the "WP Post Popup".
I hope you can easily solve your problem from here.

Drupal print all pages as pdf

I have a requirement to provide some functionality where a specific user can hit a button and export all the pages in the site to pdf in one go. I am aware they can do one page at a time, but this could be time consuming navigating the whole site, so I need a solution to do it programmatically..
Thanks in advance!
Have you thought of using the Views PDF module?
https://drupal.org/project/views_pdf

How to use the Featured Item slider 2.0 in Orchard CMS

I am very new to orchard CMS... i am trying to make a site in orchard CMS as this is my first site in orchard... i am facing a fair bit of problem and hindrances to over come... my background of the CMS for creating websites is wordpress/PHP....
but now there in this project i have a problem for the slider in the home page! how could i implement a slider in the home page... after searching a bit i have found to use the featured image slider.. i have tried to implement it... i have installed the module and made the featured group... now MY PROBLEM IS WHERE I CAN ADD THE IMAGES IN THE SLIDER... AS THE FEATURE ITEM FROM THE MENU ONLY SHOW THREE FIELDS HEADLINE,SUB-HEADLINE, AND LINKURL...
kindly let me know where do i can add the images in this slider and show them on the home page of my site....
Thanks alot in advance....
After hell of the search i have got the solution for that purpose... i am elaborating my answer step wise so that the new guys like me should understand that without an inconvenience...
normally orchard CMS uses nivo slider bydefault... if you want to use other sliders follow the same path as pasted below...
1: if you have download the Orchard CMS there will be a Jquery function in the layout.cshtml and the jquery file will also be linked in the script tag, pointing to the package of Jquery in Js or anyother folder...
2: Get the name of the div for which the Jquery is pointing to... normally the name will be "slider".... Copy that name and paste it in your home from CMS... but make sure to keep the name of the div same as the Jquery function narrates which is ("slider").
3:Link your images in the Div...
and browse the site in the browser and enjoy the slider...
I have a fantastic tutorial on pepfry.com for this issue. I have a complete tutorial where I show you all the steps to successfully install the 'Featured Item Slider' with screenshots.
I also have a video on YouTube where you can see the Image slider working successfully.
Regards!
Sumesh M.S

Flattr button only shown after page reload

I've followed the instructions in here to add an embedded flattr button to my site but it's only being shown after reloading the page. This is the page: http://nipanipa.com/en/donations/new. Actually, if you visit that url directly, the button will be shown but if you visit it throught the "Donate" link in the header it will not! I get this behaviour in both Firefox and Chromium.
What am I missing? Probably this has something to do with my poor knowledge of javascript... :S
Thanks a lot!!
Your website (or framework if you are using one) is bundling all javascripts in to one neat package that is only loaded on the first page load. The flattr javascript is automatically triggered onLoad, but unless you are actually on the donate page during the initial page load, there will be no flattr button to initialize.
One way of solving this is to call FlattrLoader.setup() somewhere on the Donation page.
But since you are only interested in having one Flattr button for one url there is a much easier way to add it.
Remove all Flattr related code from your source code and then use the embed tool to generate the button specific html/javascript and paste that code where you want the button to appear.
Hope this helps :)

How to edit prestashop back office product listing page

I want to change the layout of prestashop back office product page.
So can anyone tell me which file to change so that I can modify this existing layout?
I don't know which page you want to edit exactly, but when you go to that page in your backoffice, like:
http://www.example.com/admin123/index.php?tab=AdminAttributesGroups
The admin123 is variable to your installation, but the ?tab=AdminAttributesGroups referes to the backoffice page you are on. These pages are located in /var/www/admin123/tabs in this case it's /var/www/admin123/tabs/AdminAttributesGroups.php
I found the solution.... Here is what I did
Added content.tpl in under adminxxyy/theme/theme_name/template/controller/products
Which showed me content of my content.tpl
Create a new module, register the hook and send that info via hook to content.tpl.
Use hook name in content.tpl like {hook h='displayProductMyWay' mod='blockcustom'}.