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

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

Re: blog paging

Joe,

I don't own mysite.com. I changed my domain with mysite.com ;).
But I guess I found  the answer: my site is secured with windows authentication. So you have to have a window user account to see the site (for now).
And perhaps, that is also the reason why I don't get an "Ignoring. System.Net.WebException: The remote server returned an error: (401) Unauthorized." logging. And I guess that the working of that reading is another process. Which doesn't have my credentials automatically.

Just guessing.

 

Stef

 

10/28/2008 6:16:03 AM
Gravatar
Total Posts 18439

Re: blog paging

Yes, that sounds right. Its making an external web request to your server so if its configured for windows auth it will get a 401. Its designed to swallow the error so it can keep going and try the rest of the feeds since any feed could be down temporarily.

Try consuming a public feed like the one for the mojoportal blog http://feeds.feedburner.com/mojoportal

Best,

Joe

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

Re: blog paging

I have removed the security, and I see content. :)
But now I only see 2 items of that feed. I search furter on this one.

Thanks

Stef

10/28/2008 7:08:15 AM
Gravatar
Total Posts 18439

Re: blog paging

If you want to see them all, click the gear icon next to the module title to get to modulle settings and uncheck enable selective publishing, or edit the feed entry and set publish by default to true.

There are also date range settings under the gear, so if a feed only had 2 posts in the last 90 days thats all you'll see for that feed.

Best,

Joe

10/28/2008 7:20:35 AM
Nux
Gravatar
Total Posts 183

Re: blog paging

I changed all that, set the cache on 0 minutes, still no affect.

But I have opened the feed settings and saved it again and not it's ok.

Hoping to have my first site online in a couple of weeks with this cms. I will let you know.

Thanks for the support.
Stef
 

10/28/2008 7:35:27 AM
Gravatar
Total Posts 18439

Re: blog paging

So you're saying it shows only 2 posts from a single feed no matter what you do? If you go to demo.mojoportal.com and re-create the symptom I'll investigate it.

Best,

Joe

10/28/2008 7:39:32 AM
Nux
Gravatar
Total Posts 183

Re: blog paging

Ok, feed manager added.
I tried to add a feed-> http://demo.mojoportal.com/Error.htm?aspxerrorpath=/FeedManager/FeedEdit.aspx
hit back of the browser and I see the feed.

Now I wanted to go to the home page and it gives an error.

10/28/2008 7:45:44 AM
Gravatar
Total Posts 18439

Re: blog paging

Can you tell me the feed url you used?

10/28/2008 7:52:15 AM
Nux
Gravatar
Total Posts 183

Re: blog paging

I used http://www.nieuws.be/rss/nieuws/snelnieuws.rss

I tried with an other rss, and I haven't got that problem.
And I can't reproduce the situation i had on my server.

10/28/2008 7:56:20 AM
Gravatar
Total Posts 18439

Re: blog paging

Yep, that feed breaks it alraight! I'll look into it on my local machine.

Best,

Joe

10/28/2008 8:34:36 AM
Gravatar
Total Posts 18439

Re: blog paging

If you are working with the code from svn trunk this is now fixed. (Do svn update to get latest code then rebuild). Even though the url for this feed would indicate RSS, its actually an atom feed and there was a bug in the handling of the case where the contents is not included as an element in the feed, then it it is null. In this case the feed has no content elements but only summary elements, so the fix is to use the summary if content is null.

Best,

Joe

10/28/2008 8:39:22 AM
Nux
Gravatar
Total Posts 183

Re: blog paging

Ok, great.
Thanks Joe.

11/10/2008 2:19:02 PM
Nux
Gravatar
Total Posts 183

Re: blog paging

Joe:
So you're saying it shows only 2 posts from a single feed no matter what you do? If you go to demo.mojoportal.com and re-create the symptom I'll investigate it.

Joe, I've started all over again, and I do have again that situation with only 2 posts.
I tried it in demo.mojoportal.com and it is also there that I only see 2 posts.
So perhaps there is a bug in it.

Also, when you see more items, you got an error on the paging. If you are f.i. on the first page, the link is not a postback, but a link to a {0} page.
So I guess the format isn't correct filled in or the code for doing the postback is lost.

Stef

11/12/2008 4:02:34 AM
Gravatar
Total Posts 18439

Re: blog paging

Hi,

I see the problem about the link. I will fix this today. Still not seeing this issue about only 2 posts. I suspect it is the module setting about how old of posts to allow that is filtering out some of yours.

Best,

Joe

11/12/2008 9:17:18 AM
Nux
Gravatar
Total Posts 183

Re: blog paging

Hey Joe,

it's indeed with the filtering of how old the posts are. BUT, I guess the problem has to do with caching.

When I import a feed manager, and I change the settings before I add the rss, I see what I want to see.
If I first add a rss and I change the settings after that, the result is still the same.
Is the cache reset after saving the settings of a feed manager? Can you check that please?

I guess it isn't .

Thanks
Stef

 

 

11/12/2008 12:02:51 PM
Gravatar
Total Posts 18439

Re: blog paging

I will add a button for clearing the cache in the Feed Manager. I can't really add logic to do this in the module settings page because module settings page is not feature specific, it handles saving settings for all features and has no knowledge of the features themeselves but only knows about settings. So custom per feature logic can't really go there.

Best,

Joe

11/12/2008 1:14:31 PM
Nux
Gravatar
Total Posts 183

Re: blog paging

Ok, cool.

Thanks
Stef

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