News Feature 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.

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.
11/5/2012 10:05:45 AM
Gravatar
Total Posts 40

News Feature development

Hi there,

I need to develop a News Feature, which should have a Widget to place anywhere i want, most likely the home page, that shows "x number" of recent news, and then a Page that would show all the news like the Blog feature. Should i start from the blog source code, and go from there? The widget has to be a different feature, i suppose, to be able to have multiple instances, and all would share the same main "blog like" page.

Any ideas on how i should implement this please?

Best regards,
João

11/5/2012 11:39:07 AM
Gravatar
Total Posts 18439

Re: News Feature development

Hi,

What most people do is use the Feed Manager feature to consume the feed for the blog to show the recent blog posts on the home page. The links in the feed link through to the blog.

Hope that helps,

Joe

11/5/2012 12:00:59 PM
Gravatar
Total Posts 40

Re: News Feature development

Hi Joe,

That is a good idea, but I need to have a small description, thumbnail and file attachments per news item. So i really need to do something from scratch. Perhaps starting with the blog is a good idea! I Only need to add 2 fields, and an aux table for the attachments. Then use the feed manager to retrieve the news with the thumbnail from my News feature.

What do you think?

I can send the code to you when i am done if you wish to add it or alter it to your liking.

Best regards and thank you for the swift answer as usual!

João

11/5/2012 12:08:16 PM
Gravatar
Total Posts 18439

Re: News Feature development

You could do that by creating excerpts for each blog post and configuring the blog feed to only show excerpts. When you enable excerpts in the blog settings, automatic excerpts will be generated if no explicit excerpt exists on the post but the generated excerpt will just be plain text. To have an image and small description you would need to explicitely edit the excerpts for each post. When you enable excperts you'll see a new tab in the blog edit page where you can edit the excerpt.

Hope that helps,

Joe

11/5/2012 12:25:37 PM
Gravatar
Total Posts 40

Re: News Feature development

I have the excerpts working! Thanks for the tip.

I have the main news with a wide banner, and in the excerpt i have a thumbnail.
Now, i do i configure the feed manager to get the excerpts with the thumbnail please?

Best regards

João

11/5/2012 12:44:29 PM
Gravatar
Total Posts 18439

Re: News Feature development

In the Blog Feed Settings check the box for Use Excerpt In Feed. Then copy the feed url for the blog and add it as a feed in Feed Manager.

Hope that helps,

Joe

11/6/2012 11:47:25 AM
Gravatar
Total Posts 40

Re: News Feature development

I had to check the option "allow external images" to be able to show the thumbnails on the feed manager.

Thank you for the help ;)

Best regards,

João

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