Recently Browsing 0 members
No registered users viewing this page.
Reference: PW 3.0.111 and uikit3 based site using the Regular-Master profile.
I am trying to add a field that provides a dropdown menu but there are no Options or Selector(s) type available - see attached image of field types available.
The following reference under the docs does not appear to be applicable any more:
I can't see how to achieve this. Any assistance would be appreciated.
I am trying to get some extra css-file into my admin templates. I managed to modify my admin.php to this:
<?php namespace ProcessWire; require($config->paths->adminTemplates . 'controller.php'); echo "<link rel='stylesheet' type='text/css' href='" . $config->urls->templates . "css/admin.css'>"; By doing so, the css <link> is added to the very end of each parsed admin-html. (right AFTER the closing </body> tag.)
That causes some trouble. e.g. the page tree is not displaying any more. Although, other pages are working - like the edit form of a page.
My question: is there a correct way of adding my extra css to the admin area?
Thanks for you help!
I need a field with realtime percent calculation (without page save) with values from other fields in admin template. I think about jQuery with onChange methods on corresponding fields but this is not clear for me how to do this in module. Any help with some advice or example will be highly appreciated!
Thanks in advance!
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.