Skip to content

Commit

Permalink
added the domain expression and domain base url on the installer.
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Nov 9, 2023
1 parent 10798ce commit de181ba
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ tab.site.outgoing.title = The email that sends all notifications out of Conte
tab.site.sampledata = Populate Site with Sample Data:
tab.site.sitename = Site Name:
tab.site.sitename.title = The global name of this ContentBox installation
tab.site.slug = Unique Slug:
tab.site.slug.title = A unique slug for this site
tab.site.tagline = Site Tag Line:
tab.site.tagline.title = A cool tag line that can appear anywhere in your site
tab.start = Start Installation!
Expand Down
4 changes: 2 additions & 2 deletions modules/contentbox-installer/models/InstallerService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ component accessors="true" {
"slug" : "default",
"description" : arguments.setup.getSiteDescription(),
"keywords" : arguments.setup.getSiteKeywords(),
"domain" : "127.0.0.1",
"domainRegex" : "127\.0\.0\.1",
"domain" : arguments.setup.getSiteDomain(),
"domainRegex" : arguments.setup.getSiteDomainExpression(),
"domainAliases" : "[]",
"tagline" : arguments.setup.getSiteTagLine(),
"homepage" : "cbBlog",
Expand Down
3 changes: 3 additions & 0 deletions modules/contentbox-installer/models/Setup.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ component accessors="true" {

// Site Settings
property name="siteName";
property name="siteSlug";
property name="siteTagLine";
property name="siteDescription";
property name="siteKeywords";
property name="siteDomainExpression";
property name="siteDomain";
property name="populateData";
property name="createDevSite";

Expand Down
72 changes: 65 additions & 7 deletions modules/contentbox-installer/views/home/steps/step2.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,21 @@
required = "required",
wrapper = "div class=controls",
labelClass = "control-label",
groupWrapper = "div class=form-group"
groupWrapper = "div class=form-group",
value = "Default Site"
)#

<!--- Site Slug --->
#html.textField(
name = "siteSlug",
label = "*#cb.r( "tab.site.slug@installer" )#",
class = "form-control",
size = "100",
title = cb.r( "tab.site.slug.title@installer" ),
wrapper = "div class=controls",
labelClass = "control-label",
groupWrapper = "div class=form-group",
value = "default"
)#

<!--- Tag Line --->
Expand Down Expand Up @@ -56,13 +70,57 @@
groupWrapper = "div class=form-group"
)#

<!--- Site Options --->
#html.label(
field = "populatedata",
content = "Site Options:",
class = "control-label"
<fieldset>
<legend>Site Detection</legend>
</fieldset>

<p>
Site detection is done against the incoming domain name found in the cgi scope. Below you can register the primary domain regular expression with the domain base url it represents alongside any domain aliases you might have.
</p>

<!--- Domain Expression --->
#html.textField(
name = "siteDomainExpression",
label = "*Domain Expression(s): ",
class = "form-control",
size = "100",
title = "A domain name or regular expression that will be used to match the incoming domain with.",
wrapper = "div class=controls",
labelClass = "control-label",
groupWrapper = "div class=form-group",
required = "required",
value = "127\.0\.0\.1"
)#

<div class="form-group">
#html.label(
class = "control-label",
field = "domain",
content = "*Domain Base URL:"
)#
<p>
The domain base URL so we can construct URLs to this site.
</p>

<div class="input-group">
<span class="input-group-addon">https://</span>
<input
name="siteDomain"
type="text"
class="form-control"
placeholder="mydomain.com"
required="required"
value="127.0.0.1"
>
</div>
</div>


<!--- Site Options --->
<fieldset>
<legend>Site Options:</legend>
</fieldset>

<!--- Info --->
<p>
Below you can choose to populate your <strong>default</strong> site with sample blog entries, content store items, pages and more.
Expand Down Expand Up @@ -123,4 +181,4 @@
#cb.r( "tab.next@installer" )# <i class="fa fa-chevron-right"></i>
</a>
</div>
</cfoutput>
</cfoutput>

0 comments on commit de181ba

Please sign in to comment.