Loading...
 

Features / Usability


Small customization that could be useful

posts: 20

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.

C:\inetpub\wwwroot\lib\toolbars\toolbarslib.php

Change php to:

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)

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

C:\inetpub\wwwroot\templates\tiki-wiki_structure_bar.tpl

Find:

<input type="checkbox" name="add_child"> {tr}Child{/tr}

Change to:

<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

C:\inetpub\wwwroot\vendor_bundled\vendor\jquery\plugins\colorbox\jquery.colorbox.js

Change setting to:

transition: "none",

Open PDF files in a browser tab instead of downloading it

C:\inetpub\wwwroot\tiki-download_file.php
if (! $content_changed and ! isset($_GET['display'])) {
	header("Content-Disposition: attachment; filename=\"$file\"");
} else {
	header("Content-Disposition: filename=\"$file\"");
}

Changed to:

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: 621 United States
Thank you Weibe! I'll give em a try, thanks for your time and sharing this!

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.