Nathan Gray
ecb972ca66
Etemplate now uses JSON instead of XML for templates on the client side.
...
XML files are parsed into JSON objects on the server, then sent as JSON.
Etemplate parses the JSON object on the client side instead of the XML file directly. This is supposed to be faster for IE.
2015-08-18 17:47:40 +00:00
Ralf Becker
3156134a31
remove double schema prefix "vfs://defaultvfs://default/path"
2015-05-27 12:15:36 +00:00
Ralf Becker
d40f41950b
fixed not run validation on server-side for templates included via template tag
2015-03-18 21:31:16 +00:00
Ralf Becker
387d5053dd
stop etemplate_widget_template::instance from returning a stdClass object for a not found template after content-expanding, leading to a fatal error in etemplate_widget line 338
2015-03-17 14:07:20 +00:00
Ralf Becker
55e931871e
mtime postfix for WebDAV has to use "?download=", as our WebDAV treats everything else literal
2014-10-13 12:15:30 +00:00
Ralf Becker
2eb9352f78
fixed error "template NOT found!", if template-name contains cache-buster
2014-03-17 17:12:02 +00:00
Ralf Becker
76cf4245e6
fix wrong download url
2013-12-05 22:46:31 +00:00
Ralf Becker
2479d85c77
search etemplates first under /etemplates in vfs and then in real filesystem, allows to overwrite templates on a per instance base, stylite.merge stream-wrapper can be used to mount templates editable into vfs
2013-12-05 21:06:35 +00:00
Ralf Becker
ef1679a899
allow to load template-set specific templates, eg. addressbook/templates/pixelegg/edit.xet instead of addressbook/templates/default/edit.xet, if user is on pixelegg template-set
2013-11-18 10:45:32 +00:00
Nathan Gray
0c87bd63e7
Fix for sub-templates set via content not properly validated on submit
2013-11-01 21:39:45 +00:00
Nathan Gray
4d35323f52
- More checks for sub-template referred to by partial name
...
- Fix sub-template modifications missed if namespace mismatch
2013-10-16 23:16:29 +00:00
Klaus Leithoff
d5613a51fe
swap haystack and needle, as they seem in wrong order for the purpose at hand
2013-09-02 07:52:57 +00:00
Nathan Gray
b7f83ef31f
Use a static variable to handle expansion when initializing with content set (validation)
2013-06-18 16:38:27 +00:00
Nathan Gray
6fcab842b0
Restore namespace when done running
2013-06-11 18:56:42 +00:00
Ralf Becker
0d66dd98b7
fixed server-side valdation of autorepeated rows/columns
...
had to change signature of validate function to get information for autorepeating through
removed entity-encoding of square brackets, as they mess up validiation (havnt found any negative effects so far)
2012-05-03 14:17:47 +00:00
Nathan Gray
66ea661e08
Try to handle partial template names - row as well as app.function.row
2011-10-06 15:23:24 +00:00
Ralf Becker
c4293ba3bc
honor disabled attribute in validation for widgets including grid rows, but not yet grid columns
2011-08-21 11:55:56 +00:00
Ralf Becker
e92087df31
- new validator for selectboxes (menupopup)
...
- also used currently to supply options for predefined selectboxes (eg. select-cat), need to discuss if we want to fetch these per ajax
- new widget method run, which runs a given method on all widgets (and children) supporting it, eg. used now for validate
2011-08-20 10:27:38 +00:00
Ralf Becker
30ed6a8ab7
- added legacy-options parsing and defintions for currently implemented widgets
...
- added more server-side debuging:
* etemplate_widget_template class can be called via url and displays parsed xml, eg:
http://localhost/egroupware/etemplate/inc/class.etemplate_widget_template.inc.php?name=infolog.edit
This is different from directly calling the xet file, as it show what got parsed and how:
http://localhost/egroupware/infolog/templates/default/edit.xet
* etemplate_new class can be called via url to render an arbitrary template, eg:
http://localhost/egroupware/etemplate/inc/class.etemplate_new.inc.php?name=timesheet.edit
Thought not all are already rendered correct, eg. infolog.edit is not:
http://localhost/egroupware/etemplate/inc/class.etemplate_new.inc.php?name=infolog.edit
2011-08-19 08:22:19 +00:00
Ralf Becker
107b12abcd
- template references can contain attributes, in this case we have to clone the template and set them
...
- optional template namespace is in "content" attribute
- ability to unset validation messages
2011-08-19 06:30:06 +00:00
Ralf Becker
a488b67f99
serverside validation for textbox and button
2011-08-18 21:56:37 +00:00