Recently Browsing 0 members
No registered users viewing this page.
Hello There fellow PW gurus.
I am trying to make a field show as open only if the field is filled out with at string.
for example: "my_styles.css" and stay hidden if the field is empty.
The field in question is of type "text" if that helps.
And i put in the "show this field only if"
because the field name is "css_filename"
But no mather what the field is closed because i have choosen it as "closed" as default.
What am i doing wrong?
i am running PW 3.0.83 Dev.
I'm working on my tempate to provide an AMP (Accelerated Mobile Page) template version.
But there is a problem with CKEditor. AMP needs width AND height attributes to all images. Then when I instert an image in my body field from CKEditor the source code juste includes width attributes.
How can I add automaticaly height width CKEditor ? Or if not possible width CKEditor, how can I dow from URL image to get height image ?
Thanks in advance
One of my clients is having problems with the alignment of images with captions within the body. The problem is once the image has been inserted into the body and we try and move it by drag and drop this only moves the image and leaves the caption behind.
Anyone know of a fix for this so the whole figure is moved rather than just the image?
By Robin S
A plugin for CKEditor fields in ProcessWire CMS/CMF. Adds a toolbar button for changing the case of all headings or selected headings between sentence case and title case.
This is useful when you are copy/pasting text from a document that has been supplied with an inconsistent or incorrect system of capitalisation.
The plugin folder must be named "headingscase" – if needed, rename the folder to remove the "-master" suffix added by GitHub. Copy the "headingscase" folder to /site/modules/InputfieldCKEditor/plugins/
In the field settings for each CKEditor field that you want to activate the plugin for:
Check the "headingscase" checkbox at Input > Plugins > Extra Plugins Add "HeadingsCase" at Input > CKEditor Settings > CKEditor Toolbar Usage
To change the case of all headings, click the toolbar button with no text selected in CKEditor. The first click applies sentence case; the second click applies title case.
To change the case of a single heading, select all or part of the heading in CKEditor before clicking the toolbar button.
There can be situations where the results need manual correction: proper names, acronyms, etc.
Exceptions for small words
Certain short English prepositions and conjunctions (three letters or less) are excluded from capitalisation when title case is applied. Edit the exceptions array in the plugin source code if you want to customise this list of exceptions.
This is the new topic for the Settings Factory module (formerly known as Settings Train).
I'm not sure what versions this is compatible with, it has only been tested on 3.x branch;
it is not namespaced, and i'm not sure if namespacing is necessary or a benefit for this module; if any namespace or module gurus can weigh in on this, let me know. I'm also not sure if there needs to be a minimum php version;
I have one live site using this now and it's working great; But before submitting to mods directory, would be better if there was some additional testing by other users.