menu
Logo
  • Why azing?
  • Blog
  • Help
ENarrow_drop_down
  • DE
  • EN
Suche in Checklisten
search
azing Logo ENarrow_drop_down
  • DE
  • EN
  • Why azing?
  • Help
2sxc
drive_folder_upload
  • homeChecklist Templates
  • south
  • fiber_manual_recordZ: Internal Stuff for the 2sxc-Dev Team
  • south
  • fiber_manual_recordDevelop Standard Apps
  • south

folder_sharedMigrate Standard Apps to Newer Conventions

  • homeChecklist Templates
  • south
  • fiber_manual_recordZ: Internal Stuff for the 2sxc-Dev Team
  • south
  • fiber_manual_recordDevelop Standard Apps
  • south

folder_sharedMigrate Standard Apps to Newer Conventions

Folders and checklists

  • check_circleMigrate to Conventions of 2sxc 11
  • check_circleMigrate to Conventions of 2sxc 12 - Hybrid
  • check_circleMigrate to Conventions of 2sxc 12.04
  • check_circleMigrate to Conventions of 2sxc 12.05
  • check_circleMigrate to Conventions of 2sxc 13
  • check_circleMigrate to Conventions of 2sxc 15
  • check_circleMigrate to Coventions of 2sxc 17.06 (Strong-Typed)

Parts (0) expand_more

These are small document-parts which are used in other documents. They are not a starting point for any real activity. Because of this, they will be listed further down and the search will not list them unless requested. 

When creating things for 2sxc 11, please always use the following conventions.

Code

  1. Follow the standard guide on RazorComponents - migrate
  2. Move functions, complex data manipiulation or multiple used snippets to code behind
    More info
  3. Snippets that are used in multiple views should be outsourced into their own file in the shared folder
    Pay attention that the app does not get too split up and is still easy to customize for a web designer
  4. If the app uses a kind of Polymorphism, simplify it
    1. For bs3/bs4 use this checklist
    2. For staging/live use this checklist
  5. Change the inheritance of the 2sxc ApiController in web apis to: public class XYZController : ToSic.Sxc.Dnn.ApiController to ensure that we're using the newest mode.
  6. Ensure paths are properly encoded by using @Tags.SafeUrl() in href or src attributes
  7. Use Tosic.Razor.Blade HtmlPage to set page Title, Metadata, headers, JsonLD, etc.
  8. Toolbars
    1. Try to use only hover toolbars
    2. Use the newest syntax for customized toolbars.
  9. Do RazorComponent adjustments
    1. Replace String.IsNullOrEmpty with Text.Has
    2. Replace Permissions.UserMayEditContent with Edit.Enabled
    3. Replace x.Count() != 0 with x.Any()
    4. Replace AsDynamic/AsList(Data["default"]) with AsDynamic/AsList(Data)
    5. Replace ToString("dd.MM.yyyy")/ToString("MM/dd/yyyy") with ToString("d")

App Administration (2sxc)

  1. Try to simplify the queries in general, logically and technically
    1. Change all queries to use Parameters only
    2. If there are different Streams for admins and normal users, use the StreamPick DataSource
    3. Outsource duplicated query parts into their own query and use them with the QueryRun DataSource
    4. Make use of the Fallback, if a stream could return 0 entries
  2. Adjust the required 2sxc version in the app package definition

Publishing

  1. Do a quality check
  2. If everything is ready, publish the app
Logo
Legal | Content Copyright CC-BY 4.0
bug_reportReport Bug
  • info
  • Links
  • Permissions
code Share
code
URL copied to clipboard.
Embed Checklist close
Copy Copy
Content Copyright

CC-BY 4.0

Translations

None

2sxc - Content Management for DNN & Oqtane Logo

2sxc - Content Management for DNN & Oqtane

QR-Code
azing.org/2sxc/r/rNm1YNdx
View & Use

Public (can be used by everybody)

Edit & Admin

Default (all members can edit)

This catalog has a simple permission model, where all members have the same permissions. For advanced permissions, upgrade to Enterprise.

Here you can see how this document is used and linked by other documents

Used in (0)

Others referencing this

Uses these (5)

Documents linked from this document

  1. RazorComponent - Migrate from Older Format
  2. CSS-Framework Polymorphism - Get Started
  3. Super-User Polymorphism - Get Started
  4. Quality Check of Standard 2sxc App
  5. Publish New or Major Release of Standard 2sxc App
How it Behaves

How this document is categorized changes how it behaves.

This is a main document, it is listed normally and appears in search result.

Type

This is a Checklist. Lists are converted into checkboxes.

Get something to say?

Comment to start a discussion or make a note
send

please log on to chat

close

Durchsuche ganz Azing