Loading...
 
Features / Usability

Features / Usability


Custom HTML to display image in /tiki-print.php

posts: 4 Italy

Hi everybody, i hope you can help me to solve this problem.
I'm using Tiki 15 and would like to have an image in the top of printed pages, but i can't.
I added this code to 'Look & Feel' -> 'Customization' -> 'Custom HTML Content':
{if $SCRIPT_NAME eq '/tiki-print.php'}
< img src="http://192.168.10.26/tiki/tiki-download_file.php?fileId=33">
{/if}
(no blank space on my tiki after < )
I also checked on the table 'tiki-files' if the image i wanted was 33, and yes, it's correct.
Anyway, when i print a page, the image i would like to have on top of my printed page doesn't show.
Is there some option to activate? Am I missing something?
Thx in advance for your help

posts: 1563 Germany

Hi Gianluca,

maybe it is on the wrong place - maybe it has to be in the template of the page content ... (on the server in the Tiki installation root -> templates folder ?

Torsten

posts: 1563 Germany

You are right Gianluca,

and I just now successfully tried this code in the 'Look and Feel' | Custom | userdefined HTML content, after checking that I could display a specific image on a site which I just started to setup (Tiki trunk pre-16.0):

Copy to clipboard
{if $SCRIPT_NAME eq '/tiki-print.php'} <img src="http://my.domain.com/display1"> {/if}


So you might want to try /displayX instead of /tiki-download_file.php?fileId=X
Just thinking because it worked for me only a minute ago.

Regards,
Torsten


posts: 3665 United States

You're adding the img tag in the wrong place. The Custom HTML head Content area places content in the HEAD element. You can't place an img element in the head. You'll need to use CSS instead and attach your image to a specific class, or edit the TPL directly.


HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
posts: 4 Italy

Hi again. Sorry to go on with this post... 2 yrs ago i finally found the solution to the problem after some tries, but i didn't write it down anywhere....... and i forgot it.
Now that i made the upgrade to tiki 18, i have to set it again, and don't remember what to do. In this period i have no spare time to make tries like 2 years ago, so i'm asking you if you can help some more.
Thanks in advance


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