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?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
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?
There is now a couple SilverStripe books out. Which one are you reading?
Silverstripe: The Complete Guide to CMS Development. Schommer and Broschart 2009
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?