hellomoto Posted January 22, 2015 Share Posted January 22, 2015 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? Link to comment Share on other sites More sharing options...
Soma Posted January 22, 2015 Share Posted January 22, 2015 Just name the script and style sheet same as your module then add init () with a parent::init(); and they get loaded. 1 Link to comment Share on other sites More sharing options...
renobird Posted January 23, 2015 Share Posted January 23, 2015 Hellomoto, Take a look at some other modules. You can learn a lot by checking out the core modules too. /wire/ is your friend. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now