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

Problem!!!

Development and Programming

vincitytaymodaimo's avatar
vincitytaymodaimo
1 posts
6 years ago
vincitytaymodaimo's avatar vincitytaymodaimo

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"}

{title}

{exp:related:reverse category="{category_id}” entry_id=”{entry_id}”}

{title}

{/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?

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones

What version of ExpressionEngine are you using? That is not a valid tag.

       

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.