Samuel Georges
ee2dd78b3d
Exception handling for type: relation
...
It would appear many plugins incorrectly use type: relation as a list column, when this does nothing. Previously it would fallback to the text type, now that invalid types fail hard, this adds a softer landing by spamming the trace log instead.
Refs #2438
2016-10-22 04:18:28 +11:00
Samuel Georges
91e7e8b950
List column number type was falling back to text
...
Since custom list column types an exception is thrown for unknowns. This makes number known.
Fixes #2438
2016-10-22 03:10:50 +11:00
Samuel Georges
f9dd5b2f57
Plugins can now define custom list column types
2016-10-21 07:15:08 +11:00
Samuel Georges
88196fb660
Allow passing an explicit format to datepicker
...
Refs #1919
Recompile assets
2016-10-20 08:44:14 +11:00
Samuel Georges
535dc78db1
Pass model as 3rd arg in relation extend overrides
...
Refs #2308
2016-10-19 08:45:43 +11:00
Samuel Georges
f74d95392f
Fix instances where defineProperties returns nothing
...
addPurgeableAttribute -> addPurgeable
2016-10-19 07:21:09 +11:00
Samuel Georges
a449c05809
FormModelSaver now purges fields beginning with underscore
...
This is to align with the native model's fill() behavior, of which this classes' behavior is derived.
Fixes #2422
2016-10-18 08:57:57 +11:00
Samuel Georges
d788b7e03f
Use select2 on touch devices
...
This is a relic from when select2 v3 had no mobile support, we use select2 v4 now that has been tested with mobile/touch devices.
Refs #108
Clean up some white spaces
2016-10-17 08:38:01 +11:00
Samuel Georges
19bab2b472
Merge pull request #2419 from LukeTowers/patch-6
...
Pass current model to record finder scope method
2016-10-15 10:50:54 +11:00
Samuel Georges
259e0c0226
Add support for recordOnClick in relationRender
2016-10-15 10:11:54 +11:00
Samuel Georges
8eafcaa090
Encode extra config to isolate the logic
...
Fixes #2417
2016-10-15 10:10:11 +11:00
Samuel Georges
f18ff0daac
Verify fallback lang actually exists before using it
...
This fixes an error 500 when trying to reference a non-existent language
Fixes #2358
2016-10-13 20:38:15 +11:00
egerheed
590b697574
Updates Norwegian language file for backend ( #2402 )
...
* Updates Norwegian language file for backend
2016-10-13 19:57:54 +11:00
Samuel Georges
733158060e
Fixes indentation
...
Refs #2400
2016-10-13 19:52:37 +11:00
Samuel Georges
5eab7bc365
Handle when editor is not initialized yet
...
https://github.com/rainlab/pages-plugin/issues/197
2016-10-13 05:57:38 +11:00
Luke Towers
567e464550
Pass current model to record finder scope method
...
This improves the extensibility of the record finder form widget by passing the current model to the query scope that will be applied to the records being displayed. It allows the use of attributes of the current model in the query scope applied to the records being displayed as options to select.
In my use case, I have a main Survey model with related Field models. Field models can have parents and children for a tree structure, but I only want fields to have parents and children that are:
**a) Not the main record itself**
**and b) Members of / related to the same Survey model**
By passing the current model to my query scope, I can filter out ineligible records like so:
```
/**
* Limit results to only records that are eligible to be parents of the provided model
*
* @param Query $query
* @param Model $model The model to check for eligible parents agains
* @return Query
*/
public function scopeEligibleParents($query, $model) {
return $query->where('id', '!=', $model->id)
->where('parent_id', '!=', $model->id)
->where('survey_id', '=', $model->survey_id);
}
```
2016-10-11 17:15:40 -06:00
Samuel Georges
de1b85e796
Rich editor content saves when in code view mode
...
Refs https://github.com/rainlab/pages-plugin/issues/193
2016-10-12 06:42:36 +11:00
Samuel Georges
8c91bfe66c
Update froala to latest, recompile assets
2016-10-12 06:33:28 +11:00
Samuel Georges
5746f4dec0
Fixes missing ace vendor path
...
Refs https://github.com/rainlab/pages-plugin/issues/193
2016-10-12 06:13:01 +11:00
Szabó Gergő
d7f1d523f0
Translate some strings ( #2395 )
...
* Translate some strings
2016-10-11 08:29:26 +11:00
Samuel Georges
38c0736164
Merge pull request #2405 from adrenth/feature/dutch-language
...
Update Dutch language
2016-10-11 08:26:59 +11:00
Samuel Georges
19c3c19a00
Added extended useList options, including raw output
2016-10-06 18:44:26 +11:00
Alwin Drenth
48d38a8e11
Update Dutch language
2016-10-03 17:21:55 +02:00
Samuel Georges
fe74fcb8e0
Comma concat all single dimension arrays, for text columns
...
This is useful when the attribute is a basic jsonable store and needs to be in a suitable format for "useList" export mode
2016-09-28 16:31:21 +10:00
Samuel Georges
b3fe8de7fb
Prevent extra config from bleeding to other definitions
2016-09-28 13:26:28 +10:00
Samuel Georges
baefa3e50d
Allow passing arbitrary recordUrl to relationRender
2016-09-27 20:39:29 +10:00
Samuel Georges
0d336151d2
Improvements to data persistence, rework readOnly
...
Fixes #2308
2016-09-27 20:21:32 +10:00
Samuel Georges
1e3f5a22ef
Provides an opportunity to manipulate the field configuration.
...
Refs #2245
2016-09-27 17:00:26 +10:00
Samuel Georges
cd0cd260b5
Make manage[form] config optional
...
There are times when manage form mode just isn't needed. This will make the view[list] unclickable, which is OK
2016-09-27 16:53:46 +10:00
Samuel Georges
0b345ad592
Add 'readOnly' spec to form field
...
Same as disabled except data is still posted back
2016-09-27 16:50:52 +10:00
Mahmut Namli
85e9cb220a
Updated turkish language files for all modules ( #2377 )
...
* Backend lang file updated for turkish
* Cms lang file updated for turkish
* System-client lang file updated for turkish
* System-lang lang file updated for turkish
2016-09-19 18:13:44 +10:00
Samuel Georges
5684cf6385
Merge pull request #2374 from octoberfa/master
...
Update Persian language
2016-09-18 18:00:52 +10:00
Samuel Georges
9b5851fbd5
Improves exception handling for invalid model resolver
...
A more specific error message is now shown when trying to resolve a model from an invalid source (eg: an array)
Fixes #2354
2016-09-18 13:44:13 +10:00
Samuel Georges
cc2973e148
Merge pull request #2275 from Arekusei/develop
...
Added support for Many To Many polymorphic relations.(morphToMany and…
2016-09-18 12:08:57 +10:00
Sajjad
c80675f7b4
Update Persian language
2016-09-16 18:55:31 +04:30
Samuel Georges
2659ae708f
Add doc blocks
2016-09-09 06:16:24 +10:00
linver
a5047e0161
language zh-cn of changes
2016-09-03 13:05:28 +10:00
reg2005
b26fab725a
New translation attachment_url
...
In Russian it will be so more correct
2016-09-03 12:59:02 +10:00
Samuel Georges
6c474bcae9
Move list pagination out of table footer
...
Remove docs on list-unresponsive (removed a while ago)
Add topPartial and sidePartial options to list controller configuration (experimental)
2016-09-03 12:13:38 +10:00
Samuel Georges
600794c891
Fixes anchor button color in report widgets
...
Fixes simple list padding issue
Fixes #2342
2016-09-03 12:09:50 +10:00
Szabó Gergő
da254af4e6
Update the Hungarian translate ( #2334 )
...
* Update the Hungarian translate
2016-09-03 09:44:32 +10:00
Szabó Gergő
749e4c031c
Translate the remove widget dialog ( #2323 )
...
* Translate the remove widget dialog
2016-08-27 09:14:31 +10:00
Samuel Georges
c8d8d4e931
Introduce new Cms helper
...
This is modeled after the Backend helper. Primarily used to generate URLs for the frontend, these are piped through the CmsController action. It would also be a good place to add a hook, if necessary later.
2016-08-20 14:43:49 +10:00
Samuel Georges
7373cf2bfb
Merge pull request #2324 from alxy/patch-13
...
ImportModel didnt respect encoding
2016-08-19 07:30:16 +10:00
Alexander Guth
61823329c8
ImportModel didnt respect encoding
...
In contrast to the preview CSV reader, the actual ``ImportModel`` did not respect any encoding values provided. This leads to bugs with any non utf8-compliant characters. This PR fixes the problem by adding the appropriate encoding filter (copied from the preview reader).
2016-08-18 21:11:21 +02:00
Jack Dark
a6b0d3da7d
Merge remote-tracking branch 'remotes/upstream/develop' into develop
...
# Conflicts:
# modules/backend/behaviors/RelationController.php
2016-08-18 02:02:43 +03:00
Samuel Georges
f670526015
Merge pull request #2320 from gabsource/fix-reorder-key-name
...
Reorder partial should use the model key name attribute to display the ID
2016-08-17 19:57:50 +10:00
Jérémy Gaulin
198230e281
Reorder must use the model `getKey()` method (configurable key name) instead of harcoded `id` property.
2016-08-16 19:36:55 +04:00
Samuel Georges
de4e0e7b14
Merge pull request #2317 from gergo85/patch-1
...
Translated Froala missing keys for Hungarian
2016-08-16 20:13:37 +10:00
Szabó Gergő
813fdef1d1
Translated Froala missing keys for Hungarian
2016-08-16 08:49:20 +02:00