blog paging

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
10/12/2008 3:08:56 PM
Gravatar
Total Posts 33
www.jaosobne.cz
Windows Server 2008 R2
Microsoft SQL Server 2008
MojoPortal 2.3.6.2

blog paging

I am using MP for a couple of months, but I did realized today, that there's always only ten blog posts on the blog's homepage. I know that its supposed to work this way and I like it, but is there a possibility to have paging present? At the current state the user reaches the end of the page and never realizes, that there is more content, than he sees, but that he has to access via Categories or Archives menu or Calendar. Is there any possibility to implement paging, to just display Previous (and Next) links at the bottom of the blog page to browse back to historical posts? I think this should be simple to implement. I am sorry if it is implemented now, I just checked your blog here and you are not using it either, so I supposed it is not implemented.

Thank you very much, Joe. When I'll get some more money, I'll most certainly buy you at least a beer  :-) ...which unfortunatelly is not possible right now :-(

10/12/2008 5:19:39 PM
Gravatar
Total Posts 18439

Re: blog paging

You can configure how many posts are shown from module settings, it doesn't have to be 10.

If you once visit any specific post then you can see pager links to page through posts one at a time.

Maybe at some point we can also add paging into the module so that it can page a page of posts at a time.

I can't promise to do this soon though, my near term efforts are going to be focused on improving the ecommerce webstore feature. I think improvements to webstore has the most potential for dramatic increase in popularity of the project. And now that I'm using it a little for real business my vision for the implementation is coming together.

I also am focusing near term on core features like content versioning, a more general tagging system, and improvements to editor integration for content templates. Also improvements for the content manager and user management are high priorities.

I've got my work cut out for me ;-)

Best,

Joe

10/27/2008 9:42:15 AM
Nux
Gravatar
Total Posts 183

Re: blog paging

Well, i would also be happy if that features would be available, cause I'm using the blog module as a news module.
Hide everything from extra's from blogsettings and you have a nice news module.
The only thing that I'm missing, is a navigation to go to older news items.

I'm now writing a news overview module that does the same as what the blog shows, but it's own settings so you can use that module f.i. on a home page to show the last 4 news items and than link to the "blog" page to see the rest of the news.

But Joe, I understand that there are more important items, items that give you more income with your business.
 

10/27/2008 2:08:28 PM
Gravatar
Total Posts 13
Partner

Re: blog paging

Hi all,
let me suggest you to take a look at the recent improvements to the feed manager, it allows paging, excerpt, selective publishing and so on.

You can put your blog in a page of your site and consume it in another page, for instance the main page, using an instance of feed manager. In that way you can assemble a news module very quickly:

1) Add the feed RSS of your blog in the feed manager
2) Open the "Edit feed properties" panel clicking on the pencil icon at the left of the feed you just added and select the option "publish as default", so you don't have to publish each article manually
3) In the "Edit Settings" of your feed manager instance set your page size number in the box "Items for each page"
4) In the "Edit Settings" of your feed manager instance choose what you want to show: 
       - only the titles of your articles (Headings only?)
       - titles + excerpt (you can set the length in char of excerpt and the excerpt suffix)
       - author
       - all the article

Furthermore, the feed manager is also AJAX enabled, so you can navigate trough each page without refreshing the container page.
I'm using it from a while and it works well ;-)

 

10/28/2008 12:58:10 AM
Nux
Gravatar
Total Posts 183

Re: blog paging

Hey Walter,

thanks for your advice, but I guess I'm doing something wrong. Can you help me with that?
I have added a feed manager on my page and I have added the feed of my blog: http://mysite.com/blog11rss.aspx.
That feed is working when I open this url in a browser.

First: I don't see anything on my page with the feed manager.
Secondly, when I go to the edit mode of that feed, I don't see that "publish as default" checkbox.
I checked the html in the source code, and I see it over there. But not in the rendered html. So I guess I'm doing something wrong.
I also looked at the documentation, but there is no doc for the feed manager.

So can you help me please?

Thanks
 

10/28/2008 5:00:57 AM
Gravatar
Total Posts 13
Partner

Re: blog paging

Hi Nux,

