How can I get and set the "schedule guest access" on a custom block
Permalink
I want to set and get the "schedule guest access" on a block. If possible I want to set it in my form and display it in my view.
At the moment I do the same with the custom template so it's easyer for the customers to edit a block and set the custom template while editing.
I'll do the same with the "schedule guest access"
Thanks in advance
At the moment I do the same with the custom template so it's easyer for the customers to edit a block and set the custom template while editing.
I'll do the same with the "schedule guest access"
Thanks in advance
Hello K,
thanks for the links.
I found out that the time and date a guest user can see the block is stored in the table "PermissionDurationObjects". Is there an easy way to find out whitch block is linked to witch line or is there an helper to write easily the times into the DB?
At the moment I use 2 fields in my table to store dates. Between this dates the block will shown. How can I use the standard?
thanks for the links.
I found out that the time and date a guest user can see the block is stored in the table "PermissionDurationObjects". Is there an easy way to find out whitch block is linked to witch line or is there an helper to write easily the times into the DB?
At the moment I use 2 fields in my table to store dates. Between this dates the block will shown. How can I use the standard?
Hopefully these links will help point you in the right direction.
https://github.com/concrete5/concrete5/blob/develop/web/concrete/ele...
https://github.com/concrete5/concrete5/blob/develop/web/concrete/ele...
https://github.com/concrete5/concrete5/blob/develop/web/concrete/too...