Showing news from particular category

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
darac
Forum Members
Forum Members
Posts: 11
Joined: Wed Apr 17, 2013 9:28 pm

Showing news from particular category

Post by darac »

I have CMSMS installed in folder "blog" and I'm using it as blog.
Is there any way to show news from a particular category somewhere outsite folder "blog", in some .php file that doesn't relate to CMSMS in any way?
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Showing news from particular category

Post by Wishbone »

You can have your blog produce an RSS feed that the other PHP file can read.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Showing news from particular category

Post by velden »

Not sure:

Let cmsms create an url for reference (of course with category etc in it) and append '&showtemplate=false' to that url (of first argument then '?showtemplate=false')

Use that url from within your other php file.
darac
Forum Members
Forum Members
Posts: 11
Joined: Wed Apr 17, 2013 9:28 pm

Re: Showing news from particular category

Post by darac »

thanks guys. I haven't thought about RSS at all
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Showing news from particular category

Post by Wishbone »

To expand on Velden's idea, you can do the &showtemplate=false trick, and <__iframe> it into any other PHP or HTML.
darac
Forum Members
Forum Members
Posts: 11
Joined: Wed Apr 17, 2013 9:28 pm

Re: Showing news from particular category

Post by darac »

I was thinking about that <__iframe> solution
But it would be great if I could set up RSS to show fresh news
darac
Forum Members
Forum Members
Posts: 11
Joined: Wed Apr 17, 2013 9:28 pm

Re: Showing news from particular category

Post by darac »

is it possible somehow to do showtemplate=my_template
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Showing news from particular category

Post by Jos »

this might help: https://www.cmscanbesimple.org/blog/cre ... t-a-module

or another idea:
you could use the Cache remote file plugin. Set the url to a hidden page with your news/blog items and a blank template if you wish. Then you could tweak the destination folder and name in the plugin file (top lines with settings)
http://dev.cmsmadesimple.org/projects/cacheremotefile
Post Reply

Return to “The Lounge”