Author:
brendo
Version:
0.5.1
Released:
8 June 2011
Category:
Events

Description

Default Event Values

  • Version: 0.5.1
  • Author: Brendan Abbott
  • Build Date: 8th June 2011
  • Requirements: Symphony 2.2

Adds the ability to default values for your Events. This allows you to set a field's value while omitting the hidden field from your form markup. Values can be page parameters, excluding Datasources though as Events run before Datasources. You currently cannot set a default value for the ID of an Event due to a Symphony limitation.

Values can be added as defaults, which can be overridden by users, or can be made to override any value that is posted via the Frontend. Please note that other extensions that use the EventPreSaveFilter may change the values after this extension has done it's business.

How do I use it?

  1. Extract and install this extension to your /extensions folder

  2. While creating your events in the Event Editor, a new duplicator will appear after the Filter Options settings after you have created your event

  3. Save your event as normal and take a tequila shot, because tonight's going to be a good night.

Things to be aware of

  • Default values will not be added to the post-values Event XML
  • You cannot set the MAX_FILE_SIZE using this extension as the by the time it runs, it's already too late

What's changed?

0.5 (8th June 2011)

  • Custom Values now correctly override or work as defaults (both Event Editor and Frontend wise)
  • Fixed nasty error for creating new events (thanks alpacaaa)

0.4 (6th June 2011)

  • Ability to add custom Default Values

Repository

https://github.com/brendo/default_event_values

Discuss this Extension

Screenshot

screen-shot-2011-06-08-at-3.50.21-1307512235.png

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