Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-03-04 12:12:22
- venkatesaya
- Member
- Registered: 2008-03-03
- Posts: 20
about img
I have uploaded an image heart.jpg and find it in the images folder
but it has become 1.jpg !!! although it still has the name heart.jpg in the images tab
this is boring when I want to use the image in an article
and write <img src=”../../images/heart.jpg”>
instead of <img src=”../../images/1.jpg”> – which has no reference
ps:
when Textpattern Solutions: PHP-Based Cont – Potts, Kevin (purchased on eBay) will have arrived – I will hopefully find the answers in there
I am in love with Textpattern and want to know all about it
Last edited by venkatesaya (2008-03-04 15:55:27)
Om Namah Shivaya
Offline
#2 2008-03-04 15:25:14
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re: about img
venkatesaya wrote:
I have uploaded an image heart.jpg and find it in the images folder
but it has become 1.jpg !!! although it still has the name heart.jpg in the images tab
This is unfortunately unavoidable at this stage. This has been done, so duplicate occurrences of the same images can be avoided. Your Image will have been renamed, but the original image name is still available from a separate column in the DB.
this is boring when I want to use the image in an article
and write <img src=”../../images/heart.jpg”>
instead of <img src=”../../images/1.jpg”> – which has no reference
You have the possibility to use the built in image tag, so there is no need to call your image directly through relative URL’s
The Syntax goes like this:
<txp:image id="1"/>
As a matter of fact, if you want to call an image by name, you can do it like this:
<txp:image name="heart.jpg"/>
Or alternatively, if you prefer Textile Syntax, you can do it like this:
!/images/57.png!(Title)
regards, marios
Last edited by marios (2008-03-04 15:32:12)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#3 2008-03-04 15:44:51
- venkatesaya
- Member
- Registered: 2008-03-03
- Posts: 20
Re: about img
tanx marios
this works great!
http://texttest.venkatesaya.com/
———————————————————————————-
now, when I want to put text next to the image, can this be done only by html?
for example
<table width=“100%” border=“0” cellpadding=“5” cellspacing=“1” bgcolor=”#0000CC”>
<tr> <td bgcolor=”#FFFFFF”> IMG </td> <td bgcolor=”#FFFFFF”> TEXT </td> </tr>
</table>
———————————————————————————-
btw, the colors of this forum are so soft
what is the name of this skin? is it available?
———————————————————————————-
Last edited by venkatesaya (2008-03-04 16:37:55)
Om Namah Shivaya
Offline
Offline
#5 2008-03-05 13:34:50
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re: about img
venkatesaya wrote:
now, when I want to put text next to the image, can this be done only by html?
for example
Yes, you can do it like this:
(I assume, you mean inside an article )
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#0000CC">
<tr> <td bgcolor="#FFFFFF"> <txp:image name="heart.jpg" />
</td> <td bgcolor="#FFFFFF"> Caption text for image
</td> </tr>
</table>
regards, marios
Last edited by marios (2008-03-05 13:35:08)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Pages: 1