Print Author and version Posted by SCG 12 Sep 2023 09:23 UTC Hello, I need to print the author and version pages. Is it possible? Thanks
Posted by SCG 14 Sep 2023 06:55 UTC SCG wrote: Hello, I need to print the author and version pages. Is it possible? Thanks UP Do anyone have any advice? thanks
Posted by Bernard Sfez / Tiki Specialist 14 Sep 2023 07:25 UTC SCG wrote: Hello, I need to print the author and version pages. Is it possible? Thanks Well, this need experimenting but for sure, you can use a module to display the version of a page. AuthorS is something that is a little more complex. There are options in Tiki about "contributors" that display differently this information. The few times I had such request from I ended using the plugin list in a custom module to fit the customer's need. Good luck
Posted by SCG 03 Oct 2023 09:43 UTC Bernard Sfez / Tiki Specialist wrote: Well, this need experimenting but for sure, you can use a module to display the version of a page. AuthorS is something that is a little more complex. There are options in Tiki about "contributors" that display differently this information. The few times I had such request from I ended using the plugin list in a custom module to fit the customer's need. Good luck Sorry but... how do you add a module visible in printed page? Thanks in advance
Posted by Bernard Sfez / Tiki Specialist 03 Oct 2023 10:19 UTC SCG wrote: Sorry but... how do you add a module visible in printed page? Thanks in advance Create a custom module. Place it on the pagebottom and set visibility (only wiki pages for exemple) Add in it display media for print query. If you use Tiki25 or 26 : https://getbootstrap.com/docs/5.3/utilities/display/#display-in-print (we have an admin media selector for modules but I think it is still experimental 🤷🏻♂️) Bsfez | Bernard Sfez | Tiki Express Tutorials | me...@bs... | https://www.bsfez.com
Posted by SCG 03 Oct 2023 12:06 UTC Bernard Sfez / Tiki Specialist wrote: Create a custom module. Place it on the pagebottom and set visibility (only wiki pages for exemple) Add in it display media for print query. If you use Tiki25 or 26 : https://getbootstrap.com/docs/5.3/utilities/display/#display-in-print (we have an admin media selector for modules but I think it is still experimental 🤷🏻♂️) Bsfez | Bernard Sfez | Tiki Express Tutorials | me...@bs... | https://www.bsfez.com I'm using tiki 24... How can I Add in it display media for print query ? Thanks...
Posted by Bernard Sfez / Tiki Specialist 03 Oct 2023 14:27 UTC SCG wrote: I'm using tiki 24... How can I Add in it display media for print query ? Thanks... https://getbootstrap.com/docs/4.6/utilities/display/#display-in-print Bsfez | Bernard Sfez | Tiki Express Tutorials | me...@bs... | https://www.bsfez.com
Posted by Martin H. 14 Nov 2023 09:47 UTC SCG wrote: Hello, I need to print the author and version pages. Is it possible? Thanks I would start with something like this in your custom module. Copy to clipboard{DIV(class="d-none d-print-block")} ||__Page Name:__ |__Version: __ __ Last Author:__ |__ Last Mod. Date:__ __ Approved by:__ | __Approval Date:__ || {DIV} The d-none class will hide the content on screen. The d-print-block will unhide the content on printing. Bsfez | Bernard Sfez | Tiki Express Tutorials | me...@bs... | https://www.bsfez.com
Posted by SCG 14 Nov 2023 11:13 UTC Martin H. wrote: You can use a header like this: Page Name: Version: Last Author: Last Mod. Date: Approved by: Approval Date: It works with argument variables: https://doc.tiki.org/Wiki-Argument-Variables Hi Martin, it's exactly my goal but my poor knowledge doesn't allow me to understand where to insert the code you wrote... obviously not modifying the print.tpl template! So where? How? Consider I don't want to insert it on every single page but as a model Thanks in advance
Posted by Bernard Sfez / Tiki Specialist 14 Nov 2023 11:22 UTC SCG wrote: obviously not modifying the print.tpl template! So where? How? Trivial mode: You can add it at the bottom of each page where you want it to be display. Advanced mode: Use it as a custom module: /tiki-admin_modules.php Place this wiki syntax on a custom module and have this custom module set to the "pagebottom" area. There, you have a lot of options to control when it should be used or not. (if this should be only printed then again use the bootstrap print styles) Bsfez | Bernard Sfez | Tiki Express Tutorials | me...@bs... | https://www.bsfez.com
Posted by SCG 14 Nov 2023 11:47 UTC Bernard Sfez / Tiki Specialist wrote: Trivial mode: (if this should be only printed then again use the bootstrap print styles) THIS IS the part i'm missing... suggestions are accepted! Thanx
Posted by SCG 14 Nov 2023 12:34 UTC Martin H. wrote: I would start with something like this in your custom module. Copy to clipboard{DIV(class="d-none d-print-block")} ||__Page Name:__ |__Version: __ __ Last Author:__ |__ Last Mod. Date:__ __ Approved by:__ | __Approval Date:__ || {DIV} I meant... it doesn't work to me. Ok the module is hidden on the page, but it doesn't show on printing. Not sure if these errors coulb be useful to debug: NOTICE (E_NOTICE): Undefined variable: approval At line 1964 in lib/parser/parserlib.php NOTICE (E_NOTICE): Trying to access array offset on value of type null At line 1964 in lib/parser/parserlib.php The d-none class will hide the content on screen. The d-print-block will unhide the content on printing. Bsfez | Bernard Sfez | Tiki Express Tutorials | me...@bs... | https://www.bsfez.com
Posted by Bernard Sfez / Tiki Specialist 14 Nov 2023 13:32 UTC Sorry no ideas or free time to test it at the moment. May be someone will come up to support, else you can always hire someone: https://tiki.org/consultants Good luck Bsfez | Bernard Sfez | Tiki Express Tutorials | me...@bs... | https://www.bsfez.com
Posted by SCG 15 Nov 2023 07:56 UTC Brilliantly solved by my network engineer. In footer.tpl edit as follow {* when we are on a page to be printed open the print dialog auto-magically *} {if !empty($print_page) and $print_page eq "y"} User errorPlugin argument(s) missing or invalid:page $(document).ready(function(){ print(); }); {/if} Then in wiki/templates create firmaprint.tpl {wiki}{literal} Page_name: Version: Author: Last date mod: Approved by: Approval date: {/literal}{/wiki}