TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] Management of news articles (purge).. and TStamp question

This is a discussion on [TYPO3] Management of news articles (purge).. and TStamp question within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; So, I can install mininews just fine. But how do you practically go about managing news after some time, imagine ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 15.01.2008, 14:59
myicq
Gast
 
Beiträge: n/a
Standard [TYPO3] Management of news articles (purge).. and TStamp question

So, I can install mininews just fine.

But how do you practically go about managing news after some time,
imagine over some months, years there will be 100s of news items
listed in the backend.

Is there a "purge" script which moves the news to an archive, or
what is the process ?

Until now, my idea would be to run an SQL scritp every now and then
but here comes my second problem: an SQL function to
work with the Typo3 tstamp values.

I think such long-term "janitoring" documentation of Typo3
is missing.

What is the proper SQL call to show typo3 tstamp in human-readable
form. Example: select t3tohr(tstamp, "%y%m%d) from news;


Thank you for all help

Torben

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 16.01.2008, 10:24
myicq
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Management of news articles (purge).. and TStampquestion

myicq <myicq2 (AT) 3gmx (DOT) net4> wrote in news:mailman.1.1200405581.4849.typo3-
english (AT) lists (DOT) netfielders.de:

> But how do you practically go about managing news after some time,
> imagine over some months, years there will be 100s of news items
> listed in the backend.
>
> Is there a "purge" script which moves the news to an archive, or
> what is the process ?


No input ?

well, after talking to ppl in the IRC channel, I think the following
will be the solution:

* define date interval for cleanup
* make "archive folder"
* run this SQL command to clean up
update tx_mininews_news
set pid = $archive_page_id
where
pid = $news_page_id
and (date difference > $number_of_days)
and hidden = 1

that way, all articles hidden, and of certain age, is archived.


This could be built into mininews.. but guess you can't have everything.


Btw, I did find the answer to second question:
To get from Typo3 timestamps to human-readable, simply do
select DATE_FORMAT(FROM_UNIXTIME(tstamp), '%Y-%m-%d %H:%i')
Obvious to 99% but I did not know, and thought someone else might
benefit.

- torben
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3] Tables sys_stat and tx_ccdevlog purge? Piotr Burda typo3-english@lists.netfielders.de 1 17.04.2007 23:50
[TYPO3] Login News - $TYPO3_CONF_VARS Question... Timothy Patterson typo3-english@lists.netfielders.de 0 17.04.2007 20:54
[TYPO3] News random order question typo3-english@lists.netfielders.de 0 05.04.2007 12:03
[TYPO3] rss question: all news-categories are showed instead of theselected one Remco Zwaan typo3-english@lists.netfielders.de 0 21.03.2007 12:22
[TYPO3] question about tt-news and foldout-menu Roelof Wobben typo3-english@lists.netfielders.de 0 04.02.2007 20:37


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:48 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39