Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-02-05 23:53:21
- pluto
- New Member
- Registered: 2007-02-05
- Posts: 1
Using Image Tag Within Article Form
I think I got this straight after reading all the documentation like:
Txp:image
I really just need to add images to individual posts, so to do so I did:
1)Uploaded the new image under Content > Images and saved the image
2)Added the <txp:article_image /> to the default article Template
3)Created a new article, and specified the image ID under “Advanced Options”
Is this really all I need to be aware of?
The thing I am unsure of is: exactly where to place the <txp:article_image /> in the default article Template form? From what I can gather, the whole thing is an “if else” conditional loop that I can’t make too much sense of.
I placed the tag in the code below, could someone please tell me if this was the proper place?
<txp:if_article_list>
<txp:if_first_article>
<div class=“entry-1”>
<txp:else />
<div class=“entry”>
</txp:if_first_article>
<txp:else />
<div class=“entry”>
</txp:if_article_list>
<div class=“entrytitle”>
<h2><txp:permlink><txp:title /></txp:permlink></h2>
<txp:if_section name=”,article”><h3><txp:posted /></h3></txp:if_section>
</div>
<div class=“entrybody”>
<br>
<txp:article_image class=“content” />
<txp:if_article_list>
<txp:if_excerpt>
<txp:excerpt />
<txp:permlink>read rest of article…</txp:permlink>
<txp:else />
<txp:body />
</txp:if_excerpt>
<txp:else />
<txp:body />
</txp:if_article_list>
</div>
<div class=“entrymeta”>
<div class=“postinfo”>
<div class=“postedby”>Posted by <txp:author link=0 /></div>
<txp:if_section name=”,article”><div class=“filedto”>tagged under: <a href=”<txp:site_url /><txp:section />/?c=<txp:category1 />” title=“View all articles in the ‘<txp:category1 title=“1” />’ category”><txp:category1 title=“1” /></a></div></txp:if_section>
</div>
<p> </p>
<!— <div class=“commentslink”><txp:comments_invite /></div> —>
</div>
</div>
using version 4.0.4
Last edited by pluto (2007-02-06 00:01:45)
Offline
#2 2007-02-06 01:48:48
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Using Image Tag Within Article Form
Looks fine to me.
Offline
Pages: 1