ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

pulling weblog entries doesn't work with PHP parsed on output

November 24, 2010 12:02pm

Subscribe [2]
  • #1 / Nov 24, 2010 12:02pm

    mzuser

    47 posts

    I’m using php to get a slug from my url and pull a specific video. My slug is definitely set, and this code works on input, but due to some other things I’m doing on the page, I need to parse the PHP upon output. Is there any work around for this?

    {exp:weblog:entries weblog='videos' status="open|hide" dynamic="off" url_title='<?php echo $slug; ?>' limit='1'}
  • #2 / Nov 24, 2010 12:56pm

    mzuser

    47 posts

    I figured out a work around. I included a separate template that renders on input, then one that renders on output.

  • #3 / Nov 24, 2010 5:04pm

    Ingmar

    29245 posts

    Sounds good. Please post again in case there’s anything else.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases