Re: [Tiki-users] How to specify an image by path?

Volker Wysk <post-hhF2Jplw28UoZk/[email protected]> Sun, 26 Dec 2021 17:42:58 +0100
Newsgroups gmane.comp.cms.tiki.user
Message-ID <[email protected]>
Am Sonntag, dem 26.12.2021 um 17:35 +0200 schrieb Bernard Sfez:
> Hello,
> 
> {img type="src" src="https://freesvg.org/img/space-invaders.png"}
> 
> This work just fine.

Yes, I know this works. I guess I haven't made it clear what I'm
looking for. What I want is something like this:

  {img type="path" path="space-invaders.png"}

(This doesn't work, because "path" isn't a parameter or a type.)

Here "space-invaders.png" would be a path in either the page's
attachments or in a file gallery. This can be achieved with "attId=..."
or "fileId=...", but I wanted to specify a file name rather than an id,
because it makes the page easier to read. But this isn't possible,
judging by the PluginImg documentation page.

I was confused about this, because the "Wiki-Syntax-Images" page says:

  Once the image has been uploaded to file galleries, you can either 
  note the path or ID number to use in PluginImg...

  Once uploaded, you can use the path or ID number in PluginImg to
  display the image on a page.

So I'm saying that the "Wiki-Syntax-Images" page is wrong, or at least
confusing.

Regards, Volker

> Bernard
> 
> > On 26 Dec 2021, at 12:33, Volker Wysk <[email protected]> wrote:
> > 
> > Hi
> > 
> > How did you specify the path of the image to PluginImg, when it
> > worked
> > the last time you used it? The documentation page doesn't give any
> > way 
> > to do so.
> > 
> > I don't think it is a bug. The Wiki-Syntax-Images page seems to be
> > incorrect. PluginImg seems to work okay, the way it is documented.
> > 
> > Volker
> > 
> > Am Sonntag, dem 26.12.2021 um 12:07 +0200 schrieb Bernard Sfez via
> > TikiWiki-users:
> > > Hello (again),
> > > 
> > > Last time I used it it worked (but when was it ? 😂).
> > > 
> > > I suggest you create a work in progress instance (add WIP: at the
> > > beginning of the title) and set an instance for you and others to
> > > test.
> > > If this is a bug and need to be reported you will have a short
> > > road.
> > > If this is not you can just close.
> > > 
> > > Bernard
> > > 
> > > > On 25 Dec 2021, at 19:52, Volker Wysk <[email protected]>
> > > > wrote:
> > > > 
> > > > Hi!
> > > > 
> > > > In the page "Wiki-Syntax-Images" it's written that images can
> > > > be
> > > > specified by path. It doesn't mention, however, what kind of
> > > > path.
> > > > A
> > > > path in the file galleries? 
> > > > 
> > > > The PluginImg, however doesn't seem to support the
> > > > specification by
> > > > path. There's no "path" argument. There's just "src", and that
> > > > needs a
> > > > full URL (according to the documentation). I've tried to
> > > > specify a
> > > > path
> > > > with "src", but that failed.
> > > > 
> > > > It seems like the documentation (Wiki-Syntax-Images) is faulty.
> > > > 
> > > > Anyone know what's up?
> > > > 
> > > > Regards, Volker
> > > > 
> > > > 
> > > > 
> > > > _______________________________________________
> > > > TikiWiki-users mailing list
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
> > > 
> > > _______________________________________________
> > > TikiWiki-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/tikiwiki-users



_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users