Tag "st_CachedMenu" sets incorrect "template" parameter to menu elements (v 5.1.0)

3 views
Skip to first unread message

Alexander Obuhovich

unread,
Oct 17, 2011, 9:20:58 AM10/17/11
to In-Portal Bugs
Below is the code, that could be to display website menu top level:

<inp2:m_DefineElement name="menu_element">
<a href="<inp2:m_Link template='$template' m_cat_id='$cat_id' use_section='$use_section'/>">
<inp2:m_Param name="title"/>
</a>
</inp2:m_DefineElement>

<inp2:st_CachedMenu render_as="menu_element" category_id="1"/>

This code works before and after In-Portal 5.1.0 version. Problem arises, when developer tries to use "template" parameter directly without passing it to m_Link tag.

For example here the result of <inp2:m_Param name="template"/> tag before & after In-Portal 5.1.0 release:
  • before 5.1.0 release: "path/to/template"
  • after 5.1.0 release: "id:434" (434 is ID of a section, that is displayed in menu)

Attached patch restored pre 5.1.0 behavior related to "template" parameter value.



Ready for testing.


--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
cachedmenu_tag_pass_template_instead_of_its_id.patch

Phil -- wbtc.fr --

unread,
Oct 17, 2011, 9:31:54 AM10/17/11
to in-port...@googlegroups.com
interesting... to know the existence of this tag :-)

2011/10/17 Alexander Obuhovich <aik....@gmail.com>

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Reply all
Reply to author
Forward
0 new messages