Skip to content

Newspublisher modifications

marcsch edited this page Feb 12, 2012 · 20 revisions

Most important changes to the original newspublisher extra (master branch):

file/image TVs: added a button which opens the MODx file browser in a popup window. As in the MODx manager, a preview thumbnail will be generated for image TVs.

Hint: In order to avoid a second login prompt when the file browser opens (technically it is a MODx manager page), it is possible to specify „mgr“ as login context within the Login the snippet call. Example: [[[[!Login?contexts=web,mgr]]]]

resourcelist TV: Should work the same as in the manager

datepicker TV: allows for disabled dates, disabled days and date ranges. Not supported: time ranges and setting the first day of the week.

Formatted dates in alias: The "aliasdateformat" property allows for having a formatted date/time instead of the timestamp as alias suffix. Example: &aliasdateformat=_Ymd => 'aliasprefix_20110707' (see documentation for the php date() function for all formatting options).

template, class_key, content_dispo: Displayed as lists like in the MODx manager (not sure if this was useful, since, these might be used only rarely in the frontend... Just added them for completeness).

Limited @EVAL checking to TVs (allow in fields)

Switching the content field type to text (weblinks, symlinks) or file browser (static resources) depending on the class_key setting: Works together with the class_key field, however will be most useful when there is the possibility to change the class_key setting.

Some tweaks to the template chunks: set the 'for' attribute of all tags, attempted to unify the classes/ids, ensured there is an outer container (div or fieldset) with id="[fieldName]-container" around each field/TV.

New access policy/access policy template