Questions tagged [2sxc]
Anything related to 2sxc, the content-management module & app-engine for DNN/DotNetNuke.
526
questions
0
votes
1
answer
11
views
Bootstrap v5 Carousel not working 2Shine DNN Theme
Hopefully this will be seen by the great folks at 2sxc!
We recently started using your 2shine DNN Theme, and loving it, but we bumped into a weird situation that we can't figure out. If we add try ...
0
votes
1
answer
24
views
List content replacing itself before page publish
Having an issue using list content in 2sxc (13.11.0) and EVOQ Basic (9.10.6). Adding one new list item works fine, when you go to add an additional item to the list, it replaces the first item. In ...
1
vote
1
answer
16
views
How can I set the default view for an 2sxc app?
Is there a way to make a certain template for an app the “default” template? Let’s say I have an app called “Photo Gallery” and it has 3 templates:
Carousel
Grid
Photo Album
By default, when dropped ...
0
votes
3
answers
37
views
2sxc 13 - Get username and other DNN tokens in formulas/calculations
Is there a way to get the current username in a formula (the v1(data, context) new stuff)? And other DNN tokens as we would on a view.
Current date is easier, since it dependends only on c#, but I can'...
0
votes
2
answers
34
views
Load JQuery from DNN in 2sxc13
Is there a way to load JQuery library from the DNN install in a razor template without loading external links or relative paths to the file?
Something like @include(jquery). Even better if it checks ...
0
votes
0
answers
21
views
2sxc Hybrid How to access and update a multi-entity field to add new one
Using Dnn v9.10.2 and 2sxc v13.2
I have a content type with an Entity-type field that holds multiple items, and I need to add a new one to the list from code. I believe that I need to call App.Data....
0
votes
1
answer
14
views
Can't Send Email from Mobius form
I'm trying to create a simple form, but not getting very far.
I deleted all the extensions etc and then reinstalled so I just had the basic setup.
I select a Contact Form, and updated the owner email. ...
0
votes
1
answer
17
views
Setting up Google Recaptcha with Mobius Forms
I'm trying to create a reasonably simple Mobious Form to gather new client information for a counselling service.
I want to implement Recaptcha, but I'm not getting very far. It points me to Global ...
0
votes
2
answers
50
views
Script Link in Header - EnableOptimizations Strips Attributes
Not sure if this is a bug or if 2sxc is doing this on purpose, "for reasons."
First, here is the goal. I am in a 2sxc App, in a View using Razor/C#. I need to get the following JS module ...
0
votes
1
answer
24
views
2SXC/DNN - Delete ADAM Files in Entity
We're designing a system for a client where they are allowing authenticated users to upload images. We've created an API to upload the files but the client only wants the latest file and delete all ...
1
vote
1
answer
13
views
How do I hide certain fields from different templates in 2sxc apps using Formulas?
I have an App called "Features"
In Features, I have these fields:
Heading
Text
Image
The app has two separate razor templates. One of the templates displays an image, and the other one ...
0
votes
2
answers
50
views
Sharing app content between portals using 2Sxc
I need to design a content system similar to the news article 2sxc application. However, in my situation I have a primary subdomain and multiple secondary subdomains each of which is a portal in a ...
0
votes
1
answer
30
views
Best, Better, or Simpler Way to Get the Label for a Content-Type's Field
I thought I was doing something easy, but it got so complicated that I feel like I am missing something. We have a Content-Type (CT) that moves through a workflow. In each phase of the workflow, the ...
0
votes
0
answers
17
views
How change width for edit window
I have a content type with some fields, but the width for edit window is not enought.
Is there any option to change the width for edit window. I noticed style have max-width:800px!important value, but ...
0
votes
2
answers
24
views
2sxc update an entity to set IsPulished to false
I need to be able to set the IsPublished value of an existing entity to false through the WebAPI. According to https://2sxc.org/en/docs/feature/feature/3360 :
Just so you don't get things wrong: an ...
0
votes
1
answer
38
views
2sxc Error: can't delete items, found entities assigned children
I have a newly deployed site running Dnn v9.10.02 and 2sxc v13.0.0. I am building a custom app that contains an Event entity and an Organization entity. One of the fields of Event is an entity type of ...
0
votes
1
answer
16
views
2sxc DNN objects on Hybrid templates
Having just the @inherits Custom.Hybrid.Razor12 at the top of the template breaks it when using DNN objects.
... The type or namespace name 'Portal' does not exist in the namespace 'Dnn' (are you ...
0
votes
1
answer
36
views
Correct way to get access to Dnn Stuff while using Modern 2sxc Hybrid Views
Now that my new views start with
@inherits Custom.Hybrid.Razor12
What do I need to do to continue to get access to Dnn Stuff when needed? I've been bouncing around the docs, but haven't spotted ...
0
votes
1
answer
42
views
In 2sxc, after an App.Data.Create(), is there a way to get the new EntityId (or Guid) or a Pointer to the new Entity?
I've run in to this need a few times in the past few years. I programmatically add a new Entity to a Content-Type using App.Data.Create() and then need to add that new Entity to the next Entity I am ...
0
votes
1
answer
18
views
is File-List from a Folder (very simple)
Has anyone used this file-list from a folder? so called 'very simple'? we are looking for something to be used as a file storage/file repository module but this seems very complicated to set up for ...
0
votes
0
answers
20
views
2sxc module in dnn9 editing a template
I am using the person template for a contact page not a contact form and the template is 3 people wide which is causing a word wrap to happen on the first persons information, I am not sure where to ...
0
votes
0
answers
40
views
Log errors for 2sxc in DNN
Recently I have installed last version of DNN (9.10.2) and last LTS version of 2sxc (12.8.1)
Everything is working as expected but after check DNN logs I found this error
DotNetNuke.Web.Mvc.Extensions....
0
votes
2
answers
21
views
How I can change 2sxc admin or editor to spanish
I would like to change all editor options to spanish for administrators.
I found language pack but honestly I don´t know how to use it.
0
votes
1
answer
35
views
How can I make 2sxc app URLs show up in DNN's Sitemap.aspx?
I have a 2sxc app (using C# Razor template) that shows a listing and details view. I have 10 items. Each item has a friendly URL. Looks something like this:
domain.com/landing-page/details/the-...
0
votes
1
answer
25
views
2sxc DNN Duplicating Data Content Type On The Same App
I know you can export and import a content type between apps. But how can I duplicate a content type? If they have similar fields (title, content, link, etc), having to enter them all again seems like ...
1
vote
1
answer
35
views
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 ...
-1
votes
1
answer
48
views
I need to call 2sxc web api without anti forgery token
Im making an app for some form, and im colleting some not sensitive information.
I need to make an automatic report from a server, calling directly to report to download information, but im not being ...
1
vote
1
answer
37
views
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 ...
0
votes
1
answer
50
views
App.Data.Update throws object reference error when the entity to update has a reference to another entity
When I try to save a change in an entity I get an object reference error when using dynCode.App.Data.Update. I checked if all variables and elements in the data dictionary are available and that is ...
0
votes
1
answer
25
views
Field Type of entity-query not working, correctly retrieves list of content-items but incorrectly stores them as 'Empty Slot"
I have an Authors App which has x amount of authors. I have another app and have configured an Field Input-Type entity-query in it which pulls from the Authors App. It does this correctly and I can ...
2
votes
1
answer
36
views
2sxc - Formulas: Get entity field names
I have an entity type with three fields: FieldA, FieldB and FieldC.
FieldA and FieldB have the type "Entity". They link to another entity with two fields.
FieldC is a string which I need to ...
0
votes
1
answer
24
views
2sxc Custom Color-Picker Input Field not working
I'm trying to use the 2sxc Custom Color-Picker Input Field using the tutorial on: https://2sxc.org/dnn-tutorials/en/razor/ui211/page.
The issue is the color picker is not showing and also the demo on ...
0
votes
1
answer
25
views
Unable to set 'Data Model used in view' field when creating a new view in a 2sxc app
I am trying to create a listings app for Persons in 2sxc. I've managed to create an app, add a content type with fields then when creating a view for the listing, I am unable to set the 'Data Model ...
0
votes
1
answer
22
views
Podcast Episode Sort Order
How do I change the sort order of the episodes in the Podcast app? Currently it looks like it is descending order on Date. I have added custom fields for Season and Episode number and need to sort ...
0
votes
1
answer
47
views
2Sxc News App View Configuration changes not applied to public view. How can I apply the View Configuration publicly?
I have installed 2Sxc version 12.2.1 with News App version 4 on DNN 9.9.1. I created a /news page and added the news app to the page using the first list view (images on left, descriptions on the ...
0
votes
1
answer
53
views
Custom WYSIWYG problems with toolbar setup
I am working on a custom WYSIWIG editor using Webcomponents and TinyMCE with this as base. Testing on DNN Version 9.3.2 and 9.9.1, with 2sxc Version 11.22.1.
Problems arise when I try to use the ...
0
votes
1
answer
34
views
How do I save/load value for custom input in 2sxc module?
How do I save/load value for custom input in 2sxc module? I need plain text input but I don't see how can I load/save value for it... Is it something that needs to be executed inside init function and ...
0
votes
1
answer
25
views
How can I wait for the create/edit entity modal window to finish rendering and execute my custom js code in 2sxc module?
When user presses either create entity button or edit entity button, there's the same modal window in an iframe that is build by js dynamically. So what I'm trying to do is to wait until it's fully ...
0
votes
1
answer
80
views
How to setup cross app entity relationships in 2sxc
I am new to 2sxc and am trying to build a relatively complex website using this module as base for developing the data modelling.
My site consists of lots of different Apps (in my view), like news, ...
0
votes
1
answer
29
views
2sxc Gallery - The requested content can not be loaded. Please try again later
DNN 09.09.01 / 2sxc 11. 22.1 / Image Gallery v5
App installation without problem, but when you click on image to show in Fancy box - you got message; The requested content can not be loaded. Please ...
0
votes
1
answer
26
views
Is there an Elegant way to use Razor Blade to add TagToolbar()?
Am I missing something obvious? In a 2sxc CSharp View, how can I get the HtmlString output of Edit.TagToolbar(item) in to a Tag using RazorBlade?
@Tag.Div(item.Title).Attr(Edit.TagToolbar(item)) // ...
0
votes
1
answer
26
views
Content Editors can't delete Blog post in 2sxc Blog App 03.03.00
Users are trying to delete a blog post by clicking the X icon on the toolbar for that post. When they do, nothing happens. When I'm logged in as a superuser, I can delete it just fine. I look at the ...
0
votes
1
answer
34
views
icons missing for built in 2sxc actions
I have a strange situation. I have a DNN instance with more than one portal running on it. I started up a new portal and when I add a 2sxc content app, the icons for the built in actions like add ...
0
votes
2
answers
58
views
How can I use presentation settings on a details view of a 2sxc app?
I have a 2sxc app that has a listing a details view. So I have two templates: _listing.cshtml and _details.cshtml.
My Details template uses the "Name in URL path" field like this: resource/.*...
0
votes
1
answer
37
views
Im not able to edit content type fields, error An item with the same key has already been added
Im having this error when try to edit fields for a content type. Same problem when try to list items for a content field.
"An item with the same key has already been added."
Stacktrace
"...
0
votes
2
answers
136
views
Create a tree structure in linq with a single list source with parent - child as strings of an object
I start with a list Cats with this data:
Name______________ Parent__________Description_______________FilesCoded________CodingReferences
"Blue"____________ "1.Colors"______"...
0
votes
2
answers
53
views
How can we sort news by Top-News in 2sxc?
on the page for the news app it say:
The app has features like Top-News extract (for the home page or similar)
So I was wondering if there is anything like a number-of-views counter or something we ...
0
votes
3
answers
80
views
How can I make the DNN edit control edit the right item?
I have a 2sxc app that has a listing and a details view.
I have two templates, one for listing, and one for details. Listing has "list" enabled. "Details" does not.
The details ...
0
votes
1
answer
58
views
From External Code, How do I Get Access to DynamicCode without a Module?
I have a Content-Type in a custom 2sxc App (AppId = 10). The content type name is "SeasonSettings" which contains colors, fonts, icons, and images used to modified the site's theme a few ...
0
votes
1
answer
17
views
How to edit the Getting Started/Info page of a new app
Just a simple question.
How do I edit the getting started/info page of an app that I've created using 2sxc?
TIA
cheers
MartyNZ