[TYPO3-calendar] Multiple header-/bodystyles for event

Thomas Jirasko jirasko at bugfree-systems.de
Sun Mar 10 13:32:15 CET 2019


Dear List,

I found a solution for my request, but this is not update safe:

File: typo3conf/ext/cal/Classes/Model/EventModel.php - function 
getHeaderStyle()
/
//replace: //
//
//if ($this->categories [0]->getHeaderStyle () != '') {//
//    return $this->categories [0]->getHeaderStyle ();//
//}//
//
//with://
//
//$out = '';//
//for ($i = 0, $m = sizeof($this->categories); $i < $m; $i++) {//
//    if ($this->categories[$i]->getHeaderStyle() != '')//
//        $out .= (!empty($out) ? ' ' : '') . 
$this->categories[$i]->getHeaderStyle();//
//}//
//return $out;/

---

Question to Jan Helke:

Could this change request be adopted into the next realese?

Best Regards,
TJ

Bugfree Systems
Thomas Jirasko
Leipziger Straße 20
71101 Schönaich

Tel. 07031 600 40 50
Fax  07031 702 99 95

jirasko at bugfree-systems.de
www.bugfree-systems.de

---

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Sollten Sie diese Mail irrtümlich erhalten haben oder nicht der richtige Adressat sein,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.

Am 10.03.2019 um 12:18 schrieb Thomas Jirasko:
> Dear List,
>
> I would like to assign several categories to an event.
>
> This works, but in the marker ###HEADERSTYLE### or ####BODYSTYLE#### 
> only one category is present in the event, e.g. default_catheader.
> For formatting of cooperation events in the output I need all assigned 
> styles of the categories.
>
> Does anyone have an idea how to do this?
>
> Best Regards,
> TJ
>


More information about the TYPO3-project-calendar mailing list