9 Posts
cbahiana
9 years ago
6
Topic
I have a form that's already working and that saves articles inside a given category. I need to get rid of these articles (deleted from database, archived or unpublished) after a number of days.

art_publish_down let me choose a date, but I want to choose age (number of days after it's been published).

I know there are components and plugins for Joomla that do that, but I've tried some and didn't like the results. Besides, I only need this for articles created by the Seblod form.
Get a VIP membership
4229 Posts
Kadministrator
9 years ago
1
Level 1
Hi,

easiest way to do this would be to have
- a dropdown with age numbers
- a hidden text field art_publish_down with some code to fill in the right unpublish date based on created date plus value from dropdown, you can see similar theread that can give you coding ideas here http://www.seblod.com/community/forums/forms-content-types/calendar-end-date-start-date-90-days
9 Posts
cbahiana
9 years ago
0
Level 2
Thank you Klas, I'll take a look at it.
9 Posts
cbahiana
9 years ago
0
Level 1
Update:

It seems that terveg's plugin does exactly what I needed. I'm testing it right now.
4229 Posts
Kadministrator
9 years ago
2
Level 1
Which plugin exactly?
9 Posts
cbahiana
9 years ago
1
Level 2
It was mentioned on one post at the thread you suggested above:

http://www.seblod.pro/downloads/491-date-math-dlya-seblod-v-3
4229 Posts
Kadministrator
9 years ago
0
Level 3
I see, thnx, I somehow missed that :)
Get a VIP membership