Customizing a template

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
Godslayer
Posts: 6
Joined: Tue Sep 10, 2013 4:41 pm

Customizing a template

Post by Godslayer »

Hi,

I'm adding a new field to the add.tpl and while I had no issue adding a new column in the database I was wondering if anyone had a list of all of the .php files that would have to be changed so that the arrays for add/delete/edit etc would be update as well.

Thanks in advance.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Customizing a template

Post by Thorsten »

Hi,

if it's add.tpl, just check inc/PMF/Faq.php

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Godslayer
Posts: 6
Joined: Tue Sep 10, 2013 4:41 pm

Re: Customizing a template

Post by Godslayer »

Ok, I see the insert and update queries in /inc/PMF/Faq.php but doesn't something like record.add.php feed data into this so it know's what to insert into the DB or am I looking in the wrong place?
Godslayer
Posts: 6
Joined: Tue Sep 10, 2013 4:41 pm

Re: Customizing a template

Post by Godslayer »

Nvm, I found the issue was the post wasn't in ajaxservice.php and now the new field is in there and adding to the database properly.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Customizing a template

Post by Thorsten »

Hi,

is it working now?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Godslayer
Posts: 6
Joined: Tue Sep 10, 2013 4:41 pm

Re: Customizing a template

Post by Godslayer »

I have the add.tpl updated as well as the new insert working so the data is going into the database. Now I am working on updating the pages that display FAQS and edit them so I can view/edit the new field.

Any suggestions you have on places to start would be appreciated but I think I can find it given time.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Customizing a template

Post by Thorsten »

Hi,

that's artikel.php and artikel.tpl

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Godslayer
Posts: 6
Joined: Tue Sep 10, 2013 4:41 pm

Re: Customizing a template

Post by Godslayer »

Thanks for the information. I'll look into those now.
Post Reply