Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Display content based on text in an article?
Hi everyone,
I’m curious if the following is possible. I have a number of articles on a client’s site that allows a user to download a PDF file or related material but there’s also a number of articles that don’t use PDF support files as well. In addition, I have a side module that provides info on what folks will need to view PDF files and where they can get the reader (basically, a PDF info module). Is it possible to have this module show up only on pages where the article’s text references a PDF file?
I know you can use keywords and custom fields to display conditional info but was wondering if there’s a way for TXP to actually look for the word PDF within the body of an article.
Thanks!
- Michael
Offline