Anything related to 2sxc, the content-management module & app-engine for DNN/DotNetNuke.
Questions tagged [2sxc]
582 questions
1
vote
1 answer
How do I use JSON as a source of content in a 2sxc app?
I have a JSON file that has some simple fields and content. I want to make a 2sxc app that simply lists out the content of the JSON file using C# Razor. (Ultimately this json file will be hosted elsewhere).
Ideally, the content will be rendered as…

Aaron - Wolf X Machina
- 443
- 1
- 3
- 13
1
vote
1 answer
Is there a way to output DNN pages to the page via a 2sxc app using C# Razor template?
I want to set up a 2sxc app that handles the DNN menu instead of using DDR Menu. So the template would grab the pages as on the Pages part of DNN and render them on the page just like a DDR Menu template would. However, I would be able to template…

Aaron - Wolf X Machina
- 443
- 1
- 3
- 13
1
vote
2 answers
How to access Another Module's Content and Presentation Items after 2sxc v10.20+
Here is code that worked up through 2sxc 10.9.1. Though I am able to get the CmsBlock for the TabID, ModuleID and get that to .Render(), I need more. Here is the old code. Not sure it makes any difference, but this View is using the normal Link…

Jeremy Farrance
- 740
- 6
- 11
1
vote
2 answers
How can I output the CDF version inside a C# Razor template in 2sxc?
I have a template that has an image tag inside of it. I want to append the DNN CDF version to the image. So for example, when I increment the CDF version and skin.css?cdv=74, then the image tag inside of my 2sxc razor templates will also get pushed…

Aaron - Wolf X Machina
- 443
- 1
- 3
- 13
1
vote
1 answer
How do I create a breadcrumb nav for a banner hero in 2sxc using C#?
Using 2sxc, I have a hero module that I use across the website on all pages. It looks like this:
It uses "@Content.Title" for the h1 tag so it displays "Scholarships". But I need to make a breadcrumb that gets the parent page's name of the current…

Aaron - Wolf X Machina
- 443
- 1
- 3
- 13
1
vote
1 answer
2Sxc DNN: Custom Input Type: Image Cropper
I'm currently trying to extend the functionality of a 2sxc App in DNN. I created a new content-type and added my custom input-type (image cropper with cropper.js) as explained in this Tutorial:
How To Create Custom Input Fields (v11.2)
It currently…

Niels Mittelstädt
- 77
- 4
1
vote
1 answer
How to bind uploaded file with ADAM to entity field correctly in 2sxc module?
I need to create entity object programmatically and fill it with data. One field needs to be of a file type. So I managed to create entity without file, upload file in ADAM using this sample of code. However it seems that I didn't bind it as it is…

Constantine Ketskalo
- 547
- 1
- 6
- 19
1
vote
3 answers
Is there a way to have the user upload an SVG file but then render the SVG source?
Using 2sxc on DNN, I have a website that uses SVGs for icons in content types. The client wants to be able to upload the SVG icons to 2sxc via a Link field but then instead of rendering
, they want it to render the source…

Aaron - Wolf X Machina
- 443
- 1
- 3
- 13
1
vote
1 answer
How do you translate a dropdown in 2sxc?
I have a 2sxc app that's on a multilingual DNN website. In my app, I use a lot of dropdown fields for content. How do I let users translate a dropdown selection for another language?
For example, if I have a content type for a person, and in that…

Aaron - Wolf X Machina
- 443
- 1
- 3
- 13
1
vote
5 answers
How can I output just the text of a select instead of the value in 2sxc razor templates?
In 2sxc App, in my content type, I have a dropdown list of Canadian provinces that have a name and a value for the abbreviation. It looks like this:
British Columbia:bc
Alberta:ab
Prince Edward Island:pei
Etc.
I want to be able to use both the text…

Aaron - Wolf X Machina
- 443
- 1
- 3
- 13
1
vote
1 answer
Calling an external API from razor template
I'm trying to use a MS Dynamics API JSON response as a datasource in my 2sxc razor template. For security reasons I want to generate the query as a server side post request. My code has to live inside of the razor template as I have no FTP access to…

Michael Cunningham
- 111
- 2
- 10
1
vote
2 answers
How can I set up a super simple listing and details module that uses simple URLs?
2sxc 11.3.0 / DNN 9.3.2 (and others)
I want to set up a simple listing of cards (with a heading, a picture, some text, and a link) and when the user clicks on the link of a card, it brings them to a full "details" view that has a friendly URL. Very…

Aaron - Wolf X Machina
- 443
- 1
- 3
- 13
1
vote
1 answer
Is it possible to share 2SXC Content modules between portals on the same DNN instance?
2sxc 11.x / DNN 9.x
I have a DNN instance with a portal with lots of Content modules with different Content Types and Templates. I'm going to be making a second portal that is related to the first portal and there is some shared content. Is it…

Aaron - Wolf X Machina
- 443
- 1
- 3
- 13
1
vote
2 answers
Is it possible to make a list within a list in 2sxc?
DNN 9.3.2 / 2sxc 10.25.2
Using 2sxc Content and c# Razor templates, I'm able to create a content type with some fields and enable the list mode on the template so that I can have a list of items and manage it. This is great because it lets me have…

Aaron - Wolf X Machina
- 443
- 1
- 3
- 13
1
vote
3 answers
Getting started with 2SXC Bootstrap 4 Instant Theme
I've installed Bootstrap 4 Instant Theme on my dev machine, which has DNN installed. I can get the theme up OK.
I've installed Node.js and that looks OK.
I've run npm ci in the app/theme folder, and that seems to have run OK. There is a…

John Jacobson
- 69
- 1
- 5