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

Using entry single variable names when Plugin tag inside weblog:entries tag

Development and Programming

danofames's avatar
danofames
1 posts
18 years ago
danofames's avatar danofames

I’m working on a plugin to display entries with a reverse relationship to the selected entry. I started to use the reverse_related_entries tag until I found that it is not possible to filter the entries returned by category or other properties.

the default variable names for the related entries are available within reverse_related_entries tag, but don’t seem to be within my plugin’s tag.

{exp:weblog:entries weblog="weblogname"}
<h2>{title}</h2>
  {exp:related:reverse category="{category_id}" entry_id="{entry_id}"}
  <h3>{title}</h3>
  {/exp:related:reverse}
{/exp:weblog:entries}

with the above code, the $TMPL->tagdata variable has the actual value for {title} of the entry determined by the exp:weblog:entries tag.

I do understand I can use a different variable name within the custom tag, but I’d much prefer to use the real variable name, for the sake of cleanliness or whatever.

is this possible?

       

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.