updated 0.7.0 in ditto call : add document only once
updated 0.7.1 Better alias generation
@pachirulo and @ola can you test the new one and report back ?
[!FDM? &model=`85` &canmoderate=`Blog Admins` &parent=`[[getUsersFolder]]` &disabledelete=`1` &disableunpublish=`1` &disableedit=`1` &disablepublish=`1` &eform_tpl=`fdmEformBlog`!]
[[FDM? &id=`[+id+]` &disableadd=`1` &canmoderate=`Blog Admins` &eform_tpl=`fdmEformBlog` ]]
The &canmoderate parameter is made for this.
Is there any way to set all permissions in one parameter (like &authorgroup=`FDM Admins`), which would grant all permissions to the specifed groups?
FDM Debug Mode On
debug all
cfdm Object
(
[config] => Array
(
[language] => english
[realdelete] => 0
[debug] => all
[action] => add
[permissions] => Array
(
[post] => 0
[moderate] => 0
[trusted] => 0
)
[moderation] => Array
(
[disablemanager] => 0
)
[topublish] => 1
)
[eFormParameters] => Array
(
)
[user] => Array
(
[ismanager] => 1
[id] => 1
[isauthor] => 1
[isanonymous] =>
[ismoderator] => 1
[istrusted] => 1
[canpost] => 1
)
[doc] => Array
(
[id] => 17
[parent] => 17
[published] => 1
[createdby] => 1
[model] => 27
)
[ctime] => 1180985162
[templates] => Array
(
[link] => Array
(
[tpl] =>
[+user.canpost:is=`1`:and:if=`[+link.disableadd+]`:is=`0`:then=`
New Document
`:strip+]
[+link.disableedit:is=`0`:then=`
[+user.ismoderator:is=`1`:or:if=`[+user.isauthor+]`:is=`1`:then=`
Edit
`:strip+]
`+]
[+user.ismoderator:is=`1`:then=`
[+doc.published:is=`0`:and:if=`[+link.disablepublish+]`:is=`0`:then=`
Publish
`:strip+]
[+doc.published:is=`1`:and:if=`[+link.disableunpublish+]`:is=`0`:then=`
Unpublish
`:strip+]
[+link.disabledelete:is=`0`:then=`
Delete
`:strip+]
`+]
)
)
[path] => /home/villasol/public_html/assets/snippets/FDM
[client] => Array
(
[ip] => 190.48.82.114
[ua] => mozilla/5.0 (windows; u; windows nt 5.1; es-es; rv:1.8.1.4) gecko/20070515 firefox/2.0.0.4
[browser] => mz
[long_name] => mozilla
[version] => 1.8.1.4
[maj_ver] => 1
[min_ver] => .8.1.4
[letter_ver] =>
[javascript] => 1.5
[platform] => win
[os] => xp
[language] => es-es,es,en-us,en
[gecko] => 20070515
[gecko_ver] => 1.8.1.4
=> true
[images] => true
[frames] => true
[tables] => true
[java] => true
[plugins] => true
[css2] => true
[css1] => true
[iframes] => true
[xml] => true
[dom] => true
[hdml] => false
[wml] => false
[must_cache_forms] => true
[avoid_popup_windows] => false
[cache_ssl_downloads] => false
[break_disposition_header] => false
[empty_file_input_value] => false
[scrollbar_in_way] => false
)
[userT] =>
[parameters] => Array
(
[language] =>
[debug] => all
[id] =>
[parent] => 17
[model] => 27
[disableadd] =>
[disableedit] => 1
[disablepublish] => 1
[disableunpublish] => 1
[disabledelete] => 1
[moderated] =>
[disablemanager] =>
[guestname] =>
[canpost] =>
[canview] =>
[canedit] =>
[canmoderate] =>
[trusted] =>
[notify] =>
[aliastype] =>
[realdelete] =>
[tplLinks] =>
[eform_tpl] => fdmEformProduct
[eform_formid] =>
[eform_report] =>
[eform_to] =>
[eform_noemail] =>
[eform_subject] =>
[eform_autosender] =>
[eform_debug] =>
)
[link] => Array
(
[disableadd] => 0
[disableedit] => 1
[disablepublish] => 1
[disableunpublish] => 1
[disabledelete] => 1
[current] => /~villasol/index.php?id=17
[parent] => /~villasol/index.php?id=17
[add] => /~villasol/index.php?id=17&fdmaction=add&fdmmodel=27&fdmparent=17
[save] => /~villasol/index.php?id=17&fdmaction=save&fdmid=17
[edit] => /~villasol/index.php?id=17&fdmaction=edit&fdmid=17
[delete] => /~villasol/index.php?id=17&fdmaction=delete&fdmid=17
[publish] => /~villasol/index.php?id=17&fdmaction=publish&fdmid=17
[unpublish] => /~villasol/index.php?id=17&fdmaction=unpublish&fdmid=17
)
[eform] => Array
(
[tpl] => fdmEformProduct
[formid] => fdmForm
[report] => report
[to] => [email protected]
[noemail] => 1
[subject] => FDM: notification http://201.235.253.16/~villasol/
[autosender] =>
[debug] => 0
)
)
1
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« `` is not numeric and may not be passed to makeUrl() »
Parser timing
MySQL: 0.0107 s (9 Requests)
PHP: 0.0500 s
Total: 0.0607 s