I am having some issues with WM-ImagePath. I am not generating Detail Pages, only an index page. If I use the code:
[WM-ImagePath: Photo]
I get:
<a href="" ><img src="/gallery/photo1.jpg" border="0" ></a>
I want a link but the
URL is in the database. I don't want the deprecated border attribute. Can I shut that off? Also, I need an alt attribute to make this valid
HTML.
Next I try the noLink option:
[WM-ImagePath: Photo noLink]
which produces:
<img src="/gallery/photo1.jpg" border="0" noLink>
What!? Not only the border attribute but it leaves the noLink in there, which is invalid
HTML. I understand that it will work, but I have too much self respect to put that out there. Shouldn't it leave the link out automatically since I am not generating Detail Pages?
In the end I had to write the whole thing myself:
<a href="[WM-Field: Link]"><img src="[WM-Field: Photo]" alt="[WM-Field: Name]"/></a>
Which gives me what I want:
<a href="/article/one"><img src="/gallery/photo1.jpg" alt="Article One"/></a>
Is this what I have to do, or am I missing something? Is there a way to use the WM-ImagePath and get valid
HTML out?
Thanks,
Phil.