Loading...
 
Features / Usability

Features / Usability


What is the Markdown syntax for using images in the image gallery?

posts: 24 United States

Greetings,
The Markdown plugin is wonderful. What syntax do you use to access images in the gallery (database)? In Markdown, I would include an image with the following code:

Copy to clipboard
![My Image](./photos/myimage.jpg)


With Tiki I would reference an image from the galley with the following code:

Copy to clipboard
{img width=400 id=14}


I guessed at the following syntax but neither one generates an image.

Copy to clipboard
{MARKDOWN()} ![My photo](img width=400 id=14) @import "img width=400 id=14" {MARKDOWN}


I haven't found any documentation on how to access images using Markdown plugin syntax. Would someone post a link to the Markdown language reference showing how to access Tiki Wiki images or suggest the proper syntax when uses the Markdown plugin to Tiki Wiki?
Sincerely,
Jay Morreale

posts: 2428 Czech Republic

Hi Jay,
thanks! You can use the following markdown syntax in Tiki if you have SEFURLs enabled:

Copy to clipboard
{MARKDOWN()} ![My Image](./display14) {MARKDOWN}


Lets test it here:

!My Image(./display2188?x=640 "Tiki Oven")


Optionally you can add some attributes:

Copy to clipboard
{MARKDOWN()} ![My Image](./display2188?x=640 "Tiki Oven"){.img-fluid width="400"} {MARKDOWN}


See the Commonmark docs: https://commonmark.thephpleague.com/1.5/extensions/attributes/

luci

waterglass wrote:

Greetings,
The Markdown plugin is wonderful. What syntax do you use to access images in the gallery (database)? In Markdown, I would include an image with the following code:

Copy to clipboard
![My Image](./photos/myimage.jpg)


With Tiki I would reference an image from the galley with the following code:

Copy to clipboard
{img width=400 id=14}


I guessed at the following syntax but neither one generates an image.

Copy to clipboard
{MARKDOWN()} ![My photo](img width=400 id=14) @import "img width=400 id=14" {MARKDOWN}


I haven't found any documentation on how to access images using Markdown plugin syntax. Would someone post a link to the Markdown language reference showing how to access Tiki Wiki images or suggest the proper syntax when uses the Markdown plugin to Tiki Wiki?
Sincerely,
Jay Morreale

posts: 24 United States

Hi Luci,
That's Awesome!. Thank you.

luciash d' being 🧙 wrote:

Hi Jay,
thanks! You can use the following markdown syntax in Tiki if you have SEFURLs enabled:

Copy to clipboard
{MARKDOWN()} ![My Image](./display14) {MARKDOWN}


Lets test it here:

!My Image(./display2188?x=640 "Tiki Oven")


Optionally you can add some attributes:

Copy to clipboard
{MARKDOWN()} ![My Image](./display2188?x=640 "Tiki Oven"){.img-fluid width="400"} {MARKDOWN}


See the Commonmark docs: https://commonmark.thephpleague.com/1.5/extensions/attributes/

luci


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