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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Silverstripe book - "showing related page recipe"


Go to End


4 Posts   1409 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, 5523 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?