BLOG show ever all the articles

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
12/2/2005 6:11:16 AM
Gravatar
Total Posts 12

BLOG show ever all the articles

Hi all, I have a problem with the blog module it show ever all the articles, there is a way to show only the last five entries?

Bye. Eraldo.

12/2/2005 6:28:07 AM
Gravatar
Total Posts 18439

Re: BLOG show ever all the articles

Yes, that is configurable in the module settings. Click the Gear icon next to the Add Post link to get to settings and set the Entries To Show setting to 5
12/3/2005 7:03:57 AM
Gravatar
Total Posts 12

Re: BLOG show ever all the articles

I already tryed this way but it doesn't work :-(

Bye. Eraldo.

12/3/2005 7:08:29 AM
Gravatar
Total Posts 18439

Re: BLOG show ever all the articles

Hmm, you are right, on this site the blog always shows 10 items no matter what I set it to. I'll look into it and make sure it is fixed in the next release which is coming soon.
12/3/2005 7:18:21 AM
Gravatar
Total Posts 12

Re: BLOG show ever all the articles

I waiting for it. Thanks.

Emh.. What about the other problem? I have a beer for you if give me the possibility to set as a parameter the "data" directory of mojo root.

My problem is that my manteiner give the write permission to the aspnet user only on the directory named "public" so I cannot upload nothing (no image, no calendar ecc.)

Bye. Eraldo.

12/3/2005 7:32:10 AM
Gravatar
Total Posts 18439

Re: BLOG show ever all the articles

I just found the blog bug. It only exisits in the MS SQL and MySQL versions not in the postgresql version. For MS SQL I fixed it in the stored proc but MySQL I had to fix it in dbPortal.cs

I will commit it to svn today and it will be fixed in the next release.

I don't know what to say about your hosting situation except I can recommend good mono hosting at www.grokthis.net, that is where my sites including this one are hosted and they are very willing to meet the needs of the customer.

If you are hosting on linux maybe you could make the Data folder a virtual link to the public folder.

I can't code mojoportal to accomodate the rules of every hosting provider. If it were me I would contact the hosting company and insist they make the Data folder writeable for me or possibly they could alias it to the public folder or else I would find new hosting.

I understand their security concerns about not wanting every folder to be writable that is why I put all writable things under the Data folder so only 1 folder and its sub folders need to be writable
12/4/2005 5:21:41 AM
Gravatar
Total Posts 18439

Re: BLOG show ever all the articles

There is a workaround you can use until the next release. Change the Web.config setting DefaultBlogPageSize to 5

Cheers,

Joe
12/4/2005 7:36:41 AM
Gravatar
Total Posts 12

Re: BLOG show ever all the articles

I tryed to change "DefaultBlogPageSize" to "5" but it doesn't work. :-( can you post the rigth stored procedure to fix it?

I like your portal, I hope you want to visit my web site http://www.nabbirra.net You can see that there is 6 articles and it look very long, now I think I have to delete some articles to solve it. :-(

 

Bye. Eraldo.

 

12/4/2005 7:50:34 AM
Gravatar
Total Posts 18439

Re: BLOG show ever all the articles

mp_Blog_SelectByEndDate

needs this

SET @RowsToGet = COALESCE((SELECT TOP 1 SettingValue FROM mp_ModuleSettings WHERE SettingName = 'BlogEntriesToShowSetting' AND ModuleID = @ModuleID),10)

The current version has the wrong setting name.
12/4/2005 7:57:50 AM
Gravatar
Total Posts 18439

Re: BLOG show ever all the articles

Nice site! I will add it to the mojo Sites page. And about beer! one of my favorite subjects
12/19/2005 2:39:48 PM
Gravatar
Total Posts 18439

Re: BLOG show ever all the articles

I just realized this was still broken in the MySQL data layer for the 1.0 release. I just fixed it and updated the download file for the MySQL Data Layer. Just re-download it from the download page and you will have the new dll with the fix.
You must sign in to post in the forums. This thread is closed to new posts.