[ckan-dev] Problem loading images using extra_public_path

T. Idriss TINTO tinto.jean at titinto.net
Wed May 28 10:51:11 UTC 2014


Hi all,

I'm writing an extension to customize CKAN for our national data portal
and I'm facing some problem regarding image rendering.
As the official documentation of CKAN explains , I have created /public/
directory in my extension, where I have created /images/ directory that
contain my images.
When I'm on the home page, I can access the images, I can also access it
when I uses urls like //group/, //organization/, ... But when I try urls
like//group/education/, I have problems loading images. Inspecting the
code using firebug, show me this errors : /"NetworkError: 404 Not Found
- http://localhost:5000/group/images/armoirie.png"/. And it's normal
because my image is not in //group/images/ but in //images/.
/ 
In/the code, I use image like this /<img src='images/armoirie.png'>/

/How can I solve this problem?

Thanks

/

-- 
Teg-Wendé Idriss TINTO:
    Ingenieur en Informatique
    téléphones:
        (00226)70102936,
        (00226)66283666
    email:
        tinto.jean[at]titinto[dot]net,
        tinto.jean[at]computer[dot]org
    twitter:
        @titinto_
    skype:
        tinto.jean
    citation:
        « Notre mission est de préserver, protéger et promouvoir la liberté d'utiliser, étudier, copier, modifier et redistribuer les programmes informatiques, et de défendre les droits des utilisateurs de logiciel libre. » FSF

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140528/a956f63c/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xA36BDC8F.asc
Type: application/pgp-keys
Size: 1744 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140528/a956f63c/attachment-0003.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140528/a956f63c/attachment-0003.sig>


More information about the ckan-dev mailing list