Hi All
I've made my pipeline working at publication sitemap. I've used that
pipeline at publication level and it worked.
Please suggestions w.r.t. module.
Anish wrote:
Hi All
Can anybody suggest how to use image reader in Lenya 2 (inside a module)
e.g. in lenya 1.2.4, I wrote my pipeline in publication-sitemap.xmap
for reading an image as:
<map:match pattern="**/img-*.jpg">
<map:read src="/home/anish/*.jpg" type="image"/>
</map:match>
I put name of the image in <img src="img-1.jpg"/> tag and It worked
where 1.jpg is the name of the image.
But now I want to achieve that inside a module (lenya 2.0.2). e.g.
I've a module named mymodule (..../lenya/src/modules/mymodule) I've
written the same pipeline in
..../lenya/src/modules/mymodule/sitemap.xmap like:
<map:match pattern="**/img-*.jpg">
<map:read src="/home/anish/*.jpg" type="image"/>
</map:match>
and created a module type page (say page1.html), on the same page I
want to access images using <img...../> tag.
It's not working as such.
Please help.
--
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk
--
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk