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?
Showing news from particular category
Re: Showing news from particular category
You can have your blog produce an RSS feed that the other PHP file can read.
Re: Showing news from particular category
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.
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.
Re: Showing news from particular category
thanks guys. I haven't thought about RSS at all
Re: Showing news from particular category
To expand on Velden's idea, you can do the &showtemplate=false trick, and <__iframe> it into any other PHP or HTML.
Re: Showing news from particular category
I was thinking about that <__iframe> solution
But it would be great if I could set up RSS to show fresh news
But it would be great if I could set up RSS to show fresh news
Re: Showing news from particular category
is it possible somehow to do showtemplate=my_template
Re: Showing news from particular category
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
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