Dear all
First I want to say to the creators of connectivity v6 that - as I have been playing around with the demos - I came to appreciate that this is a great product! Fun to work with and interesting...It definitely fired up quite a few neurons in my brain!
Now my questions. I have two columns containing a UNIX timestamp. In the front end I want to display them as a date in the format say Y-m-d.
I managed to do this for each field in two ways.
The first: I created a function of type php on similar lines as in https://www.chronoengine.com/forums/posts/t102515/how-to-sum-two-or-more-collums-in-table-format.html
The second: I created an HTML view in which I used the same php code as the one I had in the php function to convert the UNIX datestamp into a date Y-m-d
However, to create 2 functions (or 2 HTML views) one for each field seems too much. Is there a way to define a php function that takes parameters? Can I pass the fields as a parameter to the php function? So then I would define it only once and use it multiple times on several columns.
I hope my explanations are clear🙂
Thank you
Kind regards
Amelia
First I want to say to the creators of connectivity v6 that - as I have been playing around with the demos - I came to appreciate that this is a great product! Fun to work with and interesting...It definitely fired up quite a few neurons in my brain!
Now my questions. I have two columns containing a UNIX timestamp. In the front end I want to display them as a date in the format say Y-m-d.
I managed to do this for each field in two ways.
The first: I created a function of type php on similar lines as in https://www.chronoengine.com/forums/posts/t102515/how-to-sum-two-or-more-collums-in-table-format.html
The second: I created an HTML view in which I used the same php code as the one I had in the php function to convert the UNIX datestamp into a date Y-m-d
However, to create 2 functions (or 2 HTML views) one for each field seems too much. Is there a way to define a php function that takes parameters? Can I pass the fields as a parameter to the php function? So then I would define it only once and use it multiple times on several columns.
I hope my explanations are clear🙂
Thank you
Kind regards
Amelia