[USE plugin event onAfterSaveItem] Unpublish events automatically

More
6 years 7 months ago - 6 years 7 months ago #68983 by Flor1an1976
Hi,
i want built a event-calendar with flexicontent. The user can set multiple dates in frontend.
Is there a way to unpublish events automatically after the last date?
Or is there a way to set a field with unpublish-date in frontend?
Thx and regards, Florian
Last edit: 6 years 7 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago - 6 years 7 months ago #69018 by ggppdk
Hello

you can do it via our plugin event
onAfterSaveItem

- the dates of the field will be examined
- and the latest of them will be used to set:
publish_down property
of the item

it is 1 hour work for me to provide such a plugin (write it and test it)
... the way to do the above is to duplicate plugin

plugins/flexicontent/flexinotify/flexinotify.php
as
plugins/flexicontent/mypublications/mypublications.php

and customize the event


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 6 years 7 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago - 6 years 7 months ago #69020 by Flor1an1976
Hi ggppdk,

sorry, I dont understand your answer.

Is this plugin somewhere available and i can install it?
Or do I have to instruct you specifically? What does this cost?

Thx and regards.
Last edit: 6 years 7 months ago by Flor1an1976.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #69083 by ggppdk
Hello

sorry, I dont understand your answer.

Is this plugin somewhere available and i can install it?
Or do I have to instruct you specifically? What does this cost?


Just to make clear what you suggest
you have a date field with multiple values
and you would like the latest of all date values to be set as publish_down date ?
correct ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #69090 by Flor1an1976
Hi,

yes and no ;) .

I need a event calender. I have two different items there.

1. Events single day or longer events like a seasonal art exhibition. They have only a start and end-date
2. Events on one day but for more weeks. For example "every monday happy hour in pub ..."

First problem: After the dates the items should automatically published down
Second problem: I have to sort the items in category view by beginn of the event. For long events the start date is over and a current one should be displayed (I hope you now what i mean :unsure: )

Thx and regards,
Florian

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.302 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline