Skip to main content
Integrate comment from OPer to an answer that was deleted (and which referred to that thread)
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

I was able to set rule to unpublished after +30 days. But I would like to tweak my rule to give to my users the possibility to choose between posting for 2 weeks, one month or 3 months.

So, I guess that there would be an "if choice X, than unpublish after Y period of time". Can the field (to choose duration) be a text dropdown?

Can this be done without PHP? If so how?


So, I figured out that I can add a condition like this :

Parameter: Data to compare: [node:field-time-limit], Data value: 2 weeks

But since I have 3 choices for my ads (2 weeks, 1 month, 3 months), does this means that I have to make 3 different rules, one for each time limit? (it seems to make sense, but I'm not shure).

ThanksNote: I'm aware of the thread about "Tutorial 2: Publish content exactly 24 hours after it was created".

I was able to set rule to unpublished after +30 days. But I would like to tweak my rule to give to my users the possibility to choose between posting for 2 weeks, one month or 3 months.

So, I guess that there would be an "if choice X, than unpublish after Y period of time". Can the field (to choose duration) be a text dropdown?

Can this be done without PHP? If so how?


So, I figured out that I can add a condition like this :

Parameter: Data to compare: [node:field-time-limit], Data value: 2 weeks

But since I have 3 choices for my ads (2 weeks, 1 month, 3 months), does this means that I have to make 3 different rules, one for each time limit? (it seems to make sense, but I'm not shure).

Thanks.

I was able to set rule to unpublished after +30 days. But I would like to tweak my rule to give to my users the possibility to choose between posting for 2 weeks, one month or 3 months.

So, I guess that there would be an "if choice X, than unpublish after Y period of time". Can the field (to choose duration) be a text dropdown?

Can this be done without PHP? If so how?


So, I figured out that I can add a condition like this :

Parameter: Data to compare: [node:field-time-limit], Data value: 2 weeks

But since I have 3 choices for my ads (2 weeks, 1 month, 3 months), does this means that I have to make 3 different rules, one for each time limit? (it seems to make sense, but I'm not shure).

Note: I'm aware of the thread about "Tutorial 2: Publish content exactly 24 hours after it was created".

Tweeted twitter.com/StackDrupal/status/699064405695340545
appended answer 186978 as supplemental
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

I was able to set rule to unpublished after +30 days. But I would like to tweak my rule to give to my users the possibility to choose between posting for 2 weeks, one month or 3 months.

So, I guess that there would be an "if choice X, than unpublish after Y period of time". Can the field (to choose duration) be a text dropdown?

Can this be done without PHP? If so how?


So, I figured out that I can add a condition like this :

Parameter: Data to compare: [node:field-time-limit], Data value: 2 weeks

But since I have 3 choices for my ads (2 weeks, 1 month, 3 months), does this means that I have to make 3 different rules, one for each time limit? (it seems to make sense, but I'm not shure).

Thanks.

I was able to set rule to unpublished after +30 days. But I would like to tweak my rule to give to my users the possibility to choose between posting for 2 weeks, one month or 3 months.

So, I guess that there would be an "if choice X, than unpublish after Y period of time". Can the field (to choose duration) be a text dropdown?

Can this be done without PHP? If so how?

I was able to set rule to unpublished after +30 days. But I would like to tweak my rule to give to my users the possibility to choose between posting for 2 weeks, one month or 3 months.

So, I guess that there would be an "if choice X, than unpublish after Y period of time". Can the field (to choose duration) be a text dropdown?

Can this be done without PHP? If so how?


So, I figured out that I can add a condition like this :

Parameter: Data to compare: [node:field-time-limit], Data value: 2 weeks

But since I have 3 choices for my ads (2 weeks, 1 month, 3 months), does this means that I have to make 3 different rules, one for each time limit? (it seems to make sense, but I'm not shure).

Thanks.

Improve title (and fix typo)
Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

Unpublish accroding How to unpublish postings according to the value of a field?

removed tags from title
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Loading
Source Link
Loading