5121 Posts in 1527 Topics by 1119 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1166 Views |
-
how to access current page properties from page controller

13 March 2009 at 6:16am Last edited: 13 March 2009 6:19am
Hi, I'm trying to build a link feed of local site pages whose meta tags match the current page. I'm having some difficulty accessing the current pages' meta tags. I know that so far, I want to return something like this:
$MetaTags = MetaKeywords of the current page, how do I get this?
return DataObject::get("SiteTree", "MetaKeywords LIKE '%$MetaTags%'");
Can anyone point me in the right direction?
Thanks!
-
Re: how to access current page properties from page controller

14 March 2009 at 3:44am
I found the keywords in $this->MetaKeywords
| 1166 Views | ||
|
Page:
1
|
Go to Top |

