luciash: ipfreely: same applies for wiki page names iirc
ipfreely: see https://doc.tiki.org/PluginTracker#Templates_to_create_the_email_subject_and_email_body_ jonnyb: joined #tikiwiki fabricius: joined #tikiwiki
joined #tikiwiki
joined #tikiwiki Tiki|bot: Recent Bug: - http://dev.tiki.org/item6736-Page-not-found-perhaps-you-are-looking-for-listing-should-be-sorted-A-Z Jyhem: pom pom pom luciash: hi Jyhem jonnyb: joined #tikiwiki chibaguy: joined #tikiwiki
polom Tiki|bot: Recent Bug: - http://dev.tiki.org/item6737-Bad-alert-box-on-Edit-this-assigned-module-menu jonnyb: polom chibaguy chibaguy: hi jonnyb -: jonnyb misses Tiki-KGB :( luciash: pim pom chibaguy jonnyb
who runs Tiki-KGB? jonnyb: pompom
nobody, i think luciash: eh... someone had to add it here, no?
and keep it up
it was still working year ago I think
runs on kimsufi
tiki-kgb@ks311033.kimsufi.com Tiki-KGB: luciash: My master told me to not respond. montefuscolo: joined #tikiwiki ipfreely: luciash, can i do formating in the tpl? its showing me dates in unix timestamp
Start Time: 1533301200
i should prolly just do it in templates/mail shouldn't i? Jyhem: hi ipfreely. You should look up date format modifiers: https://doc.tiki.org/Pretty-Tracker#Syntax_Modifier ipfreely: ahh, beauty, thank you
Jyhem, any idea why item link fields would be displayed with a number instead of its actual value?
Start Time: 2018-08-04 07:30
Instructor: 8
got date working btw, thank you :P[15:23] ipfreely Instructor is a link field going to another tracker jonnyb: ipfreely: you can get the text from an ItemLink field using tracker_field_permName_text in your tpl
also, the full list of smarty modifiers is here https://www.smarty.net/docs/en/language.modifiers.tpl
i don't think we have a porper list of the custom tiki ones, but you can see them all here https://sourceforge.net/p/tikiwiki/code/HEAD/tree/branches/18.x/lib/smarty_tiki/
for instance https://sourceforge.net/p/tikiwiki/code/HEAD/tree/branches/18.x/lib/smarty_tiki/modifier.tiki_long_datetime.php will format a date using your tiki date prefs (e.g. {$dateVariable|tiki_long_datetime} ipfreely: sorry jonnyb, im confused, you mean {$f_inVehicletrainingInstructor_text} where inVehicletrainingInstructor is the field perm name? jonnyb: ah, are you not using plugin list? ipfreely: no, should i be? this is for a email notification tpl in tplwiki format
i got the date to work jonnyb: ah, ok - then it's much more tricky i think
those ItemLink fields just store the itemId of the linked item, but in the search index it gets stored as text as well ipfreely: hrrm, i see, so no way to get the value? jonnyb: you could do that by embedding a list plugin in your email tpl
but it gets very fiddly :) ipfreely: hrrm, i see, ill try, see where it gets me :) jonnyb: there's an example sort of here: https://doc.tiki.org/Smarty-Templates#Tips
might get you started ipfreely: nice, that will more than get me started, thank you :) jonnyb: have fun! :D
joined #tikiwiki fabricius1: joined #tikiwiki