Generating blog posts from code.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/19/2008 10:51:15 AM
Gravatar
Total Posts 22
Kenneth Haugland

Generating blog posts from code.

 

I am generating blog posts from code and it works fine the in the blog module, but I get a problem when i try and click on the post to read the rest of it.

Are there any other tables I need to update for this to work?

Regards

Kenneth

 

12/19/2008 1:45:11 PM
Gravatar
Total Posts 18439

Re: Generating blog posts from code.

Hi Kenneth,

First I would say I don't recommend doing that unless you clone the blog into your own private feature with different namespace, tables and procs etc. The blog is subject to change in future versions and your code may break as a result. At some point we will expose a web service using the MetaWebBlog api and then it will have an interface you can rely on not changing and therefore could code against it with confidence. Some of the work for this is done already thanks to Tom Opgenorth but I need to review it and update it as even the work he did is out of date with the current version of the blog.

Now to answer your question, I suspect you are not creating the friendly url mapping. If you study the code in  /Blog/EditPost.aspx.cs you should be able to figure it out. The real blog page is /Blog/Viewpost.aspx?pageid=x&mid=y&ItemID=z but we use friendly urls that map to this url.

Hope it helps,

Joe

12/19/2008 3:07:44 PM
Gravatar
Total Posts 22
Kenneth Haugland

Re: Generating blog posts from code.

Thanks again Joe for a quick answer.

I know going directly to the database is not the best solution but I do not see any other way as it is now. It is easier just to change the code later.

I missed the firendly urls, so it worked fine after I updated those.

Would be great with a webservice interface.

Regarding the webservice interface, have you looked into entity framework from microsoft? It has a REST interface, but it probably is not supported by mono yet. I am using it for my pet project so I can learn it better.

Regards

Kenneth

12/19/2008 3:56:47 PM
Gravatar
Total Posts 18439

Re: Generating blog posts from code.

I'm experimenting now using the WCF REST toolkit. The Entity Framework is a much larger animal like a super domain modeling object relational mapper kind of thing. I'm sure it probably generates RESTful web services but it is not required for RESTful web services. I've got my eye on the Entity Framework but its not something I plan to jump on soon. It doesn't scratch anything thats really itching me. I'm more interested in Silverlight UI against RESTful web services. I'm sure MS would like me to use Entity Framework behind those services but its a big chunk of middle ware wizard code that doesn't really appeal much to me yet. And of course if it gets implemented in Mono that will help its appeal some as thats currently another reason not to use it yet.

Best,

Joe

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