• Home
  • Support
  • Forum
  • Cobalt 8
  • What`s the php code to display only the "Add new" ( for add new chield ) button of a parent field

jimie VIP
Total posts: 531
28 Apr 2014 08:38

Hello Sergey

Can you help me with the php code needed to display on the "Add new" button of a parent field or to grab the link corresponding to that button ?

rgds

Last Modified: 02 Sep 2021


Sergey
Total posts: 13,748
28 Apr 2014 13:37

Why do not you just copy that link in HTML source?


jimie VIP
Total posts: 531
28 Apr 2014 13:50

Because doing that it will simply put the same link for all article.. and that`s not oky


Sergey
Total posts: 13,748
28 Apr 2014 14:01

Change parent_id parameter there.

  1. Look the link
  2. Craete a link with the same parameter and but values you need.
  3. Put it through JRoute

jimie VIP
Total posts: 531
28 Apr 2014 14:21

Thanks a lot Sergey, that did it, yeeee ! :)

Powered by Cobalt