Store Front Contact Us Projects Blog PHP Tutorials Community Forums Support Downloads Client Area Homepage
Insane Visions
Insane Visions - Top Navigation

Welcome Guest!. Please Login or Sign-Up to use some features of Insane Visions

Insane Visions :: Viewing Topic - Including Content in Templates
Home > OneCMS    



Typeman




Joined: 05/30/08
Posts: 1
Online Tag:




User is Online
Posted: 05-30-08 03:09 PM

Hi, Typeman here,

I'm just needing a bit of help with including articles in templates and things like that...

Here's what I've been using to for example, have news show up...

< ? php echo content("news", "10", "newstemp"); ? >

which to me translates to...

< ? php echo content("contenttype", "amount to display", "template"); ? >

But I'm having problems with getting other types of content to show...

Like Hi... I'm just needing a bit of help with including articles in templates and things like that...

Here's what I've been using to for example, have news show up...

< ? php echo content("news", "10", "newstemp"); ? >

which to me translates to...

< ? php echo content("contenttype", "amount to display", "template"); ? >

But I'm having problems with getting other types of content to show...

Like games or galleries / media. I've tried replacing the "news" part with "games" but that doesn't seem to work.

Can you help me, please?

Thanks for your time.






admin




Joined: 02/10/07
Posts: 369
Online Tag:




User is Online
Posted: 05-31-08 12:03 AM

Hello,

To list the latest games, there is a separate template used:

< ? php echo games("amount to show", "templatename"); ? >

To list the latest galleries:

< ? php echo games("amount to show", "templatename", "systemid"); ? >

You don't have to enter a system id, totally an option. Hope that helps! :)







Insane Visions - Footer
Renegade Motorhomes - Loans - Loan - Credit Counseling