Releases: ordercloud-api/angular-cms-components
Add maxSize to pagination
Add ID on scripts pasted in the header or footer embeds
If a script has an id attribute, include it in the script so that scripts like the Facebook Messenger Chat Plugin works correctly on the sites
Use Winmark specific methods from cms-sdk for Winmark apps
When app is Winmark AND the page schema is cms-page-schema:
- use ContentManagementClient.WinmarkPages.ListWinmarkPages() to list Winmark CMS pages
- use ContentManagementClient.WinmarkPages.WinmarkCreateWinmarkPage() to create a new Winmark CMS page
If app is not Winmark OR the page schema is not cms-page-schema:
- use ContentManagementClient.Documents.ListDocuments() to list documents
- use ContentManagementClient.Documents.Create() to create a new document
Use <meta name="description"> instead of <meta property="description">
Since was being used before, any CMS page description was not reflected on the search engines. When we use normal="description" on the meta tags, the page description will be shown on search engines and resolve this issue
Prevent pages from getting overwritten with other page data
If a page is in the process of saving, don't do anything if users attempt to select a different page in the list of pages on the left. Once the changes have been successfully updated and user click on a page, then proceed with the existing logic in selectPage()
Fix warnings about referencing 'rxjs/internal'
On angular 10, these warnings to not reference 'rxjs/internals' become errors. We should be referencing the public 'rxjs' instead.
Set Robots / Indexing to Not Allowed when page is disabled
Seller:
- If a locked CMS page (cannot edit the Robots / Indexing value) is disabled, then set Robots / Indexing to Not Allowed. If locked CMS page is set to active, then allow Robots / Indexing.
- When a CMS page that is not locked, is set to disabled then disallow Robots / Indexing. If users decide to set this page active again, they will have to allow Robots / Indexing in the SEO tab.
Buyer:
- Add
<meta property="robots" content="noindex">
if page.NoRobotIndexing = true OR if page is disabled
Remove Save Changes restrictions on the seller app
Instead of disabling the Save Changes button if users added plain text or non-scripts in the footer embed, still allow users to save their changes. This isn't going to cause issues on the buyer app because if users include non-supported text in the embeds their is a try/catch that catches syntax errors and prints it in the console. There is also logic that checks if there are non-script tags in the footer embeds and instead of appending it to the body it will print the error in the console saying that tag is not supported in the footer. The page on the buyer side will still load without any issues. This ensures a better user experience on the seller app
Allow for sorting of CMS Docs
New feature to allow for users to sort CMS docs by the following: Title, Author, Date Created, and Date Last Updated.
Still allow header and footer embeds to be optional
New bug was introduction with the latest release. If you added content in the header embed, you were not able to save the page without adding content in the footer embed (vice-versa). These changes allow users to save their changes, even if they only have content in one of the embeds text box.
Also, additional validation has been added to make sure that each non self closing tag has a closing tag in the embeds and that the content in the embeds start with <