Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
sprocket
Experienced
Topic Author
Posts: 98
Joined: 18 Dec 2008, 19:40

HTML with photos

13 Dec 2014, 20:09

I've been trying for a couple days now to add some text with photos to the content section of a gallery. I thought the content section would allow markup code or general html. I've tested the url to the photo and I'm sure that is correct. I can put that directly in the address bar and the photo shows up. In my best attempt, what I get is the paragraph of text and the photo PLACEHOLDER, but no actual photo. I can even add a link to the missing photo and it works. How do I place text with photos?
This is what I'm getting testing with the example page
Shot1.jpg
Paragraph with photo
Shot1.jpg (62.86 KiB) Viewed 2701 times
by using the following code to place the photo
<img src="/x3/content/3.examples/assets/corn-field.jpg" alt="Corn" style="float:left;width:400px;height:300px"/>

At this time, all my website testing is done on-site, so I do not have a public url to share.

Any Help appreciated
Joe

One other thing . . . . I've also noticed a small strange happening. On the pages with the "wide justified", the last row of photos appears abnormally smaller than the other rows. I'm using Firefox when viewing this and I haven't tested any other browsers. This can even be seen on the example website HERE.
mjau.jpg
mjau
mjau.jpg (104.81 KiB) Viewed 2701 times
Thanks again
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: HTML with photos

14 Dec 2014, 01:09

sprocket wrote:I've been trying for a couple days now to add some text with photos to the content section of a gallery. I thought the content section would allow markup code or general html. I've tested the url to the photo and I'm sure that is correct.
Sorry, this is a bug in X3 and will be fixed in coming release V0.8. The image is in fact there, but it has 0% opacity because it is mistakingly inheriting parts of the script we use to load and render dynamic images in the content and gallery section. You can path it by adding this to your /custom/css/ from your panel:
Code
.content img {
  opacity: 1 !important;
}
The content section does indeed support both markup and general html.
sprocket wrote:One other thing . . . . I've also noticed a small strange happening. On the pages with the "wide justified", the last row of photos appears abnormally smaller than the other rows. I'm using Firefox when viewing this and I haven't tested any other browsers.
This is another bug with the justified layout we are using. Slightly more complicated, because the bug is part of a plugin we are using, and basically a result of "orphans" that don't fit into the last row and can't make a row of their own. We will be looking into it shortly, but perhaps not next release.
 
User avatar
sprocket
Experienced
Topic Author
Posts: 98
Joined: 18 Dec 2008, 19:40

Re: HTML with photos

14 Dec 2014, 18:24

Thanks Karl, that explains my frustrations. The patch worked fine and now I can continue to play around testing the software. :)
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: HTML with photos

15 Dec 2014, 04:07

We fixed content image opacity issue in V0.8, so after you upgrade, you could remove your CSS patch:
viewtopic.php?f=51&t=8448

Fix for "justified" layout is still pending ...