Recently Browsing 0 members
No registered users viewing this page.
By Guy Incognito
I added some custom styles to the CKeditor menu bar using the example mystyles.js and the PW tutorial. This worked fine for fields when editing on the frontend. But none of our custom styles showed in the backend editor dropdown unless we edited the core copy of mystyles.js in wire/modules.
Is this correct behaviour, a bug or a mistake on my part? Tried clearing cache, logging in/out etc but the backend ignores our custom styles in the site/modules path.
I'm combining two PW sites into one, Site A into Site B.
At each step, I did it bit by bit as the 'all at once' approach failed.
First, I exported all the fields from Site A and imported into Site B. Any field types not supported by import/export, eg FieldtypeOptions I manually recreated. All good.
Next I exported all the templates from Site A and imported them into Site B and copied across their associated template files. All good.
Finally I exported the pages I needed from Site A into Site B - again, bit by bit to ensure it all went smoothly.
From the admin side, it all looked and worked perfectly.
Front end was a totally different story. All existing pages in Site B worked as expected. NONE of the pages imported from Site A displayed. They all ended in a redirect loop with no errors in the PW logs or Tracy Debugger.
After some trial-and-error, I finally got it working with:
- create a new template in Site B admin with no associated template file and just a title field
- import the fields from the imported Site A template into the newly created template (both on Site B)
- copy the Site A php template file into a new file that matched the new PW Site B template name and save in Site B site/templates
I can deal with the above workaround. Just curious to know if I did something wrong or if the template import/export feature is problematic?
While the export/import was a slow process, turned out the front end redirecting issue was unrelated. For reasons unknown, all templates marked as HTTPS only were the ones redirecting, ie all templates from Site A. Finally solved it by changing the $config->https to true in site/config.php
Now the pages display correctly as https whether the template forces the issue or not.
i am receiving and error whenever I try to run my processwire on localhost,
-- -- Table structure for table `field_fieldset_meta_end` -- CREATE TABLE `field_fieldset_meta_end` ( `pages_id` int(10) UNSIGNED NOT NULL, `data` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `field_fieldset_meta_END` -- CREATE TABLE `field_fieldset_meta_END` ( `pages_id` int(10) UNSIGNED NOT NULL, `data` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; anyone ?
whenever I make a new database and upload it there, database get imported without errors.