2009-08-19, 00:11:54
Hi, and thanks for this great CMS.
I'm trying to find a solution to build a kind of "Events page" where I could post new events as they happen.
For exemple :
I don't want to edit the "Events page" each time there is a new event , so I think it could be interesting to have functions in theme editing to get child pages and content of those pages :
The structure of pages would be :
* Events page
** Event 3
** Event 2
** Event 1
and the theme for "Events page" would do something like this :
I hope what I tried to explain is quite clear (I'm french :/ )
Maybe it is already possible ?
Thanks !!
I'm trying to find a solution to build a kind of "Events page" where I could post new events as they happen.
For exemple :
Quote:Events :
05/05/2009 Event 3
During this event ...
03/03/2009 Event 2
During this event ...
01/01/2009 Event 1
During this event ...
I don't want to edit the "Events page" each time there is a new event , so I think it could be interesting to have functions in theme editing to get child pages and content of those pages :
The structure of pages would be :
* Events page
** Event 3
** Event 2
** Event 1
and the theme for "Events page" would do something like this :
Code:
foreach (get_children(current_page) as $child) {
echo $child->get_title();
echo $child->get_content();
}
I hope what I tried to explain is quite clear (I'm french :/ )
Maybe it is already possible ?
Thanks !!