Jump to content

Recommended Posts

Posted

I made a calendar view page in the admin using AdminCustomPages module, but since I want to add more functionality to it I am trying to make it (the calendar) its own module... 

So I have a module ProcessKalendar that extends Process and implements Module, ConfigurableModule. It creates the Kalendar page on installation and currently just outputs the input of the one config field for the module on that page on execution.

I need to add scripts and stylesheets... How do I do this within the module? 

Posted

Just name the script and style sheet same as your module then add init () with a parent::init(); and they get loaded.

  • Like 1
Posted

Hellomoto,

Take a look at some other modules. You can learn a lot by checking out the core modules too. /wire/ is your friend. :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...