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.

Odd behavior of path variables in single entry page

October 10, 2012 11:21pm

Subscribe [2]
  • #1 / Oct 10, 2012 11:21pm

    onedogmedia

    31 posts

    I’ve been using path variables for years with no problem, i.e. {path='template_group/template'}.  I am working with a channel with a channel field group that has two textarea fields.  In a single entry page, path variables typed into one field work fine.  In another they behave like plain text and don’t show the proper path.

    So for instance the url for {path='template_group/template'} would result in:

    <a href="http://www.example.com/site/info/{path=template_group/template/single_entry_123}">http://www.example.com/site/info/{path='template_group/template/single_entry_123'}</a>

    as the exact URL in the HTML, rather than the EE tags getting parsed and resulting in:

    <a href="http://www.example.com/template_group/template/single_entry_123">http://www.example.com/template_group/template/single_entry_123</a>

    I’m befuddled!  What am I missing?

    The only difference between the two textarea fields is the size of the text area and the fact that one is required, one isn’t, one is searchable, one isn’t, and the formatting buttons display or don’t.  They are both formatted as XHTML.

    EE 2.5.3

    Any ideas?  Grateful for insight…

  • #2 / Oct 12, 2012 3:39pm

    Kevin Smith

    4784 posts

    Hi oliversitedesign,

    I think you’ve run into a bug here. Try this fix and let me know if that takes care of it for you!

  • #3 / Oct 12, 2012 4:13pm

    onedogmedia

    31 posts

    Well great.  I think that took care of it!  And I did notice later that it seemed to work for the first entry okay, but subsequent ones didn’t work.  So to clarify, I commented out line 498 in EE_Typography.php, as listed in bug report 18287:

    $this->initialize();

    rather than doing the other fix as suggested in report 18239.

    Thank you!  I thought I was losing it!  😉

     

  • #4 / Oct 12, 2012 5:01pm

    Kevin Smith

    4784 posts

    No problem! It’s certainly a strange bug, so I’m glad we could nail it that quickly for you. If you need help again, just let us know!

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

ExpressionEngine News!

#eecms, #events, #releases