GetRelated doesn't use a tv prefix, just
should do.
[ed. note: markh last edited this post 12 years, 2 months ago.]
-
- 8 Posts
I swear I tried it without a prefix, but I managed to screw something else up then apparently. Works fine now. Thanks a bunch. Also, this is a great add on that many have waited for - oh so - long!
Glad you like it!
FYI, I added a feature to the list to implement a &tvPrefix property so we can get more in line with getResources:
https://github.com/Mark-H/getRelated/issues/5
New release available:
1.2.0-pl
[#4] Add &stopwords property to exclude stopwords on a snippet-call basis
[#6] Properly support multiple (different) snippet calls per page.
Get rid of the rank (amount of points) in the default tplRow chunk.
Added support for Russian. Thanks createit!
-
- 138 Posts
@Mark Hamstra
Hi Mark, and thanks for this great plugin.
The plugin is working fine, but I have just got a little problem, I would like to include the first image of my article into getRelated.
I have tried to include [[+image]] into the row tpl but with no success ( I am a newbie in Modx)
Is there an easy way to do it ?
Do I need to create other chunks or snippet in order to make it work ?
Thanks
Webdesigner and musician.
Hello,
What is your getRelated call?
-
- 138 Posts
@AMDbuilder
Hi, thanks for taking the time to answer.
Ok here is what I am using:
To call the plugin:
[[getRelated? &limit=`5` &tplRow=`getrelatedRow`]]
Chunck named "getrelatedRow":
<li>
<a href="[[~[[+id]]]]" title="[[+longtitle:default=`[[+pagetitle]]`]]">
[[+longtitle:default=`[[+pagetitle]]`]] ([[+rank]])
[[+image]]
</a>
</li>
Tks
Webdesigner and musician.
You need to add &returnTVs=`image` to the call for that to work. Granted if your image tv name is something other than image you will need to change it accordingly.
-
- 138 Posts
Whao, thanks it worked. I just need to redesign that. But get related work fine now.
Thanks for your time again.
Webdesigner and musician.