MX Includes Forum :: includes doesn't work- page empty
This thread was displayed: 166 times
Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.
For more information about the affected products visit: www.interaktonline.com/Support/
Leonard Mckinney
01-03-2006 06:37:17 GMT +2
|
I am currently using MX Kollections 3.6.0, CSS menus 1.7.7, Coldfusion MX 7, Dreamweaver 8
if I create a page 2 folders deep and try to use includes on that page, it will simply no show. I can see it in dreamweaver and it shows up in the server behaviors but when going to view the page after publishing it. it doesn't show up.
I though it was maybe a problem with CSS menus that I was using so I created a new page and tried to insert it with just a simple page with text and that doesn't show. Is this a bug for the coldfusion server behavior for MX Includes?
I have a footer.cfm page also in the same folder and it shows sometimes but not all the time.
Thanks for the help.
|
|
|
Florin CARLIG[InterAKT]
01-04-2006 17:48:44 GMT +2
|
Hello Leonard,
Please try this:
Go to the includes/common/KT_functions.inc.cfm, locate the KT_canonizeRelPath function and modify it to look like this:
<cffunction name="KT_canonizeRelPath" output="no">
<cfargument name="path" type="string" required="yes">
<cfset var ret = ''>
<cfset var parts = ArrayNew(1)>
<cfset var newParts = ArrayNew(1)>
<cfset var i = 0>
<cfset parts = Request.KT_explode(Arguments.path, '/')>
<cfloop from="1" to="#ArrayLen(parts)#" index="i">
<cfif parts[i] EQ '..'>
<cfif ArrayLen(newParts) GT 0>
<cfif newParts[ArrayLen(newParts)] NEQ '..'>
<cfset ArrayDeleteAt(newParts, ArrayLen(newParts))>
<cfelse>
<cfset ArrayAppend(newParts, parts[i])>
</cfif>
<cfelse>
<cfset ArrayAppend(newParts, parts[i])>
</cfif>
<cfelseif parts[i] NEQ '.'>
<cfset ArrayAppend(newParts, parts[i])>
</cfif>
</cfloop>
<cfset ret = ArrayToList(newParts, '/')>
<cfreturn ret>
</cffunction>
<cfset Request.KT_canonizeRelPath = KT_canonizeRelPath>
Let us know if you still have problems.
Regards,
Florin CARLIG
|
|
|
Leonard Mckinney
01-04-2006 19:49:03 GMT +2
|
It Works! Thanks guys. is this a bug or did I do something wrong. will I need this for every site I use?Link
|
|
|
Florin CARLIG[InterAKT]
01-05-2006 19:09:10 GMT +2
|
Hello,
This problem will be corrected in a future MXKollection release. For now, I'm afraid you're gonna have to modify it on every site.
Regards,
Florin
|
|
|