Hello all, i have been using CMS Made Simple for almost a year now. At the moment i have got a one-page-website project, i am unable to figure out how to do it with CMS Made Simple, i have found some UDT's, but they weren't exactly what i desired.
But i know it is possible, because i have seen few one-page CMS Made Simple websites
Basically, when i call {content} in my template, is it possible to call all the pages that are created?
So what i want is to show all pages in my home page.
I am using the latest release of CMS Made Simple with CGExtensions.
I will be happy if you can assist me, thank you.
Help With One Page Template - Load all pages in content
-
- New Member
- Posts: 5
- Joined: Sat Jul 28, 2012 9:48 am
Re: Help With One Page Template - Load all pages in content
I think you will need to use CGSimplesmarty module to call all the other pages into one page, read the Help...
-
- New Member
- Posts: 5
- Joined: Sat Jul 28, 2012 9:48 am
Re: Help With One Page Template - Load all pages in content
Thanks for the respond, i have played with it a little and i wasn't able to dump all the pages into one.
I found this solution, creating a UDT called {content_dump}
However it doesn't work with the latest version of CMS Made Simple, as "m" is no longer supported. I have tried without the "m" but the page showed up as blank.
It works with older version of CMS MS.
Is there a way to make it work for 1.10.x version, using CgSimple or something else? Because i wasn't able to.
I am fine with downgrading the version, if there is no alternative to this.
I found this solution, creating a UDT called {content_dump}
Code: Select all
global $gCms;
$cntnt = $gCms->getContentOperations();
foreach ($cntnt->GetAllContent() as $page) {
$page_data = $cntnt->LoadContentFromAlias($page->mAlias);
echo($page_data->mProperties->mPropertyValues['content_en']);
echo "<br/>";
}
It works with older version of CMS MS.
Is there a way to make it work for 1.10.x version, using CgSimple or something else? Because i wasn't able to.
I am fine with downgrading the version, if there is no alternative to this.