public
Description: Midgard Components Framework 3rd generation
Homepage: http://www.midgard-project.org
Clone URL: git://github.com/bergie/midcom.git
Add ID of current page to context too
bergie (author)
Tue May 27 08:02:32 -0700 2008
commit  2b21df28a4049436e8806085f6483f15b00247ee
tree    a639f8090f41fc9b92cf4027f52489094b99257b
parent  07edcc5d00bde06e33ded90077c7240f6ec80c8e
...
68
69
70
 
71
72
73
...
68
69
70
71
72
73
74
0
@@ -68,6 +68,7 @@ class midcom_core_services_dispatcher_midgard implements midcom_core_services_di
0
         $guids = $mc->list_keys();
0
         foreach ($guids as $guid => $array)
0
         {
0
+ $page_data['id'] = $_MIDGARD['page'];
0
             $page_data['guid'] = $guid;
0
             $page_data['title'] = $mc->get_subkey($guid, 'title');
0
             $page_data['content'] = $mc->get_subkey($guid, 'content');
...
62
63
64
 
65
66
67
...
62
63
64
65
66
67
68
0
@@ -62,6 +62,7 @@ class midcom_core_services_dispatcher_midgard2 extends midcom_core_services_disp
0
             $current_page = $page;
0
         }
0
         
0
+ $page_data['id'] = $current_page->id;
0
         $page_data['guid'] = $current_page->guid;
0
         $page_data['title'] = $current_page->title;
0
         $page_data['content'] = $current_page->content;

Comments

    No one has commented yet.