1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

class MetaTag extends DataObject {

   static $db = array(
      'Name' => 'Text',
      'http_equiv' => 'Text',
      'Content' => 'Text',
   );

    static $has_one = array(
      'Page' => 'Page',
   );
/* This will limit each meta tag to being attached to one page, if you want the same meta tag to be available on multiple pages, look at using a many_many relationship */

function getCMSFields_forPopup() {
      return new FieldSet(
         new TextField('Name'),
new TextField('http_equiv'),
         new TextField('Content')      
      );

   }


}
?>