Here are some Tips and Tricks that I learned during the CommonSpot developer training. I’ve found them useful while working in this CMS so maybe you will too!
Debug Settings
Add this to the end of your site’s URL to fire up the debug settings.
/loader.cfm?csmodule=utilities/debug-settings
Cacheing
Don’t want your element to cache while you’re developing it?! Add this single line to the top of your renderhandler.
request.element.isStatic = 0
Want to clear the cache? Go for it; stick this querystring on your working URL.
?resetutils
Site Administration
Need access to the Site Administration? Of course you do, you’re the developer! Replace the current page with this and you’re there.
loader.cfm?csModule=admin/site-menu&showSiteConfig=1
Custom Element Details
Get details about a custom element straight from the DB. cfdump the results of this query. I’m querying element 1342 in this instance, notice the WHERE clause.
<cfquery name="myQuery" datasource="#request.site.datasource#">
SELECT d1.ID,
d1.FormName,
d1.Method,
d1.Action,
d1.DateCreated,
d1.DateLastModified,
d1.OwnerID,
d2.ID as inputID,
d2.fieldName,
d2.shared,
d2.type as inputType,
d2.dateCreated as inputCreated,
d2.description,
d2.dateLastModified as inputLastModified,
d3.itemPos,
d3.TabID
FROM formControl d1, formInputControl d2, formInputControlMap d3
WHERE d3.fieldID = d2.ID
AND d1.ID = d3.formID
AND d1.ID in (1342)
order by d1.ID, d3.itemPos
</cfquery>

