Jump to content

[solved] Any "footer text editor" solution?


Recommended Posts

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

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

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

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...