Category not available during Link/Product (or any category item) creation

3 views
Skip to first unread message

Alexander Obuhovich

unread,
May 27, 2011, 5:55:51 AM5/27/11
to In-Portal Bugs
There is a "Parent Section" (virtual field: CategoryId) on each category item adding/editing page.

This field allows to place category item into a specific category. This functionality works like a charm, but problem happens, when you need to set another field's value based on the category, where category item is added.

Usually method OnBeforeItemCreate is used for this kind of operation. Strange, but this CategoryId field has no value in this method, however it's clearly is specified on category item creation screen.


Ready for testing.

category_item_onbeforeitemcreate_missing_category_id.patch

Phil -- wbtc.fr --

unread,
May 27, 2011, 6:06:47 AM5/27/11
to in-port...@googlegroups.com
would this patch let us to choose the primary category on suggest templates?

2011/5/27 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.

Alexander Obuhovich

unread,
May 27, 2011, 9:37:39 AM5/27/11
to in-port...@googlegroups.com
Nope. You already can choose it via that field.

Simply add <inp2:m_RenderElement name="inp_edit_options" prefix="l" field="CategoryId" title="lu_title_ParentCategory"/> tag on link suggest form.

Also you can replace prefix="l" to prefix="n" to make it work for articles too.

Phil -- wbtc.fr --

unread,
May 27, 2011, 9:48:30 AM5/27/11
to in-port...@googlegroups.com
does this answer solves this subject?


2011/5/27 Alexander Obuhovich <aik....@gmail.com>

Alexander Obuhovich

unread,
May 27, 2011, 10:01:32 AM5/27/11
to in-port...@googlegroups.com
Actually it does, since In-Portal 5.0.0 version. I'll write there too.

Phil -- wbtc.fr --

unread,
May 27, 2011, 10:09:41 AM5/27/11
to in-port...@googlegroups.com
ok, cool to know there's finally an solution !

2011/5/27 Alexander Obuhovich <aik....@gmail.com>
Reply all
Reply to author
Forward
0 new messages