Search…

X3 Photo Gallery Support Forums

Search…
 
coomes
Topic Author
Posts: 10
Joined: 15 Jan 2016, 03:54

image in content of a folder

24 Jan 2016, 11:59

Hi Karl,

First of all: i like the way you can make a site with X3.

I have a little problem. I want to make a blog. I do that in content of the folder "blog".

An example of what i want is:

Added: **Kustgevoel aan Belgische Kust in januari.**
[go to gallerie](http://www.ceesoomes.nl/Galleries/Seavi ... ische-Kust)

***With this link you go to the gallerie, as i want it.***
I also want to show an image of this gallerie. That is what i cannot do. I used the instruction:

IImage
Embed images by adding the image `[title]` in brackets, immediately followed by the image `(img url)` in parenthesis. **Tip!** Use `{{path}}` to refer the path of the current page, for example

`![title]({{path}}/file.jpg)`.


I tried:
![Belgische Kust](http://www.ceesoomes.nl/Galleries/Seavi ... ust-04.jpg)
and
![Castricum aan Zee](http://www.ceesoomes.nl/Galleries/Seavi ... he-kust-04)
but no image

Hope you can help me.
my site is ceesoomes.nl

best regards,
Cees Oomes
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: image in content of a folder

24 Jan 2016, 12:15

First of all, if you are making a blog, why not make it dynamically? For example like this:
https://mjau-mjau.com/blog/

The items listed on that page, are child-folders, and listed with the folders module. The text and images you see are taken directly from the child-page title, description and preview-image. You could easily change the layout also ... I am not sure why you are creating a blog manually by adding to content, when you can just list all child-folders of the blog.
coomes wrote:I tried:
![Belgische Kust](http://www.ceesoomes.nl/Galleries/Seavi ... ust-04.jpg)
and
![Castricum aan Zee](http://www.ceesoomes.nl/Galleries/Seavi ... he-kust-04)
but no image
First of all, none of those images link to images, and I am not sure how you created those links. The image you are referring to is here:
http://www.ceesoomes.nl/content/2.Galle ... ust-04.jpg
As you can see, the image is inside /1.Belgische-Kust/ folder, and not directly within /4.Seaviews/. Furthemore, you cannot use URL paths to point to files, because the file-path is different (as you can see in the correct link above).

You can use the {{path}} variable to link to an image that is inside the same folder. That's right, don't replace {{path}}, but use it directly as a dynamic variable. For example, in content for Belgische-Kust/ folder, you could use
Code
![Belgische Kust]({{path}}/Belgische-Kust-04.jpg)
That would not work from within the 4.Seaviews/ folder of course, because the {{path}} would point to the 4.Seaviews/ folder. {{path}} points to the file-path of the current folder.

Anyway, if you are creating a blog you should consider the dynamic option (as I mentioned first) and not add it manually with plain content.
 
coomes
Topic Author
Posts: 10
Joined: 15 Jan 2016, 03:54

Re: image in content of a folder

25 Jan 2016, 14:21

thank you for your suggestion.
I will try your suggestion for making a blog.
greatings
Cees