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 /

Silverstripe book - "showing related page recipe"


Reply


4 Posts   921 Views

Avatar
Glassboy

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?

Avatar
Willr

Forum Moderator, 5513 Posts

12 May 2011 at 1:47pm

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

Avatar
Glassboy

Community Member, 9 Posts

12 May 2011 at 10:14pm

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

Avatar
moloko_man

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?