2011-08-05, 05:52:01
I have a one-page site in development and would like to automate a component which I place on the page via the DynPages plugin. Said component holds the markup for the in-page sections which are output to the page via the SimplePageContent plugin.
I did some research on the forums here and found two related threads, but I have to admit that I don't grok the menu_data() function. I then thought maybe the pages.array file generated for caching might help since I would "merely" have to extract the available pages.
My current, manually updated, structure looks like the following (basically the same for each section on the page):
Can someone give me a few pointers on how to extract a page list from the pages cache in 3.1b? I think I'll need an array of slugs which I can loop through and populate the above mini template with.
Help is much appreciated.
I did some research on the forums here and found two related threads, but I have to admit that I don't grok the menu_data() function. I then thought maybe the pages.array file generated for caching might help since I would "merely" have to extract the available pages.
My current, manually updated, structure looks like the following (basically the same for each section on the page):
Code:
<div id="seite-info">
<h2><?php getPageField('info',title); ?></h2>
<?php echo get_page_by_id('info'); ?>
</div>
Can someone give me a few pointers on how to extract a page list from the pages cache in 3.1b? I think I'll need an array of slugs which I can loop through and populate the above mini template with.
Help is much appreciated.