| 06:00 | * | JustTB has quit (Quit: Leaving.) |
| 06:36 | * | JustTB has joined |
| 14:28 | tcmah[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:30 | mstenta[m] | Hi tcmah - if you are self hosting you can override the naming pattern at /admin/config/log/types (iirc) |
| 14:30 | mstenta[m] | But you may be limited by the tokens ansible |
| 14:31 | mstenta[m] | Available* |
| 14:31 | mstenta[m] | Of course, with a custom module you can provide your own tokens too |
| 14:31 | mstenta[m] | So yes! It might take some coding but it's possible |
| 14:35 | tcmah[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:35 | tcmah[m] | There is [current-date:since] but not sure if this takes a parameter? |
| 14:36 | mstenta[m] | Yea I think that's just "x days ago" |
| 14:37 | mstenta[m] | Most of those are provided by Drupal and the Token module. farmOS itself doesn't provide any tokens of its own |
| 14:37 | mstenta[m] | (unless I'm forgetting) |
| 14:38 | mstenta[m] | So it would probably require writing your own in a module, then using that token in the log name pattern |
| 14:40 | tcmah[m] | ok thanks, this helps. Now back to the videos I go to learn how to write a custom module 😀 |
| 15:03 | mstenta[m] | Haha great! Good luck! |
| 15:04 | mstenta[m] | Remember this is Drupal 7, not 8 ;-) |
| 15:04 | mstenta[m] | Same basic concepts but some slight differences in writing modules |
| 15:05 | mstenta[m] | You basically just need a .info file and a .module file |
| 15:05 | mstenta[m] | And you put your hook implantations (specially named functions) in the .module |
| 15:06 | mstenta[m] | This looks pretty good at quick glance: |
| 15:06 | mstenta[m] | www.valuebound.com/resources/blog/how-to |
| 15:10 | tcmah[m] | Awesome, thanks! |
| 21:01 | * | JustTB has quit (Quit: Leaving.) |
| 22:36 | * | JustTB has joined |