Help With One Page Template - Load all pages in content

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
tumaykilinc
New Member
New Member
Posts: 5
Joined: Sat Jul 28, 2012 9:48 am

Help With One Page Template - Load all pages in content

Post by tumaykilinc »

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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Help With One Page Template - Load all pages in content

Post by Dr.CSS »

I think you will need to use CGSimplesmarty module to call all the other pages into one page, read the Help...
tumaykilinc
New Member
New Member
Posts: 5
Joined: Sat Jul 28, 2012 9:48 am

Re: Help With One Page Template - Load all pages in content

Post by tumaykilinc »

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}

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/>";
}
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.
Post Reply

Return to “Layout and Design (CSS & HTML)”