Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
How can I display a search title in search result?

Example, I search, "yybd" and then it redirect to search page. No matter the result is found or not, it will show:

Result page with "yybd"

How can I make search title display? I trying to put <cms:show k_search_title />, doesn't work, nothing show.
@nsy, please try this :D
Code: Select all
<cms:set keyword = "<cms:gpc 's' />" scope='global' />
<cms:show keyword />
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Thanks, @trendoman. Will try that later, but what is "scope" for?
@nsy, scope was used also here http://docs.couchcms.com/tutorials/port ... -form.html
The 'global' used in each set statement instructs the set tag to set the variable at a global scope i.e. someplace where the variable is accessible throughout the page. The default scope of set is 'local' in which case a variable is set within the parent tag within which the set statement is used (if the parent tag supports scope..).
And also here http://docs.couchcms.com/tags-reference/set.html
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
4 posts Page 1 of 1