meta data and CCS/JS - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: meta data and CCS/JS (/showthread.php?tid=77995) |
meta data and CCS/JS - Jeewakapk - 11-16-2020 Hi, can anyone tell me how to add meta description and meta keywords dynamically? I used the layout method so a single header and single footer. also can I add CSS file and JS file dymanically? thank you so much await your reply Jeewaka RE: meta data and CCS/JS - mjamilasfihani - 11-16-2020 You can try my library https://github.com/mjamilasfihani/BHPGenerator I made it based on CI 4.0.4 Sorry for bad documentation It'll give you 3 option, set the assets (css, js, meta or your css/js script) that will be used for global configuration or add local assets (in controller) but not replace the global configuration or add local assets that replace the global configuration Just try to experiment with it, hope it usefull for you RE: meta data and CCS/JS - Jeewakapk - 11-19-2020 (11-16-2020, 11:26 PM)mjamilasfihani Wrote: You can try my library https://github.com/mjamilasfihani/BHPGenerator Thank you so much will try |