Blue and gold Cloud patterns Dawn at the pier Abstract weed Capybara

31st January, 2004

Ch-ch-ch-changes. Small ones.

Filed under: Technology, — bsag @ 07:02 PM

David mentioned that my main feed (the one linked by the RSS 1.0 button in the sidebar) was only showing the main part of the entry, and not the continuation that you see if you click the “More…” link at the bottom of some entries. It really wasn’t supposed to be like that, and for ages, I’d been convinced that it showed everything but the comments. Anyway, I’ve put that right now, and the feed shows the entire post. Next time I’ll remember to actually subscribe to my feed myself so that I can see if it’s working…

This prompted me to fix another annoyance with the site. I’ve now allowed HTML and Textile in the comments, which I’m sure many people will heave a sigh of relief over. I was getting irritated myself by not being able to construct decent links in the comments. A side effect is that you can’t just leave a blank line to start a new paragraph. The easiest thing to do is to use the Textile markup of ‘p. ’ (without the quotes) before your new paragraph.

I did also try to see if I could get the search box in the sidebar to search comments as well as entries, but I couldn’t find a solution—does anyone know how to do this?

  1. 1

    p. Thanks for fixing your feed -- I wouldn't like to think anyone was missing out. smile

    p. Regarding the search box, you can do one of two things.

    p. If you want it to always search entries and comments, go into your mt.cfg file and uncomment the line that says "SearchElement both".

    p. If you want the user to have the option of searching just entries, just comments, or both entries and comments, you need to put some radio buttons in your form:

    p. <input type="radio" name="SearchElement" value="entries" /> Search entries

    p. <input type="radio" name="SearchElement" value="comments" /> Search comments

    p. <input type="radio" name="SearchElement" value="both" /> Search both entries and comments

    p. Hope that helps. smile

    p. I don't mean to make more work for you, but since you've enabled HTML in comments, perhaps a list of which tags are allowed would be useful? There's a plugin which can generate the list for you, on the Mini Plugins page -- it's called SanitizeSpecs.

    p. Right, now I'm off to teach myself Textile codes... wink----- David: The searching is fixed now. I think. My brief test worked OK, anyway.

    by bsag @ 01/02/2004 12:02 pm • Permalink

  2. 2

    You might also want to change your default search template to include the buttons. I've just implemented this on my site and realised that if you exclude comments from your original search and your search result turns up empty, you need to go back to the page you started out from to include the comments in your search. If you put them on the search page too you can add them in from there and do a new search that includes them.


    by djn1 @ 07/02/2004 10:02 am • Permalink

blog comments powered by Disqus

Powered by ExpressionEngine :: © www.rousette.org.uk, 2002-2008 :: [XHTML] [CSS] [508]