Bonjour je viens d'acheter la bibliothèque javascript titlesview mais je n'arrive pas à afficher les images dans l'étiquette,
voila mon code : ......
tile.front.html = '<h5>' +
// '<span class="label label-default pull-right">' + 'id: %_pk%' + '</span>' +
'<img width="16" src="resources/table_icons/administrator.png" />' +
'<img src="images/%Images% "/>' + // Remplace par le bon chemin
'</h5>' +
'<p><small>Nom:</small> %Nom%</p>';
.......
aider moi svp
Javascript TitlesView
Javascript TitlesView
- Attachments
-
- 1.PNG (4.2 KiB) Viewed 137 times
-
- 2.PNG (11.83 KiB) Viewed 137 times
Re: Javascript TitlesView
In your HTML, check the image address. There may be a blank character too much:'<img src="images/%Images% "/>'
Double-check if that field is named
Images
with capital I
Code: Select all
tile.front.html =
'<h5>' +
'<img width="16" src="resources/table_icons/administrator.png" />' +
'<img src="images/%Images%"/>' +
'</h5>' +
'<p><small>Nom:</small> %Nom%</p>';
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.14 Revision 1665 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.14 Revision 1665 + all AppGini Helper tools
Re: Javascript TitlesView
I’m having trouble displaying images using titlesview in my AppGini project. I’m trying to load images with thumbnail.php, but they aren't showing correctly.
Details:
I'm using AppGiniHelperTVTiles.FlipcardTile to display images. The generated URL for the image looks like this:
http://localhost/exercices/images/thumb ... mages&v=tv
The image doesn't load, though the URL works fine without thumbnail.php.
After copying thumbnail.php to the images folder, the 404 errors stopped, but images are still not showing. Here's my thumbnail.php file
Details:
I'm using AppGiniHelperTVTiles.FlipcardTile to display images. The generated URL for the image looks like this:
http://localhost/exercices/images/thumb ... mages&v=tv
The image doesn't load, though the URL works fine without thumbnail.php.
After copying thumbnail.php to the images folder, the 404 errors stopped, but images are still not showing. Here's my thumbnail.php file
- Attachments
-
- 2.PNG (11.83 KiB) Viewed 129 times
-
- 1.PNG (4.2 KiB) Viewed 129 times
-
- 33.PNG (104.11 KiB) Viewed 129 times
SOLVED: Javascript TitlesView
The error log states, that file is missing. Please check the image URL. I'm pretty sure there is no'<img src="images/%Images%"/>' +
thumbnail.php
in /images
folder by default, and just copying it from root could mess up relative paths.---
You should try the following template:
Code: Select all
tile.front.html =
'<h5>' +
'<img width="16" src="resources/table_icons/administrator.png" />' +
'<img src="%Images%"/>' +
'</h5>' +
'<p><small>Nom:</small> %Nom%</p>';
images/
-part from the src
-attribute:'<img src="%Images%"/>'
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.14 Revision 1665 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.14 Revision 1665 + all AppGini Helper tools
Re: Javascript TitlesView
Thank you, sir, it worked! Thank you so much, you saved me.
Re: Javascript TitlesView
Hello, another question, where I can insert my css, example style="border-radius: 50%;"
Re: Javascript TitlesView
I think this has nothing to do with this topic about Tiles View Library. This issue here should be closed, I think.where I can insert my css
You may ask your general CSS questions in another subforum. There are dozens of guys who can answer this.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.14 Revision 1665 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.14 Revision 1665 + all AppGini Helper tools