blosxom :: the zen of blogging

about

  • home/about
  • features
  • colophon
  • news
  • mailing list



  • documentation for users

  • overview
  • install
  • configure
  • blog
  • view
  • flavour
  • syndicate
  • plugins
  • plugin registry
  • static
  • faq
  • use cases*
  • documentation for developers

  • overview
  • plugins
  • downloads

  • mac
  • windows*
  • everyone

  • license
  • contributed*
  • powered by

    How do I include bits of functionality only on individual entry (permalink) pages?

    Use the powerful interpolate_fancy plugin which allows for something like <?$path_info unlike="(^[^\.]+/?$)|(^$)|(index\.\w+$)">writeback stuff goes here</?> . What this says is "if the URL/path_info doesn't look like a directory (e.g. /some/path/), isn't utterly blank (e.g. /), and isn't an index page (e.g. /some/path/index.html), it's an individual entry page, so go ahead and include the writeback bits."

    Author: Rael Dornfest
    Category: /faq/display
    Date: 2003-09-07


    SourceForge.net Logo