Hello again friendly, helpful phpwcms forum!
I've added a couple of images to my site using the "test w/image" content part. The image is stored in the database via the lovely phpwcms file upload facility.
My question/problem is that I have no control over the alt & title tags when I add an image in this way. Instead it defaults to the image name so I get a rather ugly "filename.gif" tooltip whenever I hover over that image!
Is it possible to change the alt/title attributes to a different value when using a "text w/image" content part? How do I do this?
Or is the only way to specify an alt/title value to set it implicitly by using an image RepTag?
Thanks.
How to change the alt & title attributes for stored imag
use the imagecaption-field of the images in the following way
For the imagecaption under the Image:
Imagecaption
For an imagecaption and an alt-Text:
image-caption|alt-Text of the Image
For an imagecaption + alt-Text + jump to another page inside your Site, in the same window:
image-caption|alt-Text of the Image|index.php?ALIASNAME
For an imagecaption + alt-Text + jump to another page outsite of your Site, in the same window:
image-title|alt-Text of the Image|http://url.de
For an imagecaption + alt-Text + jump to another page outsite of your Site, in a new window:
image-caption|alt-Text of the Image|http://url.de _blank
If you wann have only an alt-Text use:
|alt-Text
If you wann have an internal link without caption or alt-text use:
||index.php?ALIASNAME
and so on......
If you need more than one Image... take as many lines as images
Each image must have its own Line
For the imagecaption under the Image:
Imagecaption
For an imagecaption and an alt-Text:
image-caption|alt-Text of the Image
For an imagecaption + alt-Text + jump to another page inside your Site, in the same window:
image-caption|alt-Text of the Image|index.php?ALIASNAME
For an imagecaption + alt-Text + jump to another page outsite of your Site, in the same window:
image-title|alt-Text of the Image|http://url.de
For an imagecaption + alt-Text + jump to another page outsite of your Site, in a new window:
image-caption|alt-Text of the Image|http://url.de _blank
If you wann have only an alt-Text use:
|alt-Text
If you wann have an internal link without caption or alt-text use:
||index.php?ALIASNAME
and so on......
If you need more than one Image... take as many lines as images
Each image must have its own Line
Last edited by pepe on Thu 9. Mar 2006, 19:01, edited 3 times in total.
That I know there is no way to put the title attribute but the ALT is easy
just put
in caption field
(for title attribute you can hack the core code but is it worth it?)
Cheers
EDIT: WOW pepe was faster and more complete
just put
Code: Select all
|YOUR_TEXT
(for title attribute you can hack the core code but is it worth it?)
Cheers
EDIT: WOW pepe was faster and more complete
1.3 out, testing, testing...
Sponsoring 4 phpwcms Blog and Usermanagement
Sponsoring 4 phpwcms Blog and Usermanagement
LOL ~yes you are!~ CLAP CLAP
If I have to do a post lik eyours with colors, bold and in german you can... go have a coffee, walk your dog, watch night program and come back...
Super-Pepe
If I have to do a post lik eyours with colors, bold and in german you can... go have a coffee, walk your dog, watch night program and come back...
Super-Pepe
1.3 out, testing, testing...
Sponsoring 4 phpwcms Blog and Usermanagement
Sponsoring 4 phpwcms Blog and Usermanagement
Hi pepe,
I have added your post at the faq-page. http://www.faq.phpwcms-docu.de/15_53_en.html
Gruß Knut
I have added your post at the faq-page. http://www.faq.phpwcms-docu.de/15_53_en.html
Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )