Loading...
 
Features / Usability

Features / Usability


Small customization that could be useful

posts: 37

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\""); }
posts: 758 United States
Thank you Weibe! I'll give em a try, thanks for your time and sharing this!

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting