Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Manu/Navigation helper functions
#5
mvlcek Wrote:
RobA Wrote:(I' really like a standard way of caching all of the menu data as an XML file to get into the core rather than various plugins all doing variations of the same things, such as the i18n, the multilevel menu plugin, the pagecache plugin, etc.)

In this case all meta data (including additional fields included by e.g. the Custom Field plugin) of the pages must be included in the cache, i.e. everything but the content.
if everything is accessible in an array indexed by slug, whose values are arrays with the meta data (values indexed by the names), this would be really useful.

Off the top of my head I'd prefer a simplexml file/variable rather than a flat array, set up something like this:
Code:
<pages>
  <page attributes (hidden, etc.)>
      <title>This is the Title</title>
.
.
.
      <customfield1>whatever</customfield1>
      <subpages>
        <page attributes (hidden, menu order, etc)>
...
        </page>
      </subpages>
  </page>
</pages>

So every page has a set of children that are the fields of the page, and a <subpage> child that can recursively hold more pages.

I'd also like to see the page nodes arranged as per the menu-order parameters. so it would be ewasy to get a next/previous page from the structure.

-Rob A>
Reply


Messages In This Thread
Manu/Navigation helper functions - by RobA - 2011-04-30, 05:08:18
Manu/Navigation helper functions - by mvlcek - 2011-04-30, 21:51:32
Manu/Navigation helper functions - by mvlcek - 2011-04-30, 21:59:26
Manu/Navigation helper functions - by RobA - 2011-05-01, 02:49:41
Manu/Navigation helper functions - by mvlcek - 2011-05-03, 00:11:53
Manu/Navigation helper functions - by RobA - 2011-05-03, 02:05:16
Manu/Navigation helper functions - by n00dles101 - 2011-05-03, 03:21:09
Manu/Navigation helper functions - by RobA - 2011-05-04, 00:08:06



Users browsing this thread: 1 Guest(s)