Home > Modules >
Example: Video Embed for YouTube/Vimeo
Module Class Name
Use upper and lowercase, like this: TextformatterVideoEmbedFor admin themes or site profiles, make this the same as the title, but with no spaces.
A short description of what this module does (max 1 paragraph). No markup or links.You can enter a detailed description later if you want to.
Current Module Version
Example: 1.0.2If your project is hosted at GitHub, this version number will be automatically kept up-to-date (once per day, or whenever you submit this form).
Categories (check all categories that apply)
ProcessWire Version Compatibility
Check all versions this module is known to be compatible with.
All of these URLs are required before your module will be published in the directory. If you have not yet posted a forum thread about your module in the ProcessWire forums, please do so now.
Project URL (use GitHub URL if available)
Download URL (preferably a link directly to a ZIP file)
Forum Thread URL (in the ProcessWire forums)
If your project is hosted at GitHub, your README file will be automatically displayed with your module listing. If you want to provide additional information beyond that, or if your project is not hosted at GitHub, please complete the Extended Module Description and/or Instructions fields below. In these fields, you may optionally use BBCode for formatting. For example:
[b]bold[/b] [i]italic[/i] [u]underline[/u] [url=http://domain.com]link text[/url][code]Code Example[/code] [img]http://domain.com/image.jpg[/img] [list] [*]Entry 1 [*]Entry 2 [/list]
To use it, extract the attached zip file into your /site/modules/ directory and check for new modules in the ProcessWire Admin area, then install the module.
Once installed, go to configure the module and, instead of this configuring anything for you, you can use the drop-down lists to build stylesheet and script code to place in your templates, grabbing a list of any stylesheets and scripts it finds in the /site/template/styles/ and /site/templates/scripts/ directories respectively.
It's more of a helper than anything else, but it should take the guesswork out of configuring Minify for your site.
[*]This module contains a third-party library - [url="http://code.google.com/p/minify/"]Minify[/url] - which is subject to its own license (a copy is included in the attached zip file). I've left the module in-tact including its unit test files so there are more files than are necessary, but this will make it easier for me to upgrade the module if/when they release updates to that code.
[*]This module doesn't insert any code into your templates automatically - I think copying and pasting the code it currently outputs to the screen is more useful/configurable for more situations.
[*]It's worth using even if you only have one CSS or JS file as it will compress CSS files by about 80% and JS files by quite a lot too, plus since it handles caching on the server-side and does its own checks of the files it is serving (plus it's a dynamic URL), you can always be sure that it will serve the latest version of a CSS file (no more CTRL+F5 to show the new styles if your browser decides to cache it.
[*]You can change the /site/modules/Minify/min/config.php as you could if you were using Minify as a standalone script - tweak cache paths (default is your server's cache path) and other advanced settings here.
[*]v0.0.2 - now produces code that includes paths derived by ProcessWire at run-time so paths will be fine on localhost and live servers, removing potential issues when pushing a site live.
[*]v1.0.0 - bumped this up to a major version number since there appear to be no issues with the initial versions to speak of. Also implemented yellowled's input field suggestion (looks much better and easier to select for copy and paste purposes) and turned off autoload at ryan's suggestion.
[*]v1.0.1 - now recusrively searches for files inside subfolders under the scripts and styles directories using PHP 5's built-in iterator classes
[*]v1.0.2 - pull request from teppo - https://github.com/Notanotherdotcom/Minify/pull/1
Instructions (optional, how to install and use this module)
If left blank, ProcessWire's standard module installation instructions will be shown.
Author's Forum Name (1-word per author, as it appears the ProcessWire forum)
This is so that we can link with your forum profile. If there are multiple authors, separate each by a space. If an author name actually has a space in it, then replace the space with a hyphen. If you don't have an account in the forum, you can create one here.
When you created this module page, you were asked to select an email address and password to authenticate future edits. Please enter them below. If you lost your password for this module, you can retrieve it here.
Password Please note that these passwords are not encrypted! Choose something you've never used before and won't ever use elsewhere.
Go to the forums
Follow us on Twitter
ProcessWire.com is powered by Amazon Web Services
with servers managed by Perago Solutions.
ProcessWire Open Source CMS
© 2020 by Ryan Cramer Design, LLC
• Contact Us