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

folder_sharedIntegration with Other Platforms

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

folder_sharedIntegration with Other Platforms

Folders and checklists

  • check_circle1.1 Basic Read-Integration
  • check_circle1.2 First Web APIs
  • check_circle1.3 First JS Integration
  • check_circle2.1 WebApis - Create Stateless and Stateful ControllerBase
  • check_circle2.2 Modify Insights Controller from 1.2 to use Stateless Base Controller
  • check_circle2.3 Implement EditController Load-Action
  • check_circle2.4 Implement EditController EntityPicker
  • check_circle2.5 Implement Link Resolve
  • check_circle3.0 ADAM integration WIP

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. 

This gives you a guidance how to do a very basic, first step integration.

The goal is that you'll have another system which...

  • Runs with all the DLLs of 2sxc included
  • Is able to read data from 2sxc, which is in another Database

Preparation

  1. Make sure you have DNN running with 2sxc installed and some apps.
  2. The DB and files must be accessible from your own application in the initial phase

Basic DLL Steps

  1. Prepare the 2sxc / EAV, set up the repos so you can compile - note that you don't need to build the DNN solution, but the MVC. So you can skip the DNN-integration part with the paths etc.
  2. Compile the latest 2sxc and copy all relevant DLLs to your solution in Debug-Build (so you can later debug what's wrong)
  3. Load your application and verify that it still works
  4. Configure DependencyInjection with the IServiceProvider and ensure you add the core parts. Look at the MVC-project for inspiration
    1. AddSxcWebApi() - this may not be necessary at first, but we're not sure
    2. AddSxcCore()
    3. AddEav()
  5. Now also add the correct connection string using the static object ToSic.Eav.Repository.Efc.Implementations.Configuration. This is a bit hacky, but that's how it's done for now. Check out the MVC code for inspiration. 

Customize the most important classes

  1. Ensure your solution can load the global content-types
    1. Decide where to load the files from initially. This must return a path to where the json content-types lie of your system. So either point to the Dnn folder (ca. web/desktopmodules/ToSic_SexyContent/.data) or a copy of that folder in your environment. 
    2. Now create a YourPrefixGlobalFolderRepository inhertiing the FolderBasedRepository class, return the RootPaths of where these type-files are

Test if you can read data

  1. You should now be able to read data using the State.Get(zoneId, appId) object. Try it. 
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/jj7BJyXZ
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 (1)

Documents linked from this document

  1. Setup 2sxc Dev Web with DNN 9.13.1
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