Add "parent category" field in "sub category"

6 posts by 2 authors in: Forums > CMS Builder
Last Post: February 2, 2009   (RSS)

Hi Sir

[font "Verdana"]Our category is create by consoling custom service.
There is a three level category. "parent category , sub category and product detail".

We would like to add "parent category" field in "sub category".
To help user to know which sub category is [font "Arial"]belong to parent category. like below:
[font "Verdana"]
Is it possible to create the field by ourself in custom code?

Thanks a lot! have a nice day!

[img]http://www.esupport.tw/add_field.jpg[/img]

-Jax H.
Attachments:

add_field.jpg 34K

Re: [JH] Add "parent category" field in "sub category"

By Dave - January 28, 2009

Hi JH,

This may or may not be possible.

Try adding the parent fieldname (check what it is) the the "Listpage Fields" list like we did in this last post:
http://www.interactivetools.com/forum/gforum.cgi?post=68705#68705

It will either display the parent number of parent name, hopefully the name. Give it a try and let me know if it works for you.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Add "parent category" field in "sub category"

hi dave

I got an error.
------------------------------------------------------------------
Notice: Undefined index: parent_category in /var/www/vhosts/ourDomain/httpdocs/_pj/tfh/cmsAdmin/lib/menus/default/list_functions.php on line 309 Warning: array_key_exists(): The second argument should be either an array or an object
------------------------------------------------------------------

[font "Verdana"]It display parent number.
I hope it can display parent name.

Because this is custom category.
Hope I can add the filed in CMS Builder directly.

Thanks a lot and have a nice day!


-JH




-Jax H.

Re: [JH] Add "parent category" field in "sub category"

By Dave - January 29, 2009

Hi JH,

I can take a look directly if you like. Email CMS and FTP details to dave@interactivetools.com along with a link to this post and the section you want the field added to. (Email, don't post login details to the forum).

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [JH] Add "parent category" field in "sub category"

By Dave - February 2, 2009

Hi JH,

I responded to your email and upgraded your CMS Builder to 1.25 and added the parent field.

Feel free to respond to my last email if you have any more issues.

Thanks!
Dave Edis - Senior Developer
interactivetools.com