Main menu

Forum


× Help Forum English

[TRICK] Custom CSS suffix for module

  • goncatin
  • Topic Author
  • New Member
  • New Member
More
11 years 7 months ago - 11 years 7 months ago #1395 by goncatin
[TRICK] Custom CSS suffix for module was created by goncatin
My solution for add a css suffix for the module:

Open modules/mod_iccalendar/mod_iccalendar.php

Locate the line

defined( '_JEXEC' ) or die( 'Restricted access' );

After this line add in a new line:

$moduleclass_sfx = $params->get('moduleclass_sfx','');

Now open modules/mod_iccalendar/mod_iccalendar.xml

Go to line 204 and add

<field name="moduleclass_sfx" type="text" label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC" />

Now in advanced options tab you can find the new option.

Please, include this code in the new version of iCalendar.

(Sorry for my language, english isn´t my mother language)
Last edit: 11 years 7 months ago by Lyr!C. Reason: [TRICK]

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

  • regis
  • regis's Avatar
  • Premium Member
  • Premium Member
More
11 years 7 months ago #1396 by regis
Replied by regis on topic Custom CSS suffix for module
Hi Crokan !

Css class suffix for the module will be integrated into the next version of iCagenda.
Thank you for your tip for those who do not want to wait.

- Si vous aimez iCagenda et son support, merci de poster un petit commentaire sur le JED

- If you like iCagenda and support, thank you to post a small comment on the JED

♥ iCagenda on JED

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

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
11 years 7 months ago #1413 by Lyr!C
Replied by Lyr!C on topic Custom CSS suffix for module
And add suffix css in html file too : TEMPLATENAME_calendar.php
<div class="iccalendar<?php echo $params->get('moduleclass_sfx'); ?>">

B)

Latest version : iCagenda 3.9.4
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

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

Moderators: Lyr!C
Time to create page: 0.235 seconds

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new