Hey guys,
Do you know where / how to set the default "Finish Publishing" date for K2 items? It is "Never" by default.
What I am interested in is how to set the default "Finish Publishing" date to stop publishing 1 month after the item was created / published.
I found this piece of code in components/com_k2/views/item/view.html.php I think this might be related somehow :-O
if (JHTML::_('date', $item->publish_down, '%Y') <= 1969 || $item->publish_down == $db->getNullDate()) { $item->publish_down = JText::_('Never'); } else { $item->publish_down = JHTML::_('date', $item->publish_down, '%Y-%m-%d %H:%M:%S'); }
I appreciate any help!
Do you know where / how to set the default "Finish Publishing" date for K2 items? It is "Never" by default.
What I am interested in is how to set the default "Finish Publishing" date to stop publishing 1 month after the item was created / published.
I found this piece of code in components/com_k2/views/item/view.html.php I think this might be related somehow :-O
if (JHTML::_('date', $item->publish_down, '%Y') <= 1969 || $item->publish_down == $db->getNullDate()) { $item->publish_down = JText::_('Never'); } else { $item->publish_down = JHTML::_('date', $item->publish_down, '%Y-%m-%d %H:%M:%S'); }
I appreciate any help!