Auto templates

Re: [webgfx] Auto templates

By Jason - August 11, 2010

Hi Keith,

There are a couple of things we can do. Every record has a "Created By" system field associated with it. We can use this to get the user information of the person who create the record. If the record is being created by an admin, they can select a user from a drop down in CMS Builder for the "Created By" field.

If that doesn't do everything you want, we can also add a field to the page through the section editor. From the sounds of it, this would be a list field (drop down) that would have a list of users (from the "Staff" editor), where the person creating the record can select which staff the listing belongs to.

Let me know what you think of these options and let me know exactly what information you'll need to be retrieving on your listings.php page and I can help walk you through it.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Auto templates

By keith_s - August 11, 2010

Jason,

I actually had already implemented one of your solutions partially. I did indeed create a dropdown from the Staff page. However, the issue that I had was not all of the Staff members were set up as "users". As a result, what I wound up doing was setting up user accounts with the exact same name as what exists for the staff members. This was what I had to do in order to pull in the createdBy field as well as all of the information located on the staff page (name, phone, email, etc.).

I know what I did is not the truest way that it should be done, but it works. If I do another car dealership in the future, I would prefer to get you to help me get the code be the cleanest it can be. There are one or 2 things that I didn't do because of this issue, but they were minor things that didn't really matter.

Overall, I'm very pleased with the result - http://www.southwindford.com. My main reason for posting this was to let you guys know that I think the templates themselves need some slight modification so that they work completely as they should "out of the box".