-
Update the composer.json file in ALL installations. Here is the correct composer.json file. New commands/dependencies have been added to this file (for example, the Package Discovery command). Now Aliases and Service Providers are registered automatically in OctoberCMS if the package uses Package Discovery.
-
Upgrade OctoberCMS to 458 Build. If you use composer for upgrading (composer update command), make sure you have 'edgeUpdates' => false and 'disableCoreUpdates' => true in your /config/cms.php file. I remember we had some problems with js/css stuff when upgrading OctoberCMS via composer. We used some commands from this list to compile OctoberCMS backend assets. As for me, I didn't have any problems with backend assets and I didn't run these commands. Perhaps because I installed a new OctoberCMS project with the latest 458 Buil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oct 12 19:10:26 localhost opendirectoryd[230]: opendirectoryd (build 692.000) launched - installer mode | |
Oct 12 19:10:26 localhost opendirectoryd[230]: [default] Failed to open file <private> [2: No such file or directory] | |
Oct 12 19:10:26 localhost opendirectoryd[230]: [default] Initialize trigger support | |
Oct 12 19:10:26 localhost opendirectoryd[230]: [default] Failed to open file <private> [2: No such file or directory] | |
Oct 12 19:10:26 localhost opendirectoryd[230]: [default] Failed to open file <private> [2: No such file or directory] | |
Oct 12 19:10:26 localhost opendirectoryd[230]: [default] created endpoint for mach service 'com.apple.private.opendirectoryd.rpc' | |
Oct 12 19:10:26 localhost opendirectoryd[230]: [session] Registered RPC over XPC 'reset_cache' for service 'com.apple.private.opendirectoryd.rpc' | |
Oct 12 19:10:26 localhost opendirectoryd[230]: [session] Registered RPC over XPC 'reset_online' for service 'com.apple.private.opendirectoryd.rpc' | |
Oct 12 19:10:26 localhost opendirectoryd[230]: [session] Re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "october/october", | |
"description": "OctoberCMS", | |
"homepage": "https://octobercms.com", | |
"type": "project", | |
"keywords": ["october", "cms", "octobercms", "laravel"], | |
"license": "MIT", | |
"authors": [ | |
{ | |
"name": "Alexey Bobkov", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Accommodation 1 --> | |
<div class="row rooms"> | |
<div class="col-12"> | |
<h6> | |
Room 1 | |
</h6> | |
<div class="form-group row"> | |
<label>Adults</label> | |
<input type="number" name="accommodations[1][adults]" value="2" min="1" max="5"> | |
<span>ex 18 years</span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
private function redirectToCmsPage(RedirectRule $rule): string | |
{ | |
$parameters = []; | |
// Strip curly braces from keys | |
foreach ($rule->getPlaceholderMatches() as $placeholder => $value) { | |
$parameters[str_replace(['{', '}'], '', (string) $placeholder)] = $value; | |
} |
Limit the number of characters in a string and leave the full word at the end using the Laravel Framework. In other words, do not cut the word at the end of the line. Assume the only requirement is "limit+ character string that is composed of full words".
- Call
Str::limit($limit)
and save the result. - Count words in that result.
- Call
Str::words()
to get that number of words from the original string.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fieldset class="mb-3" data-name="form-agreement"> | |
<div class="form-row"> | |
<div class="col"> | |
<div class="form-check"> | |
<input class="form-check-input is-invalid" type="checkbox" name="data_protection" id="data-protection"> | |
<label class="form-check-label" for="data-protection"> | |
Yes, I have taken note of the data protection statement and give the consent to the collection and use of my data entered above * | |
</label> | |
<div class="invalid-feedback">The Data protection statement must be accepted.</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fieldset class="mb-3" data-name="form-agreement"> | |
<div class="form-row"> | |
<div class="col"> | |
<div class="br_hotels-filter-hidden__checkbox"> | |
<input type="checkbox" name="data_protection" id="data-protection" class="is-invalid"> | |
<span>Yes, I have taken note of the data protection statement and give the consent to the collection and use of my data entered above *</span> | |
<div class="invalid-feedback">The Data protection statement must be accepted.</div> | |
</div> | |
<div class="br_hotels-filter-hidden__checkbox"> | |
<input type="checkbox" name="terms" id="terms" class="is-invalid"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if __SELF__.menuItems %} | |
<ul> | |
{% for item in __SELF__.menuItems if not item.viewBag.isHidden and item.viewBag.published_locales[activeLocale] %} | |
<li {{ item.isActive or item.isChildActive ? 'class="active"' }}> | |
{% if item.url %} | |
<a href="{{ item.url ?: '#' }}" {{ item.viewBag.isExternal ? 'target="_blank"' }}> | |
{{ item.viewBag.menu_title }} | |
</a> | |
{% else %} | |
{{ item.viewBag.menu_title }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function onRender() | |
{ | |
$content = \Cache::rememberForever('menu-data-'.$this->alias, function() { | |
return $this->renderPartial('::default.htm', ['menuItems' => $this->menuItems()]); | |
}); | |
return $content; | |
} |