Incorrect Prefix Called in Navbar

0 views
Skip to first unread message

Phil -- wbtc.fr --

unread,
Nov 17, 2010, 11:51:25 AM11/17/10
to in-port...@googlegroups.com
Hello,

in in-news/articles/modify_articles.tpl, we display the navbar using the following code

<inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_MyAccount,lu_title_MyArticles,__item__,lu_title_ModifyArticle" templates="platform/my_account/my_account,in-news/my_account/my_articles,__default__,in-news/articles/modify_article"/>

If I use it in another category, where I actually display links, then "__item__" is referring to the item you try to edit, but using default "l" prefix, leading to a 404 page, here is debug output:

Notice: Requested ID for prefix l not passed in w:\core\kernel\db\db_event_handler.php on line 327
Notice: ItemLoad Permission Failed for prefix [l] in checkItemStatus, leading to "404 Not Found" in w:\core\kernel\db\db_event_handler.php on line 488

If I remove "__item__" then page loads correctly. I checked for category permissions, I setup rights to view links and news. Why In-Portal is looking for "l" prefix, rather than another one? May it belong to a specific permission, I didn't tried all of them to be honest :-)

Phil.

Alexander Obuhovich

unread,
Nov 17, 2010, 11:56:38 AM11/17/10
to in-port...@googlegroups.com
Category item editing link should be build using item's primary category (from "My Articles" page). That "__item__" keyword tries to use module root category to detect what is current item (link/article/etc.). When both link is located under in-news module root category or it's sub category, then it all breaks down.

We need to somehow get rid of "module root categories" (we have sparate discussion for that), where we should change navigation bar to be more independent.

--
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.



--
Best Regards,

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

Phil -- wbtc.fr --

unread,
Nov 17, 2010, 12:00:16 PM11/17/10
to in-port...@googlegroups.com
ah yes, that's the missing thing, this is the root folder for in-link :)

Well, I just removed this entry and it works, yes maybe root folder removing will also solve this problem.

2010/11/17 Alexander Obuhovich <aik....@gmail.com>
Reply all
Reply to author
Forward
0 new messages