Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-01-25 04:12:37
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Change time published on revised article and...
I had my first article which was published on the 16th of January. I had to do some revisions tonight and after I saved the revisions it showed the current date as published date instead of when it was actually published. How would I set it so that no matter how many revisions I do, it always shows the original time and date it was published?
Second question is I’ve got my excert, and then below that I’ve got “Read More” and “Leave a Comment”. The problem here is that they both take you to the same place, which is the rest of the article. Is it possible to include some code somewhere so that when “Leave a Comment” is clicked, it takes you directly to the comment form, and not to the rest of the article? If not, it kinda defeats the purpose of both links except to show how many comments I’ve recieved because they both take you to the same place.
-Deron
Offline
Re: Change time published on revised article and...
First – it should retain it’s original published time and date unless you have checked the “Rest time to now” box.
Second – you need to go to the “comments_display” form and add an id=“comment” anchor immediately above the <code><txp:comments /></code> tag.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2006-01-25 16:51:39
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: Change time published on revised article and...
Okay, here is a pic of what I have for each of my two articles: <a href=“http://www.deronsizemore.com/images/resettime.gif”>PICTURE</a>. I assume you’re talking about the “reset time to now” box circled in red. It’s not checked, and wasn’t checked when I opened the article up. It’s hard to see where I made the red circle, but the published at date reads January 24th. But even though I’ve made no changes to this article, if you check out my site it shows the current date and time. This is the current code I have for my article form:
<br />
<h4><txp:permlink><txp:title /></txp:permlink></h4>
<span class="comment_time"><txp:comment_time /></span>
<txp:if_excerpt>
<p><txp:excerpt /></p>
<p><txp:permlink>Read More...</txp:permlink> | <txp:comments_invite /></p>
<txp:else />
<p><txp:body /></p>
<txp:comments_invite wraptag="p" />
</txp:if_excerpt>
<br />
<br />
Any ideas why it’s just showing whatever the current date and time is for each article regardless of when I actually posted them? I’m sure it’s something I’ve done in the code or something else i’m not doing.
<br />
On the second issue of setting the anchor, I am confused on what to use for the “href” part of the anchor. I’ve never set an anchor like this before, only external anchor links, so I assume it would go something like this?:
<br />
<a id="comments" href="#" />
<br />
Is that even close to being right?
<br />
Thanks,
Deron
Offline
#4 2006-01-25 17:59:01
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Change time published on revised article and...
<txp:comment_time />
should be <txp:posted />
.
<br />
Just <a id="comment"></a>
before <txp:comments_invite wraptag="p" />
.
Offline
#5 2006-01-25 19:07:29
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: Change time published on revised article and...
> doggiez wrote:
> <txp:comment_time />
should be <txp:posted />
.
<br />
Just <a id="comment"></a>
before <txp:comments_invite wraptag="p" />
.
ah, awesome! Thanks for the help…and sorry for the dumb questions (seem obvious as you told me the answers).
Offline
Re: Change time published on revised article and...
You don’t need anything for the “comment_invite” tag. The anchor link is already built in to that by default. You can see it if you view the source of your front-page. It’s the “other end” that you need an “anchor”, immediately above the <code><txp:comments /></code> tag in the “comments_display” form template. I actually use an “h3” title above mine at thebombsite and the “h3” tag has an “id=comment”
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#7 2006-01-26 02:38:11
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: Change time published on revised article and...
> thebombsite wrote:
> You don’t need anything for the “comment_invite” tag. The anchor link is already built in to that by default. You can see it if you view the source of your front-page. It’s the “other end” that you need an “anchor”, immediately above the <code><txp:comments /></code> tag in the “comments_display” form template. I actually use an “h3” title above mine at thebombsite and the “h3” tag has an “id=comment”
Thanks. Yeah I actually found that out on my own. Can you believe that…me doing something without your guys’ help? LOL.
Thanks again,
Deron
Offline