Loading...
 
Skip to main content

Features / Usability


img link tikiwiki internal

Hi all,
I found how to create an image linked to an external link, i.e.:

{img src=show_image.php?name=myimage.jpg width=200 height=200 alt="My Image" link="http://example.com"}

or

[http://example.com|{img src=show_image.php?name=myImage2.jpg width=200 height=200 alt="my image 2"}]

these methods both work fine.

But I would like to link these images to internal tikiwiki pages, let's say something i could do
((My Page To Link))
if they were "ordinary link" and not "image link"

Simmetrically to

((My Page To Link | Hello))
I also tried:
((My Page To Link | |{img src=show_image.php?name=myImage2.jpg width=200 height=200 alt="my image 2"}))

but it doesn't work, and I can imagine further problems becouse I would like to arrange these linked-images into a table, so to use the | could produce unwonted behaviour..

How can I do this ?

Thanks in advance,

Andrea

p.s.
to clarify my need:

a table containing let's say 2 rows and two cols
in each cell an image linking to an internal tikiwiki page

Use the link= attribute. See the docsQuestion for full details.

HTH,

-Rick

> Hi all,
> I found how to create an image linked to an external link, i.e.:
>
> {img src=show_image.php?name=myimage.jpg width=200 height=200 alt="My Image" link="http://example.com"}
>
> or
>
> [http://example.com|{img src=show_image.php?name=myImage2.jpg width=200 height=200 alt="my image 2"}]
>
> these methods both work fine.
>
> But I would like to link these images to internal tikiwiki pages, let's say something i could do
> ((My Page To Link))
> if they were "ordinary link" and not "image link"
>
> Simmetrically to
>
> ((My Page To Link | Hello))
> I also tried:
> ((My Page To Link | |{img src=show_image.php?name=myImage2.jpg width=200 height=200 alt="my image 2"}))
>
> but it doesn't work, and I can imagine further problems becouse I would like to arrange these linked-images into a table, so to use the | could produce unwonted behaviour..
>
> How can I do this ?
>
> Thanks in advance,
>
> Andrea
>
> p.s.
> to clarify my need:
>
> a table containing let's say 2 rows and two cols
> in each cell an image linking to an internal tikiwiki page
>
>


😕
Actually it works like a charm......
😡
I put two | as separator for link-alias....
((My Page To Link | |{img src=show_image.php?name=myImage2.jpg width=200 height=200 alt="my image 2"}))

Instead of only one
((My Page To Link | {img src=show_image.php?name=myImage2.jpg width=200 height=200 alt="my image 2"} ))

It works well also in tables...

sorry !

Andrea