You need to be logged in to view a user's profile.
  1. acvmultimedia
    Silver Member
  2. JEvents 3.4 (Free Access)
  3. Monday, 12 September 2022
Hola,

Hay alguna manera de asignar un color de fondo por categoría, es decir, el color que coge por categoría en el borde izquierdo e inferior se le podría asignar automáticamente al fondo de ese evento?

Muchas gracias
geraint
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
Yes - when you edit a category in JEvents select the 'Options' tab

ksnip_20220919-152159.png
Attachments (1)
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
  1. more than a month ago
  2. JEvents 3.4 (Free Access)
  3. # 1
acvmultimedia
Silver Member
Accepted Answer Pending Moderation
0
Votes
Undo
Yes but that color is only for the border, I want to put the color to all the box of the event
carcam
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
acvmultimedia para eso tendrías que hacer un pequeño override de la vista que te permitiera incluir el código CSS para que se use el color en el background también.
acvmultimedia
Silver Member
Accepted Answer Pending Moderation
0
Votes
Undo
Hola Carlos,

Pero para que cada categoría tenga su propio color, como tendría que hacer el override?
carcam
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
Hola acvmultimedia ,
ahora que caigo, tenemos el editor de vistas personalizadas y quizá se pueda usar para evitar tener que hacer el override ¿esto es sólo para la lista de eventos o también para la vista de calendario?
acvmultimedia
Silver Member
Accepted Answer Pending Moderation
0
Votes
Undo
Es para la vista de calendario, donde salen con el borde de cada color y el fondo gris, que estas cajas sean cada una de su color respectivo
carcam
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
Vale, entonces tienes que irte al editor de vistas personalidas y editar la celda del calendario mensual.

El código que hay por defecto es este:


<div class="eventfull">
<div class="eventstyle"
style="border-left-color:{{Event background color:COLOUR}};border-bottom-color:{{Event background color:COLOUR}};">
<span class="editlinktip hasjevtip" title="{{Tooltip title:TOOLTIPTITLE}}"
data-content="{{Tooltip content:TOOLTIPCONTENT}}">
<a class="cal_titlelink" href="/{{Link:LINK}}">{{Event Time:EVTTIME}} {{Title:TITLE}}</a>
</span>
</div>
</div>


Pues tan sólo tienes que añadirle el estilo al enlace para que el fondo se coloree:


<div class="eventfull">
<div class="eventstyle"
style="border-left-color:{{Event background color:COLOUR}};border-bottom-color:{{Event background color:COLOUR}};">
<span class="editlinktip hasjevtip" title="{{Tooltip title:TOOLTIPTITLE}}"
data-content="{{Tooltip content:TOOLTIPCONTENT}}">
<a class="cal_titlelink" style="background-color: {{Color de fondo de evento:COLOUR}}" href="/{{Link:LINK}}">{{Event Time:EVTTIME}} {{Title:TITLE}}</a>
</span>
</div>
</div>


Finalmente para que quede perfecto, haz scroll en el editor y en la zona de CSS personalizado, añade esto:


div.eventfull div{
padding: 0;
}

.cal_titlelink{
margin: 0!important;
}


Con eso debería quedarte lo que buscas.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.