Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th May 2007, 12:52
meemu meemu is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 2
Thanked 8 Times in 5 Posts
Default Remembering the template name

Hi, I tried posting in devel but I didn't have permissions. Apologies if this is in the wrong place.
What I am trying to do is to store the template id together with the actual web. Main reason is for feeding into a billing/registration system at a later stage.
I understand the templates are stored in isp_isp_web_template and the actual web sites are stored isp_isp_web. Now my question: would it be a good idea just to add a column to isp_isp_web that contains the doc_id from isp_isp_web_template and fill this on form submission or is there anotehr place this would better go?

Thanks in advance
Reply With Quote
Sponsored Links
  #2  
Old 18th May 2007, 12:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

I would just add a column to isp_isp_web with the doc_id of the template. Posting to the development forum is only possible for registered developers. If you want to become registered developer, please have a look at the sticky posts in the dev forum.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 18th May 2007, 14:03
meemu meemu is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 2
Thanked 8 Times in 5 Posts
Default

I have tried looking at /home/admispconfig/ispconfig/web/multidoc/edit/edit.php

Would I have to edit the doctype entry for isp_web and add vorlage_id to the doctype_def and that would do that trick (also add the column to isp_isp_web)?

Thanks!
Reply With Quote
  #4  
Old 18th May 2007, 14:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

You dont have to edit this file at all, it is the form processor for all forms. You must use the form editor to add the field to the form. The form editor will create the database field for you automatically.

But as the field should not be visible, it will be ok if you add it just to the database with phpmyadmin.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 18th May 2007, 14:28
meemu meemu is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 2
Thanked 8 Times in 5 Posts
Default

Ah yes I understand that but I was more thinking of storing the hosting plan you select when you set up a new web.

It's called from here:

/home/admispconfig/ispconfig/web/isp_manager/new/web.php

My reading was that it passes vorlage_id to the form processor but the form processor only saves the values that are defined in doctype.doctype_def
Reply With Quote
  #6  
Old 18th May 2007, 14:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
 
Default

ISPConfig forms are action based, you dont have to edit anything in the form processor as this file is for all forms, not just websites you must add your code to the action functions which can be found in the file /home/admispconfig/ispconfig/lib/classes/isp_isp_web.lib.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change default web-template hagel Installation/Configuration 15 29th March 2010 17:10
default DNS record template jnoble Installation/Configuration 11 11th April 2007 17:40
modifiable default dns template NETabuse Feature Requests 6 18th February 2007 19:55
Default values for variables in DNS template Rustin General 1 29th December 2006 12:17
Bind template editor adam76 Feature Requests 0 24th January 2006 11:28


All times are GMT +2. The time now is 08:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.