Author:
TwistedInteractive
Version:
1.1
Released:
6 April 2011
Category:
Workflow

Browse

Description

Packages

What does this extension do?

When developing a website, you most of the time end up with doing the same stuff over and over again. After all, each client wants a news module, an image gallery, a contact form, a faq, etc.

This extension allows you to create a package of such a module (like a news module for example), save it as a ZIP-file with an installation script, and import it on another site to have the same logic there.

So how does this is any different of the Export Ensemble extension?

Simple: Where export ensemble creates an ensemble of a complete site, a package is a small part of a site you wish to re-use in other projects as well. It allows you to select sections, data-sources, events, utilities, pages, extensions and other resources (such as your own JavaScript- or CSS-files) to get packaged into one ZIP file, ready to be included in any other Symphony site of yours...

But wait! Doesn't that cause issues with mismatching ID's and stuff?

Nope! The installer script is not a SQL-script, but a PHP-script with various logic in it. For example:

  • When creating sections and fields, it keeps track of the ID's of the newly created items, so it works correctly in your database.
  • It uses some pretty clever regular expressions to change the datasource- and event-files to make sure any references to old section- and field-ID's are changed to their new ones.
  • It does some magic to the newly added pages so parenting is staid intact.

Sounds risky, are you sure it's fool-proof?

To be honest: I'm not entirely sure ;-). I did some tests with pages, sections, datasources, etc. and that worked pretty well. But if you want to help, please inform me with any bugs you might encounter with this one.

Repository

https://github.com/TwistedInteractive/packages

Discuss this Extension

Compatibility

2.7.10 Unsure
2.7.9 Unsure
2.7.8 Unsure
2.7.7 Unsure
2.7.6 Unsure
2.7.5 Unsure
2.7.4 Unsure
2.7.3 Unsure
2.7.2 Unsure
2.7.1 Unsure
2.7.0 Unsure
2.6.11 Unsure
2.6.10 Unsure
2.6.9 Unsure
2.6.8 Unsure
2.6.7 Unsure
2.6.6 Unsure
2.6.5 Unsure
2.6.4 Unsure
2.5.4 Unsure

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details