Jump to content

How to save the links which connect to product and cms page from cms front page in cms admin panel?


pinkydarky

Recommended Posts

Hello, I need your help for this.

I like to add two buttons in CMS page.

One is the link for product and another is the link for the page of CMS.

I added two fields for the product link and the cms link in Admin of cms.

But the system can’t save those two values after I inputted two IDs of product and cms.

I designed to add  ID of the product or the CMS page instead of the link.  

Probably I missed the code a lot, so please help me…

I attached the screenshot of front and admin including the added code.

Earnestly I want to get the support of two problems:

   First:  the solution that the system can save the values of two new fields.

Second: I created new functions to get the ID value of new fields from the data base. Where are these functions supposed to be called from?

Thanks!

admin.jpg

front.jpg

admincmscontroller.jpg

cms-php-in-class.jpg

cms-php-2-in-class.jpg

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