DrLightman Posted January 29, 2012 Share Posted January 29, 2012 Hi, I'd like to give the client the possibility to edit a small piece of text in the footer. I'd need a module similar to the "Home text editor", I guess. My doubt is, beeing new to PS, do I need to make my own module, maybe copying from the above mentioned one, or does PS already offer a buildt in solution to accomplish my goal? (to hook an html editor to the footer, basically) As an alternative I thought about getting the content of a specific CMS page, named maybe "footer", is that possibile from within a template retriving the content of a page by name? Thanks in advance. Link to comment Share on other sites More sharing options...
Richard S Posted January 30, 2012 Share Posted January 30, 2012 You could use the same module, just add additional function hookFotter($params) {} and do everything as you want there. You can even load another .tpl file for footer than it is for homepage. You would also need to register footer hook and additional form in BackOffice Link to comment Share on other sites More sharing options...
DrLightman Posted January 30, 2012 Author Share Posted January 30, 2012 In the end I did make a copy, changed the hook as you mentioned from home to footer in one place, but also did several other modifications to change the name of the table where data is stored (didn't try to re-use the existing one) and the various labels from "editorial" to "editorialfooter" around code, folder name and filenames, it seems to be working. Link to comment Share on other sites More sharing options...
Richard S Posted January 30, 2012 Share Posted January 30, 2012 I am happy you succeeded! 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