Is it possible to list all of sub-pages content in one page ???

General project discussion. NOT for help questions.
Post Reply
Saulo Padilha
Forum Members
Forum Members
Posts: 17
Joined: Wed Jan 30, 2008 12:59 pm
Location: Juiz de Fora - MG, Brazil

Is it possible to list all of sub-pages content in one page ???

Post by Saulo Padilha »

I want to do is something like this:

My pages structure is:

1 - Home
2 - Employees
2.1 - Bob
2.2 - Paul
2.3 - John

etc ..

What I want is that page "Employees" shows all the names and description of the Employees.

the page "Employees" HTML would be like this:

Bob
Bob works on "X" since bla bla bla ...

Paul
Paul is a engineers that bla bla bla

John
John doesn't do anything bla bla bla ...


In other words, a list of sub-pages:

{sub-page1 title}
{sub-page1 content

{sub-page2 title}
{sub-page2 content

{sub-page3 title}
{sub-page3 content

I could use the {menu ...} tag if it also list the {content} attribute, but it doesn't.

I guess that I have to use a structure like:

{foreach item=current from=contents}

{title}
{content

{/foreach}


Does anybody know how to do that ???

sorry about my english.
Saulo Padilha
Forum Members
Forum Members
Posts: 17
Joined: Wed Jan 30, 2008 12:59 pm
Location: Juiz de Fora - MG, Brazil

Re: Is it possible to list all of sub-pages content in one page ???

Post by Saulo Padilha »

Many thanks to Calguy !! He told me to use the "get_page_content" method from the "cgsimplesmarty" module and create a new menu template.


I installed the "cgsimplesmarty" module and create a menu template like this:
{if $count > 0}

{foreach from=$nodelist item=node}

  {$cgsimple->get_page_title($node->alias)}
  {$cgsimple->get_page_content($node->alias)}

{/foreach}

{/if}
on "Employee" page I use
{cms_module module="menumanager" template="listar_conteudo" start_level="2"}

It works perfect !!!!!

THANKS  !!
Post Reply

Return to “General Discussion”