Skip to content

Commit 4703f2e

Browse files
Merge branch 'Ortus-Solutions:development' into development
2 parents 5f8d263 + f9d992f commit 4703f2e

File tree

10 files changed

+80
-48
lines changed

10 files changed

+80
-48
lines changed

box.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"ContentBox Tester Site",
3-
"version":"6.3.0",
3+
"version":"6.4.0",
44
"author":"Ortus Solutions <[email protected]>",
55
"shortDescription":"A tester site for developing the ContentBox Modular CMS",
66
"type":"cms",
@@ -28,7 +28,7 @@
2828
"commandbox-migrations":"*"
2929
},
3030
"devDependencies":{
31-
"commandbox-boxlang":"*",
31+
"commandbox-boxlang":"*",
3232
"commandbox-cfformat":"*",
3333
"commandbox-docbox":"*",
3434
"testbox":"*",

changelog.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [Unreleased]
1111

12+
## [6.3.2] - 2025-12-05
13+
14+
### Fixed
15+
16+
- Fixed an issue where different engines were handing defaults
17+
18+
## [6.3.1] - 2025-10-20
19+
20+
## [6.3.0] - 2025-10-03
21+
1222
## [6.1.1] - 2025-03-19
1323

1424
## [6.1.0] - 2025-03-18
@@ -117,7 +127,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
117127
- [CONTENTBOX-1478](https://ortussolutions.atlassian.net/browse/CONTENTBOX-1478) Remove old tuckey urlrewrite.xml as this is now in the CommandBox Core
118128
- [CONTENTBOX-1493](https://ortussolutions.atlassian.net/browse/CONTENTBOX-1493) ContentBox Express removed since we now have CommandBox
119129

120-
[Unreleased]: https://github.com/Ortus-Solutions/ContentBox/compare/v6.1.1...HEAD
130+
[Unreleased]: https://github.com/Ortus-Solutions/ContentBox/compare/v6.3.2...HEAD
131+
132+
[6.3.2]: https://github.com/Ortus-Solutions/ContentBox/compare/v6.3.1...v6.3.2
133+
134+
[6.3.1]: https://github.com/Ortus-Solutions/ContentBox/compare/v6.3.0...v6.3.1
135+
136+
[6.3.0]: https://github.com/Ortus-Solutions/ContentBox/compare/v6.1.1...v6.3.0
121137

122138
[6.1.1]: https://github.com/Ortus-Solutions/ContentBox/compare/v6.1.0...v6.1.1
123139

modules/contentbox/box.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"Curt Gratz <[email protected]>"
2727
],
2828
"dependencies":{
29-
"cborm":"^4.0.0",
29+
"cborm":"^4.10.0",
3030
"cbjavaloader":"^2.0.0",
3131
"cbmailservices":"^2.0.0",
3232
"cbsecurity":"^3.0.0",

modules/contentbox/models/content/BaseContent.cfc

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -764,17 +764,35 @@ component
764764
*/
765765
function getFeaturedImageURL(){
766766
var featured = getFeaturedImage();
767-
return !isNull( featured ) && len( featured ) ? (
768-
find( ":", featured )
769-
? "/__media/" & featured
770-
// legacy column values without disk annoations
771-
: replaceNoCase(
772-
featured,
773-
mediaService.getCoreMediaRoot(),
774-
"/media"
775-
)
776-
)
777-
: "";
767+
if ( isNull( featured ) || !len( featured ) ) {
768+
return "";
769+
}
770+
var mediaRoot = mediaService.getCoreMediaRoot();
771+
var expandedMediaRoot = expandPath( mediaRoot );
772+
// We have three scenarios in how the featured image entries are stored.
773+
// The first is that the image was stored with a fully expanded path
774+
if ( findNoCase( expandedMediaRoot, featured ) ) {
775+
return replaceNoCase(
776+
replaceNoCase( featured, expandedMediaRoot, "/__media" ),
777+
"\",
778+
"/",
779+
"All"
780+
);
781+
}
782+
// The second is a match to the relative media root
783+
if ( findNoCase( mediaRoot, featured ) ) {
784+
// Replace and change any windows delimiters that might be in the path
785+
return replaceNoCase(
786+
replaceNoCase( featured, mediaRoot, "/__media" ),
787+
"\",
788+
"/",
789+
"All"
790+
);
791+
}
792+
// The last is that it is modern cbfs disk paths
793+
return find( ":", featured )
794+
? "/__media/" & featured
795+
: featured;
778796
}
779797

780798
/**

modules/contentbox/modules/contentbox-admin/handlers/baseContentHandler.cfc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,6 @@ component extends="baseHandler" {
265265
event = "contentbox-admin:comments.pager",
266266
eventArguments = { contentID : rc.contentID }
267267
);
268-
// Get Child Pages Viewlet
269-
prc.childPagesViewlet = pager(
270-
event = arguments.event,
271-
rc = arguments.rc,
272-
prc = arguments.prc,
273-
parent = prc.oContent.getContentID()
274-
);
275268
// Get History Versions Viewlet
276269
prc.versionsViewlet = runEvent(
277270
event = "contentbox-admin:versions.pager",

modules/contentbox/modules/contentbox-admin/modules/contentbox-filebrowser/handlers/Home.cfc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,6 @@ component extends="cbadmin.handlers.baseHandler" {
380380
// param values
381381
event.paramValue( "path", "" ).paramValue( "manual", false );
382382

383-
systemOutput( "path: [#rc.path#]", true );
384-
385383
// clean incoming path for destination directory
386384
rc.path = cleanIncomingPath( urlDecode( trim( rc.path ) ) );
387385

modules/contentbox/modules/contentbox-admin/views/contentStore/index.cfm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
<cfloop array="#prc.availableTemplates#" item="template">
117117
<li class="mb-5">
118118
<a
119-
href="#event.buildLink( prc.xehContentEditor & "/parentId/" & encodeForHTMLAttribute( rc.parent ) & "?contentTemplate=" & #encodeForHTMLAttribute( template[ "templateID" ] )# )#"
119+
href="#event.buildLink( prc.xehContentEditor & "/parentId/" & encodeForHTMLAttribute( rc.parent ) & "?contentTemplate=" & encodeForHTMLAttribute( template[ "templateID" ] ) )#"
120120
><small><i class="fa fa-plus"></i> #template[ "name" ]#</small></a>
121121
</li>
122122
</cfloop>

modules/contentbox/modules/contentbox-ui/handlers/page.cfc

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -169,21 +169,27 @@ component extends="content" {
169169
prc.missingPage = rc.pageUri;
170170
prc.missingRoutedURL = event.getCurrentRoutedURL();
171171

172+
var interceptData =
173+
{
174+
page : prc.page,
175+
missingPage : prc.missingPage,
176+
routedURL : prc.missingRoutedURL,
177+
layout : "#prc.cbTheme#/layouts/pages",
178+
layoutModule : prc.cbThemeRecord.module,
179+
view : "#prc.cbTheme#/views/notfound",
180+
viewModule : prc.cbThemeRecord.module,
181+
statusCode : "404",
182+
statusMessage : "Page not found"
183+
};
184+
172185
// announce event
173-
announce(
174-
"cbui_onPageNotFound",
175-
{
176-
page : prc.page,
177-
missingPage : prc.missingPage,
178-
routedURL : prc.missingRoutedURL
179-
}
180-
);
186+
announce( "cbui_onPageNotFound", interceptData );
181187

182188
// Not Found layout + view
183189
event
184-
.setLayout( name = "#prc.cbTheme#/layouts/pages", module = prc.cbThemeRecord.module )
185-
.setView( view = "#prc.cbTheme#/views/notfound", module = prc.cbThemeRecord.module )
186-
.setHTTPHeader( "404", "Page not found" );
190+
.setLayout( name = interceptData.layout, module = interceptData.layoutModule )
191+
.setView( view = interceptData.view, module = interceptData.viewModule )
192+
.setHTTPHeader( interceptData.statusCode, interceptData.statusMessage );
187193
}
188194

189195
/**

modules/contentbox/themes/default/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)