We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Issue with tag pair detection?

Development and Programming

Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

Running into an issue where tag pairs detection is maybe over aggressive.

In the following code snippet the tag pair detected if from the first {ff-file} to the first matched closing tag. This isn’t quite what I need to happen as the first two occurrences of {ff-file} should be treated as single tags and not part of a tag pair. Essentially a pair should not contain an occurrence of itself for this extension.

Any ideas or suggestions on how to resolve this issue would be great!

<div>
<a href="http://{ff-file}">{ff-file}</a>
</div>

<div>
{ff-file}
<ul>
    <li>src = {src}</li>
    <li>thumbnail = {thumbnail}</li>
    <li>filename = {filename}</li>
    <li>width = {width}</li>
    <li>height = {height}</li>
    <li>width_height = {width_height}</li>
</ul>
{/ff-file}
</div>
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.