< 052020-07-06⋎07 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
06:00*JustTB has quit (Quit: Leaving.)
06:36*JustTB has joined
14:28tcmah[m]Hi Guys, Is it possible to create a naming pattern /token for the "week #" since transplanting date? I would like to include this as opposed to [log:timestamp:short] in the log name
14:30mstenta[m]Hi tcmah - if you are self hosting you can override the naming pattern at /admin/config/log/types (iirc)
14:30mstenta[m]But you may be limited by the tokens ansible
14:31mstenta[m]Available*
14:31mstenta[m]Of course, with a custom module you can provide your own tokens too
14:31mstenta[m]So yes! It might take some coding but it's possible
14:35tcmah[m]Thanks for the prompt feedback. I'm self hosting and have since scrolled through the available tokens but couldn't find one that satisfies this requirement.
14:35tcmah[m]There is [current-date:since] but not sure if this takes a parameter?
14:36mstenta[m]Yea I think that's just "x days ago"
14:37mstenta[m]Most of those are provided by Drupal and the Token module. farmOS itself doesn't provide any tokens of its own
14:37mstenta[m](unless I'm forgetting)
14:38mstenta[m]So it would probably require writing your own in a module, then using that token in the log name pattern
14:40tcmah[m]ok thanks, this helps. Now back to the videos I go to learn how to write a custom module 😀
15:03mstenta[m]Haha great! Good luck!
15:04mstenta[m]Remember this is Drupal 7, not 8 ;-)
15:04mstenta[m]Same basic concepts but some slight differences in writing modules
15:05mstenta[m]You basically just need a .info file and a .module file
15:05mstenta[m]And you put your hook implantations (specially named functions) in the .module
15:06mstenta[m]This looks pretty good at quick glance:
15:06mstenta[m]www.valuebound.com/resources/blog/how-to
15:10tcmah[m]Awesome, thanks!
21:01*JustTB has quit (Quit: Leaving.)
22:36*JustTB has joined

< 052020-07-06⋏07 >