Blogging with Windows Live Writer and Word - creating categories?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
11/17/2011 2:36:07 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Blogging with Windows Live Writer and Word - creating categories?

PS a colleague has just pointed me at this great WLW plugin for inserting formatted code snippets ...

http://plugins.live.com/writer/detail/insert-code-for-windows-live-writer

and this which pastes direct from VS

http://plugins.live.com/writer/detail/paste-from-visual-studio

 

11/18/2011 7:52:59 AM
Gravatar
Total Posts 18439

Re: Blogging with Windows Live Writer and Word - creating categories?

Hi Crispin,

I mentioned in previous post that images posted from Word go into site root folder - can you fix that? as for WLW?

I'm not sure how it was possible in the old implementation for it to work differently in word than in WLW since both are using the same api. I'm pretty sure it is consistent in the new implementation. Have you tried it on our demo site with Word?

I noticed today that publishing from WLW with the "post draft to blog" tool instead of the "Publish" tool makes no difference - the post is fully published in the mojoPortal blog. Any way of making this create a draft post in mojoPortal?

Thanks! I'll investigate that, I had not tried post draft to blog yet.

Best,

Joe

11/18/2011 9:14:01 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Blogging with Windows Live Writer and Word - creating categories?

I've posted two posts to the demo site http://demo.mojoportal.com/blog

One from Word and one from WLW. Both created categories successfully, and both put images into the media\wlw folder.

Looking good.

Posting a true draft will be very useful for our workflow if it's possible, and ultimately authoring simple pages.....

Thanks

 

11/26/2011 10:22:58 AM
Gravatar
Total Posts 18439

Re: Blogging with Windows Live Writer and Word - creating categories?

Hi Crispin,

I've just updated the demo site with the latest build which now supports editing pages (with the caveats previously discussed) along with blog posts. It now supports posting both pages or blog posts as draft in addition to direct publishing.

I could use some additional testing so if you have time please do test it on the demo site. Note that every time the demo site gets reset you will need to re-configure your settings for it in Live Writer because the ids on things change, it is a new site and a new blog when it gets reset even though it has the same content. 

Thanks,

Joe

11/26/2011 3:25:18 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Blogging with Windows Live Writer and Word - creating categories?

I've had a 10 minute play and this is working exactly as I had hoped - a fantastic new feature and worth shouting about.  This really makes mojoPortal work for our company knowledge base where quick authoring of pages in a hierarchy is a priority. I have published root and child pages, all appearing as expected in the demo site.

I've also tested posting blog posts as draft, and adding categories - working fine.

Regarding security, clearly this ability to post pages should be controlled...  the ability to create pages at root level or below any other page should (IMO) be governed by whether the connecting account is in the "roles that can create root level pages", or the roles permitted to create child pages under each other page. Ideally the pages returned to WLW as the possible parent pages should be only the ones you have permissions to use.  I've not tested whether this is already implemented.  If this is too complex, an interim solution would be to limit this to the administrator and content publisher roles.

Thanks for this excellent addition. I look forward to it in the next release.

PS I noticed in passing that the Site Analytics Pro demo pages are throwing some non-fatal errors on the demo site.

 

11/27/2011 7:20:07 AM
Gravatar
Total Posts 18439

Re: Blogging with Windows Live Writer and Word - creating categories?

Hi Crispin,

Regarding security, clearly this ability to post pages should be controlled...  the ability to create pages at root level or below any other page should (IMO) be governed by whether the connecting account is in the "roles that can create root level pages", or the roles permitted to create child pages under each other page. Ideally the pages returned to WLW as the possible parent pages should be only the ones you have permissions to use.  I've not tested whether this is already implemented.  If this is too complex, an interim solution would be to limit this to the administrator and content publisher roles.

Of course security rules must be enforced and are enforced when using the metaweblog api. I would never release this functionality without doing that.

For pages there are basically 2 methods for getting a list of pages wp.getPages gets the list of pages available for editing and this method only returns pages that the user can edit and that have an html instance in the center pane. From WLW UI it is the File > Open recent post > Open From: selected blog > Pages radio button that shows these.

Then there is wp.getPageList which is used to populate the parent page dropdown. However we cannot limit this to only pages the user can edit because the user may be able to edit the child page but not the parent page, and we cannot limit it to pages that have an html instance because the parent page may not. So the best solution I could think of was to limit it to pages for which the user has view permissions. Therefore we have to assume that the user cannot edit any pages that are child pages of pages for which he has no view permissions. While technically he could have such permission, even from the web UI that would be unusual since the child nodes of a page he has no view permission on would not be in the menu.

So the result is that the parent page list may include pages that the user cannot edit and cannot create child pages below. In that case if the user tries to make one of those pages the parent we throw an error with a message about it that is shown in the error dialog of WLW indicating to the user that they cannot use the selected parent page. However this is only if the user is trying to change the parent page. The page he can edit may already have a parent that he has no permission on so we have to make it show those pages and we have to let the user keep that selected in the parent dropdown. We just can't let him move other pages there or create new pages there.

Thanks for letting me know about the error on In Site Analytics demo. I've fixed that.

Best,

Joe

11/30/2011 10:23:12 AM
Gravatar
Total Posts 18439

Re: Blogging with Windows Live Writer and Word - creating categories?

Very close to releasing a new version of mojoPortal with this new feature so I've created a new article Using Windows Live Writer to Create and Edit CMS Pages.

Best,

Joe

12/1/2011 1:39:46 PM
Gravatar
Total Posts 125

Re: Blogging with Windows Live Writer and Word - creating categories?

Love the function to create and edit pages in WLW. If there was not Blog instance on the site, is it possible to set up WLW just for page creation and edit?

Thanks

12/1/2011 1:46:48 PM
Gravatar
Total Posts 18439

Re: Blogging with Windows Live Writer and Word - creating categories?

Currently no, but I've been thinking about that. The problem is live writer wants to configure a blog id since it really is a blogging tool. Pages are just seen as additional functionality that lets you create pages in your blog site.

We don't need the blog id and don't use it for page editing but Live Writer doesn't know that. Possibly we could make it return a special item in the getUserBlogs method it uses during blog configuration, something with  -1 for the id and "Pages Only" for the blog title might work.

But for now you could just create a blog on a role protected page so no-one else can see it, as long as the editor user is in the role you can configure that blog in WLW and just don't use it for blogs if you don't want a blog.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.