Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
452 views
in Q2A Core by
I find there is a "Include full text in feeds:" option in the "RSS feeds" configuration panel. I am wondering whether there is an options/method to only show excerpt instead of the "full text" or nothing for RSS feeds?

Thanks!
Q2A version: 1.5.4

1 Answer

+1 vote
by
selected by
 
Best answer
"Include full text in feeds" is option of displaying "description node". Strict expression is "Include description node in feeds". In order to excerpt content, you may have to hack qa-include/qa-feed.php(L402 [V1.5.4]). Q2A-Api(qa-include/qa-util-string.php/qa_shorten_string_line()) is helpful.
by
Thanks for directing me to the line in the code! sama55. I was thinking about writing a plugin to overwrite certain functions. But after checking the qa-feed.php, I must say hacking it is a better choice. I made a copy of the qa-feed.php to qa-feed-excerpt.php and change the qa-index.php to make the new php file to handle the rss feed request.
by
Excellent !!
...