-
☆ A M B ☆
- 24,524 Posts
With pdoMenu, the wf. prefix is not necessary. The use of the prefix is to provide backwards compatibility to existing Wayfinder menus. Here is the pdoMenu documentation. There are some differences and a great many more options.
http://docs.modx.pro/en/components/pdotools/snippets/pdomenu
@ Susan
I tried without the prefix and it didnt work - that's why I thought I had found the answer, as this method works
I read all the documentation and found the shared elements that pdoTools has, but couldn't find anything other than using the prefix
Could you provide an example where it works without the prefix please
-
☆ A M B ☆
- 24,524 Posts
Well, I suppose it's there for backwards compatibility - actually I never use it - but there is no "title" field for resources. Usually "menutitle" is what is wanted, or "pagetitle". pdoTools doesn't have the "&titleOfLinks" property since you can specify your link title using the desired field name. They've tried to make pdoTools as simple and fast as possible, and adding a lot of basically redundant placeholders doesn't do that.
-
☆ A M B ☆
- 24,524 Posts
That got me to looking at the code, and I am wrong. pdomenu.class.php line 197
$row['title'] = !empty($this->pdoTools->config['titleOfLinks'])
? $row[$this->pdoTools->config['titleOfLinks']]
: $row['pagetitle'];