Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Silverstripe book - "showing related page recipe"

Go to End

4 Posts   1172 Views


Community Member, 9 Posts

11 May 2011 at 2:15pm

In the code section of 11.7.4 Finding Pages bykeyword there is a statement

$pageKeywords = explode(',',$this->getContextNavKeywords());

Am I right in thinking that getContextNavKeywords is a function that hasn't been included in the sample code?


Forum Moderator, 5523 Posts

12 May 2011 at 1:47pm

There is now a couple SilverStripe books out. Which one are you reading?


Community Member, 9 Posts

12 May 2011 at 10:14pm

Silverstripe: The Complete Guide to CMS Development. Schommer and Broschart 2009


Community Member, 72 Posts

13 May 2011 at 3:08am

As far as I can see that function isn't included in sample code, but it looks like its just a simple function that grabs the text from inside the variable "ContextNavKeywords" in the static $DB (see listing 11.26, 3 pages back)

@Willr What other Silverstripe books are out there?