EE 1
EE 2
VL File Generator

Developer

Viget Labs

3rd Party (Commercial)
Current Version: 1.2
Release Date: Aug 29, 2012

License Agreement

Buy Now!

$5.00
Qty:

Compatibility

  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Better Workflow
  • Matrix

Requirements

  • jQuery for the Control Panel

Categories

Extension

Tags

Need to load dynamic CSS or JSON faster? Let VL File Generator store your dynamic templates as flat files for quicker load.

The VL File Generator extension allows you to generate a static file based on the contents of a URL for each channel. The file is generated or updated any time an entry is added or updated in the channel.

Example

We have an EE template living at /work/case-studies that has the following code:

{exp:channel:entries
  channel=“work”
  dynamic=“no”
  status=“not closed”
}
  {if work_header_css}
      @media screen and (min-width: 960px) {
        {work_header_css}
      }
  {/if}
{/exp:channel:entries}

Where work_header_css is a textarea field to enter custom CSS for the entry.

We want to generate a CSS file that lives at /assets/stylesheets/case-stories.css so we can use an add-on like Minimee to combine and minify our CSS. With the VL File Generator, you can generate or update a static file any time an entry in the channel is created/updated.

But, you aren’t just limited to CSS, you can generate any filetype.

Installation

     
  1. Copy the “vl_file_generator” folder into the “third_party” folder in your ExpressionEngine installation.
  2. Log in to the control panel and navigate to Add-Ons -> Extensions.
  3. Click the “enable” link in the far right of the VL File Generator row.

Settings

     
  1. Enter the URL and File for each channel that you want to enable the file generator for. Use relative paths from the root of your site.
  2. Make sure the directory where you want to save the file is writable.

Hooks Used

If the add-on is an extension, and ties into ExpressionEngine's core files, it will use ExpressionEngine hooks. We are listing any hooks the add-on uses for developers to have an easier time locating other add-ons that they can reference for their own work.

  1. entry_submission_absolute_end
  2. delete_entries_loop

This entry was created August 2, 2012, 11:01 am.
This entry was last updated August 29, 2012, 12:26 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

1 Review:

mediapimp 08.03.12

Rating - {addon_rating_average}

This plugin is exactly what I have been needing. Works great and Viget Labs support is super fast and top notch.