Go Back   Mosets Community > Mosets Templates > Kinabalu

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-13-2011, 12:11 AM
patricknelson patricknelson is offline
Mosets'd
 
Join Date: May 2010
Posts: 20
Lightbulb Category Specific Custom Fields

I was wondering if anyone has been able to alter the Kinabalu template too allow for category specific custom fields. We have 3 directories with identical categories (50 states). Each directory has to have custom fields (i.e. music played, bar type, and best night to go). The custom fields will be for all the 50 categories per directory. Any help would be greatly appreciated.

NOTE: We're intending upon using PaymentsPlus so we want this to work with that platform.
Reply With Quote
  #2  
Old 10-13-2011, 08:06 AM
stephencox stephencox is offline
Mosets'd
 
Join Date: Jul 2008
Location: Hervey Bay Qld. Australia
Posts: 26
Default

M2Calf is a replacement for the original page_addlisting.tpl.php and adds a category restriction array. PaymentsPlus modifies the original page_addlisting.tpl.php and then adds some other include files to extend the functions of Mtree. When the page is saved it goes through mtree.php for the save, edit, delete and other functions. PP also modifies mtree.php using M2Calf as it is won't work with PP. That said it's not needed because PaymentsPlus builds in a Category Restriction in its Products function.

Further, the restrict category function in PP goes beyond what M2Calf can do by placing the Categories array inside the database so you don't need to edit code each time you want to make an adjustment. You can do what you want with PP you would just create 3 products i.e. restaurants, bars, and nightclubs. First get the ID numbers from Mtree. The categories are defined by ID number For each product you would identify the category ID's in PaymentsPlus > Manage Products > Select the Product then Edit Restrict Category IDs.

Then enter the Category ID numbers separated by a comma. You can specify a range or ranges of IDs and or individual IDs
Examples:
ID Numbers Only: 1,2,3,4,5,7,9,10
Single Range plus Individual IDs: 1-5,7,9,10
Multiple Ranges and Individual IDS: 1-5,7,9,10,21-50,100-110

After that you would specify the custom fields that are exclusive to that product. Remembering that the GENERIC fields are in the Listing Type that your product will use.

Hope this helps
Regards Steve
Developer of PaymentsPlus
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


All times are GMT +8. The time now is 01:52 PM.

Copyright © 2005-2010 Mosets Consulting

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.