Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecation for Locale #47

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 32 additions & 10 deletions 06_deprecations/01_list_of_deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,43 @@ permalink: /deprecations/list-of_deprecations/
---

# List of Deprecations

The following functionality is deprecated as of Masa CMS 7.4.8

## Unsupported Locales

In the Masa CMS Admin under 'Site Settings' you can set the Locale for your site.

However not all these Locales are supported in het Masa CMS Admin when working with date selection.

In the dropdown of Locales we have inidicated these unsupported locales with the text '(not supported, deprecated)' after the name of the Locale.

![](/assets/06_deprecations/list_of_deprecations/deprecations_supported_locales.png)

We advise you to check if your Locale is supported and if not to update your site to a supported Locale.

---

The following functionality is deprecated as of Masa CMS 7.3.

## Mura tags
## Mura tags

The tags `[mura]` and `[sava]` can be used in content for dynamic expression, like so:

```cfscript
[mura]TimeFormat(Now(), 'hh:mm:ss tt')[/mura]
```

This use of these tags is deprecated. Please use the '[m]' tag instead, like so:

```cfscript
[m]TimeFormat(Now(), 'hh:mm:ss tt')[/m]
```
```

Please update your content accordingly.

## Masa Scope

You can access various functions and variables in Masa CMS through the Masa Scope, like so:

```cfscript
Expand All @@ -45,25 +64,27 @@ This use of the scopes `$` (dollar scope) and `mura` is deprecated. Please only
```

## setCustomMuraScopeKey
This function is part of the Masa Scope. The function `setCustomMuraScopeKey` has been deprecated.

This function is part of the Masa Scope. The function `setCustomMuraScopeKey` has been deprecated.
Please use the function `setCustomMasaScopeKey` instead.

Replace:

```cfscript
m.setCustomMuraScopeKey('myCustomObject', customObject);
m.setCustomMuraScopeKey('myCustomObject', customObject);
```

with:

```cfscript
m.setCustomMasaScopeKey('myCustomObject', customObject);
```
```

## MuraScope.cfc

The object MuraScope is deprecated and will be replaced by MasaScope.cfc.

Most likely you will not instantiate the Masa Scope yourself.
Most likely you will not instantiate the Masa Scope yourself.
As an example however, the following example is something that can be used:

```cfscript
Expand All @@ -74,9 +95,10 @@ If you are using a construction where you instantiate the Masa Scope, then upgra

```cfscript
application.serviceFactory.getBean("MasaScope").init('mySiteID');
````
```

## Simple Forms

Simple Forms are deprecated; please use Forms created with the Form Builder instead.
Migrate existing Simple Forms to Forms created with the Form Builder.

Expand All @@ -92,9 +114,9 @@ The 'Simple Form' option now becomes available again:

![](/assets/06_deprecations/list_of_deprecations/deprecation_simple_forms_2.png)


## Razuna
Razuna is deprecated. Migrate to different Digital Asset Management system.

Razuna is deprecated. Migrate to different Digital Asset Management system.

Razuna is switched off by default. If you still need to use it for some reason, you need to change the setting in the `settings.ini.cfm`.

Expand Down
2 changes: 1 addition & 1 deletion 06_deprecations/03_mura_deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permalink: /deprecations/mura-deprecations/
---

# Mura Deprecation
Following is a list of files and functions that already have been deprecated in Mura and are inhered by Masa CMS.
Following is a list of files and functions that already have been deprecated in Mura and are inherited by Masa CMS.
Please check which applies to your situation and update your code accordingly.
No warnings are logged for these existing deprecations.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.