Small customization that could be useful
Hi all,
I have made some small customizations to Tiki 18, and it could be useful for others:
Removing the possibility to use the H1 header from drop down menu in the CKE editor
As the page title is already H1 otherwise it looks weird in the TOC in the PDF export.
Copy to clipboard
C:\inetpub\wwwroot\lib\toolbars\toolbarslib.php
Change php to:
Copy to clipboard
return 'p;h2;h3;h4;pre'; // CKE default
Change responsiveness web design of the page to be active at different width
Find your theme (in this example Yeti)
Copy to clipboard
C:\inetpub\wwwroot\themes\yeti\css\yeti.css
Find and replace all '768px' with '1280px' e.g.
Make all new pages created with the 'Structure add page bar' default as child
Copy to clipboard
C:\inetpub\wwwroot\templates\tiki-wiki_structure_bar.tpl
Find:
Copy to clipboard
<input type="checkbox" name="add_child"> {tr}Child{/tr}
Change to:
Copy to clipboard
<input type="checkbox" name="add_child" checked> {tr}Child{/tr}
Disable Colorbox fade effect
This is clicking much faster through smaller images, while keeping the Colorbox nice visual effect
Copy to clipboard
C:\inetpub\wwwroot\vendor_bundled\vendor\jquery\plugins\colorbox\jquery.colorbox.js
Change setting to:
Copy to clipboard
transition: "none",
Open PDF files in a browser tab instead of downloading it
Copy to clipboard
C:\inetpub\wwwroot\tiki-download_file.php
Copy to clipboard
if (! $content_changed and ! isset($_GET['display'])) { header("Content-Disposition: attachment; filename=\"$file\""); } else { header("Content-Disposition: filename=\"$file\""); }
Changed to:
Copy to clipboard
if (! $content_changed and ! isset($_GET['display']) and $info['filetype'] != 'application/pdf' ) { header("Content-Disposition: attachment; filename=\"$file\""); } else { header("Content-Disposition: filename=\"$file\""); }