Hello\nHow i can add tab of my module in the task creation process? The file task_tab.view.mymodule.php add only into the view task but not in edit or creating.

asked 14 Jul '14, 14:44

ivan_mikheyev's gravatar image

ivan_mikheyev
1061521
accept rate: 20%

asked 14 Jul '14, 14:44


I think there is addedit.php
permanent link

answered 15 Jul '14, 01:03

opto's gravatar image

opto ♦
83344110132
accept rate: 10%

answered 15 Jul '14, 01:03

In which module? my own or task?
permanent link

answered 12 Aug '14, 10:10

ivan_mikheyev's gravatar image

ivan_mikheyev
1061521
accept rate: 20%

answered 12 Aug '14, 10:10

this is not automatic, you need to change the code. In tasks/addedit, there is a CTabbox and at the end of the document, there are the tabs build:\nCtabbox->add (url, name) or similiar. There, you need to add the php page for your own tab.\nAs first try, just copy one of the present add's, and you will see that tab twice.\nYou can look at the other tabs to see their general layout. Beware - this is not update-proof, because an update will overwrite addedit and your code changes.
permanent link

answered 12 Aug '14, 10:50

opto's gravatar image

opto ♦
83344110132
accept rate: 10%

answered 12 Aug '14, 10:50

i already figure out it, just need to add taks_tab.addedit.mymodule.php and it works) other question how to execute this file when i save task.

(13 Aug '14, 01:51) ivan_mikheyev ivan_mikheyev's gravatar image
there are prestore hooks (functions which are called before store). I think they can also call a prestore hook in your module. That function could do the store hanling for your variables. There is (was?) some info on these hooks in the wiki
permanent link

answered 14 Aug '14, 03:15

opto's gravatar image

opto ♦
83344110132
accept rate: 10%

answered 14 Aug '14, 03:15

on the wiki there is no usefull info for developers. only general information. I need to save my variables in new table in DB when save button in task module will be pushed

(14 Aug '14, 03:20) ivan_mikheyev ivan_mikheyev's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×4
×2
×1
×1

question asked: 14 Jul '14, 14:44

question was seen: 739 times

last updated: 14 Aug '14, 03:20

powered by Bitnami OSQA