NewsPublisher

From MODx Wiki

Jump to: navigation, search

 MODx Snippet 

NewsPublisher v1.4
Author 
Raymond Irving
MODx Versions 
>= ...
Last Updated 
today

Contents

Create articles directly from front end (news, blogs, PR, etc.) Checks to see if users belong to a certain group and displays the specified chunk if they do. Performs several sanity checks and allows to be used multiple times on a page. Only meant to be used once per page. (sic)

Reference

Parameters

Placeholder Description

&folder

folder id where comments are stored

&makefolder

set to 1 to automatically convert the parent document to a folder. Defaults to 0

&postid

document id to load after posting news item. Defaults to the page created

&canpost

comma delimited web groups that can post comments. Leave blank for public posting

&badwords

comma delimited list of words not allowed in post

&template

name of template to use for news post

&headertpl

header template (chunk name) to be inserted at the beginning of the news content

&footertpl

footer template (chunk name) to be inserted at the end of the news content

&formtpl

form template (chunk name)

&rtcontent

name of a richtext content form field

&rtsummary

name of a richtext summary form field

&showinmenu

sets the flag to true or false (1|0) as to whether or not it shows in the menu. Defaults to false (0)

&aliastitle

set to 1 to use page title as alias suffix. Defaults to 0 - date created.

&clearcache

when set to 1 the system will automatically clear the site cache after publishing an article.

Tutorials

Resources

Personal tools