it sounds you have an older relase of mj. The new features of feed manager are available starting from 2.2.7.6 release

 

10/28/2008 5:13:44 AM
Gravatar
Total Posts 18439

Re: blog paging

One possibility if its not showing any posts is it may be a Medium Trust issue. Are you hosted in Medium Trust?

You may find clues to the problem in the log, (key icon) Administration Menu > System Log

If you see security exceptions about trying to read the feed then its a medium trust issue. By default, under Medium Trust no server side web requests can be made. Mnay hosts really use a modified medium trust to allow web service calls but some don't. When I tested the feed manager on my local machine using medium trust I find it can work only if the originUrl property is configured to allow it like this:

<trust level="Medium" originUrl=".*" />

It won't work if its blank like this which is the default:

<trust level="Medium" originUrl="" />

Hope it helps,

Joe

10/28/2008 5:16:40 AM
Nux
Gravatar
Total Posts 183

Re: blog paging

@Walter,

I have the lastest version, donwloaded couple of days back.
I have found the checkbox. You have to check first the "Enable Selective Publishing" propertie in the settings of the feed manager.
Then I got that "publish as default" checkbox on the settings of the feed.
But I still don't see any content :(
When I check that checkbox on the settings of the manager, I get links for "Add/Edit Feeds - Manage Publishing"
Clicking on manage publishing shows me nothing as well.
 

@Joe

Can you let me know where i can see if the site is running in medium trust?
Cause I have my own web server, and I would be surprised if that is the standard setting for a site on IIS.

10/28/2008 5:37:39 AM
Gravatar
Total Posts 18439

Re: blog paging

If its your own server you would most likely know because getting it working in medium trust requires some configuration, though it is possible if a web server is a domain member and medium trust is forced by a group policy on all web servers.

First thing I would do is look in the log for clues as I mentioned. Maybe clear the log then visit the feed page then check the log again.

Let me know if you see any errors related to the feeds.

Best,

Joe

10/28/2008 5:57:20 AM
Nux
Gravatar
Total Posts 183

Re: blog paging

Well,

I didn't do anything special to set it up on my server: it was just click and go, thanks to you ;)

But I do get an error:

2008-10-28 05:40:40,778 ERROR mojoPortal.Web.FeedUI.FeedCache - There was a problem trying to read the feed for url http://mysite.com/blog11rss.aspx. Ignoring.
System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at Argotic.Common.SyndicationEncodingUtility.CreateSafeNavigator(Uri source, ICredentials credentials, IWebProxy proxy, Encoding encoding)
at Argotic.Syndication.GenericSyndicationFeed.Load(Uri source, ICredentials credentials, IWebProxy proxy, SyndicationResourceLoadSettings settings)
at Argotic.Syndication.GenericSyndicationFeed.Create(Uri source)
at mojoPortal.Web.FeedUI.FeedCache.GetRssFeedEntries(Int32 moduleId, Guid moduleGuid, Int32 entryCacheTimeout, Int32 maxDaysOld, Int32 maxEntriesPerFeed, Boolean enableSelectivePublishing)
2008-10-28 05:40:40,824 ERROR mojoPortal.Web.Global - 81.83.5.19-en-GB - /aggregator19rss.aspx
System.InvalidOperationException: Can't close RssWriter without first writing a channel.
at Rss.RssWriter.Close()
at Rss.RssFeed.write(RssWriter writer)
at Rss.RssFeed.Write(Stream stream)
at mojoPortal.Web.FeedUI.FeedAggregatePage.RenderRss(Int32 moduleId)
at mojoPortal.Web.FeedUI.FeedAggregatePage.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

(I also get errors from missing stored procedures like bannedIP and things like that, even this is a clean setup)

10/28/2008 6:04:44 AM
Gravatar
Total Posts 18439

Re: blog paging

You should clear the log first, those errors about missing stored procs were from during the installation, they didn't exist at first.

In your error message I see "http://mysite.com/blog11rss.aspx", when I paste that url into the browser it gives me a 404 error. So it seems like it can't resolve that host name to a real machine. Have you tried consuming any public feeds yet?

Hope it helps,

Joe

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