Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Geting in-built search to report text of <txp:file_download id="N" />
Hi Fellow TXPers,
Something I’ve pondered a few times, tried to solve and failed — is it possible to get the output of <txp:file_download id="123" />
which when rendered looks like Download: Film List
(“Download” comes from the form and “Film List” from the Description field for that File
) to be picked up in TXP search?
I’ve added wet_haystack, a valuable improvement on default, but that also does not seem to offer a route to including the exposed ‘meta’ of File
and some other types of content (e.g Links
too I think) in the results of TXP search.
Is there an easy answer, or do most people just do something like add a Google CSE and not use TXP search?
Thanks very much indeed for any comments, cheers -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
#2 2010-09-02 20:17:26
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Geting in-built search to report text of <txp:file_download id="N" />
As the search only searches articles, the only way I can think of is to put the file download list inside an article ;)
Offline
Re: Geting in-built search to report text of <txp:file_download id="N" />
I am including the code <txp:file_download id="123" />
within the Body of an Article, and it renders perfectly for the reader/bot — but TXP search appears not to see the copy that the file_download produces, such as the content of the Description field.
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
#4 2010-09-02 21:06:19
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Geting in-built search to report text of <txp:file_download id="N" />
Ah yes of course, the db is searched and the txp tags are stored in the db (they only get parsed when the page is viewed).
Sorry, I’m not being very helpful today…
Offline
Re: Geting in-built search to report text of <txp:file_download id="N" />
AhHa!
Sorry, I’m not being very helpful today…
No, no, quite the contrary, you are being very helpful. I see now that I will not, ordinarily, get this into search results, unless the page us viewed.
So a Google CSE would do the trick as the Google bot would be viewing the page.
Thanks again! Cheers, -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline