Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-02-25 13:50:46
- voodoo6
- New Member
- Registered: 2005-09-25
- Posts: 5
show date posted for links
hello again.
no questions needed for the last 6 months, then suddenly 2 in two days!
maybe its my brain..?
anyway..
short version
how do i show the date posted for links?
long version
i can show when my articles were posted using the tag:
<txp:posted>
but, how can i show the date posted for the links i post in the links area (txp admin > content tab > links tab)? it seems the date posted information is in the mysql database, but insn’t accessable through the txp interface.
i have found a few posts relating to this:
here, here and more promisingly here
in the last post listed above andrew says:
Andrew wrote:
I submitted a patch, we’ll see what happens.
but i have no idea what to do with this code!
has anybody managed to get posted dates showing in their links list? or can anybody tell me what to do with this ‘patch’ linked above?!
thanks
Offline
#2 2006-02-25 18:23:05
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: show date posted for links
Edit: sorry, did not read your post very well, so I deleted my answer. (I could give you a tag that shows the date in your links list on your site, but you want it to show in content > links, right?)
Last edited by doggiez (2006-02-25 18:28:16)
Offline
#3 2006-02-25 21:45:59
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: show date posted for links
I had a look a the patch. Lines with – in front of it should be removed, lines with + should be added to txp_link.php (line numbers are given). I tried it and what it does is this: when you edit a link in content > links, you can see (and edit) the date posted. But it does not show the date in the list of links.
Offline
Re: show date posted for links
hi voodoo6.
You can try the mem_glinklist plug-in
From the help of the plug-in.:
<code><txp:mem_link_date /></code>—This outputs the date the link was entered. This tag can be used by linklist.
- format—(optional) Any strftime format string that will be used for displaying of the date</code>
I currently use this plug-in and one minute ago I has tested if that tag works… and it works!
Last edited by maniqui (2006-02-25 22:48:50)
Offline
#5 2006-02-26 01:33:54
- voodoo6
- New Member
- Registered: 2005-09-25
- Posts: 5
Re: show date posted for links
thanks for your help doggiez and maniqui
maniqui : i got the date working showing using the mem_glinklist plug-in. it works perfectly, thanks for the link!
doggiez, when you said:
Edit: sorry, did not read your post very well, so I deleted my answer. (I could give you a tag that shows the date in your links list on your site, but you want it to show in content > links, right?)
i think you were right the first time! – its more likely my fault for being over descriptive in my question.. I do want the date to show in my links list on the site! – so that tag you have would still be useful information..
so, textpattern community to the rescue again!
i hope i don’t need to bother you guys again for a while.. (but its good to know help is here :-)
mat
Offline
#6 2006-02-26 12:26:55
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: show date posted for links
voodoo6 wrote:
i think you were right the first time! – its more likely my fault for being over descriptive in my question.. I do want the date to show in my links list on the site! – so that tag you have would still be useful information..
Well, it’s just a kind of mini-plugin ;) that creates a tag <txp:linkdate />
for use in a links form. You can get it here if you want.
Offline
Pages: 1