This is a test
This is a test
If you came to this page from the modx support forum, then I'll describe what is happening here, what is working, and where I am in the blogging project.
As last stated in the discussion forum, this page is created using the NewsPublisher call. I am using a Snippet to control the parent folder into which posts are created, and the same Snippet to return the creating user when he hits the Post button. My NewsPublisher call is as follows:
[ ! NewsPublisher? &folder=`[ ! MyHome ! ]` &postid=`[ ! MyHome ! ]` &canpost=`Blog Admins` &formtpl=`blogForm` &footertpl=`FormBlogComments` &makefolder=`1` &rtcontent=`tvblogContent` &clearcache=`1` ! ]
The MyHome snippet contains only three lines of code at this time:
$id = $modx->documentIdentifier;
$pid = $modx->getParent($id,1,'id');
return isset($modx->config['login_home'])? ($modx->config['login_home']):$pid['id'];
The page returns the user back to the same directory to which the document is posted. If the web users Login Home Page is set, then the blog entry goes to that directory, otherwise the entry goes to whatever directory contains the post form. Simple, clean, and working. I like it that way.
