Display rcent blog posts/news posts in other pages

Hi Guys,

When in home page, I get to see last 5 blog posts and last 5 news posts.

Please help how I can do the same when viewing a single blog post (display recent/latest blog posts in a block) or when viewing single news posts (display recent/latest news posts in a block) as well.

Thanks,
Sam

Quote · 5 Jun 2013

You can use RSS Feed. Using Page builder you cand pun a new block RSS w

Quote · 5 Jun 2013

 

You can use RSS Feed. Using Page builder you cand pun a new block RSS w

 Thanks Loka!

I put but I noticed it doesnt display anything. It just shows that revolving icon thing that it looks like it can't pull out data for display :-(

Regards,
Sam

Quote · 5 Jun 2013

The other way would be to insert a php block.  Use the blog search to pull out the latest blogs with limit = to the number you wish to display.  I don't have the exact code to use at this time.

Geeks, making the world a better place
Quote · 5 Jun 2013

I misunderstood. I thought for a particular blog. There must be somewhere a generator feed

Quote · 6 Jun 2013

I just noticed that when I clicked the RSS feed block, there's a "Url Of RSS Feed" which is currently empty. What is the URL of blog rss feed by the way? Also the news?

Thanks,
Sam 

Quote · 8 Jun 2013

I think this is what you want to do

http://nguoimau.xxx/m/news/view/-B%E1%BB%A5i-%C4%91%E1%BB%9Di-Ch%E1%BB%A3-L%E1%BB%9Bn-ch%C3%ADnh-th%E1%BB%A9c-b%E1%BB%8B-c%E1%BA%A5m-ra-r%E1%BA%A1p

 

Look at the bottom right you will see 5 more news tittles, which I built by 1 block of RSS, and the rss url is the yousite.com/m/news/act_rss/

Quote · 8 Jun 2013

 

/m/news/act_rss/

 Finally!
What about the rss url for blog?

Thanks,
Sam 

Quote · 8 Jun 2013

I dont see rss option for blog, then you have to build the blog home page to include rss, then grab that link and put it where you want it appeared. the concept is the samething as the news but this you have to build in to the blog home pages.

Quote · 8 Jun 2013

try this rss url

http://yoursite/rss_factory.php?action=blogs&pid=1

Quote · 8 Jun 2013

 

try this rss url

http://yoursite/rss_factory.php?action=blogs&pid=1

 Wow this one is also working now! Thanks alot. You've been very helpful.

One last question, would you know how I can control the number of characters that show in the preview of rss feed? If you check on my site [Link removed by request] the right side where blog rss feed are displayed (e.g Recent Posts block), almost 2,000 characters are displayed as preview page. I have no issues with the news feed as it seems to display the preview section just fine (less than 300 characters), but the blog posts preview is so long. The option top change blog preview size in the admin section doesnt seem to affect it. Any tip?

Thanks,
Sam 

Quote · 8 Jun 2013

I think this is doable by editing the rss script, I'm not available this weekend but on Monday I'll look into this for you.

I'd like to contribute my knowledge back to the community whenever I can.

Quote · 9 Jun 2013

 

I think this is doable by editing the rss script, I'm not available this weekend but on Monday I'll look into this for you.

I'd like to contribute my knowledge back to the community whenever I can.

 thanks sir!

Quote · 9 Jun 2013

I found it.

It's the file called BxDolRssFactory.php under:  Dolphin root directory/inc/classes

full path to file: Dolphin root directory/inc/classes/BxDolRssFactory.php

Look for this line (line 59 to specify):  $iUnitLimitChars = 2000;//(int)getParam('max_blog_preview');  

The max preview characters is 2000 with spaces, you can estimate/calculate and change to your liking.

MAKE SURE TO RENAME/BACK UP that file  (BxDolRssFactory.php) before you make the changes. I usually name the original file to whatever_old.php so I can go back if something goes wrong.

Let me know if that works.

Good luck

Quote · 10 Jun 2013

clear all Dolphin caches after editing by the way.

Quote · 10 Jun 2013

 

clear all Dolphin caches after editing by the way.

 Sir thanks for all the help. Its working perfectly. I really wonder how easy to configure things like these were not added as configurable in the dashboard. Anyway, salamat!

Sam


Quote · 11 Jun 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.