Dotnetnuke Skin Issue - dotnetnuke

Hi Chris We using DotNetNuke 6.2.3 enterprise edition. In localhost all images i referred in skin file was came both login and Logout Period.I followed the following steps.1st I need to create one child portal. so i went Host-->SiteManagement-->Add New Site--> i choosed the child portal and also site title,description,keywords.I can able to create child site. After that i went Admin-->SiteWizard-->Blank Template-->Replace Content-->I choosed my installed skin and container in portal.And also I added HTML Modules. Both Skin and HTML Contains image tag.
Now I login as a superuser -->My content, Images ,Style properties everything came fine.
Once i logout skin file not loaded due to that page alignment collapsed. Next in chrome i went inspect element i am not able to open those images.If i login as a host i am able to see those files.

Can you please share one of the URLs to the images that aren't working?
Perhaps you have the permissions in your DNN file manager setup so that you have to be logged in to view all of the files in the folder. You can go to the file manager, click on a folder, and manager permissions from there.

Related

Microsoft Teams - downloading a file from within a tab

I've created a configurable tab app and have side-loaded it into Teams. On the content page, I want to allow the user to download a file. Simply linking to the file doesn't work. When the user clicks the link, the content iframe redirects and goes blank. I've tested this in the web app version of Teams at teams.microsoft.com and it works fine. The file gets downloaded as you would expect.
If it makes any difference, the content page is hosted in SharePoint on a modern page using SPFx.

Get session of DNN in aspx file

I write a standalone aspx file and upload it to DNN website. I add a html module and make an iframe to that aspx file. How I should check DNN user login or not in aspx file? I think there are something in Session but it is empty when I print it out on aspx page.
The aspx file executes outside of DNN. There is no context for you to work with. A much better approach is to turn your .aspx into a .ascx and derive from PortalModuleBase as the start of a DNN module. You can add a proper module to the page and permission the module as you see fit and DNN will take care of all the authentication and authorization details for you.
A starting point for module development
I don't recommend it in this situation, but you can also emulate the approach I described for getting context in a web service.
https://stackoverflow.com/a/9164573/51851
If your aspx is within DNN's website you can simply use Request.IsAuthenticated to check if user is logged in or not.
But be warned, if you have friendly URL turned on - DNN 5x and above will hijack you aspx request.

How to use a Silverlight Solution

I have a Silverlight app made in Visual Studio 2010 and I want to put it on a website but I don't have the slightest clue how.
I've looked at all the msdn documentation and they all mention a .xap file that is the file you use on the website but there is no .xap and I can't find out how to compile my code into a .xap file.
Also, when I run the App and look at the source in the browser, it has my code compiled into the .xap file, but there is no .xap file!
So my question is simply how do you go about getting a Silverlight app on a website because I've been trying for hours and I can't figure it out.
A sample html or aspx page is included when you create the solution. This is the page that the browser navigates to when you hit F5. You can take that page as a basic example of how to embed a Silverlight app in a page. You should find it in the project folder.
Silverlight projects are commonly built into a XAP file when you hit "Build" in VS. This file lives in the bin/Release or bin/Debug folder and basically contains your whole application.
Steps to create a silverlight application Hosted in a web site,
Select Silverlight Application Template while adding new project in VS2010
When you click Ok, ensure that Host the Silverlight application in a new web site is Checked.(It will create a new ASP.Net web application to host the Silverlight)
If you haven't checked the Host the Silverlight application in a new web site option, you can add a new ASP.Net Web application project and then go to its properties and select Silverlight Applications option in left pane. Then Click Add, select your Silverlight Application to be hosted and click ok. You are done now.
But If haven't selected the Silverlight Application Template, then you might have created a Silverlight Class Library. It wont generate any xap file. It just gives a dll. So you need to recreate a project as mentioned above.
I believe that in Silverlight whenever you create a project, right at the beginning, it will ask you if you want to create a web app automatically. If you chose yes, something like YOUR_PROJECT_NAME.web will be created, go into that folder, you will find a folder called ClientBin.
The .xap file will be inside that folder.
HTH

Dotnetnuke 6 Ribbonbar Admin and dropdown gone

Above is the ribbonbar after I have logged in as a super user. The Admin option next to Host is completely gone
The site is running DNN6, the skin is only in the site portal folder, and it seems that all admin modules and options have gone away. Even the header, which I set in Site Settings (under Admin), went away!
Has anyone else had their admin options completely disappear on them? Is it possible that the skin is messing it up (all other sites use the same _default menu files and they work fine)?
Thanks for any replies.
We've recently had this exact situation occur in one of our DNN sites. It turn out that one of the site's administrators had accidentally renamed the Admin page from within the "Page Management" section (it's easy to see how that could happen). The fix was to go directly to /Admin/Pages.aspx and change the "Page Name" back to "Admin" ... and it will show up in the ribbon bar again.
As a suggestion to DNN developers, I would recommend making the Admin page and its subpages impossible to rename....
Can you check the database to see if those pages exist? What if you try to navigate to http://website/admin.aspx do you see the admin page and all the child pages there?

How to check how many pages are using a certain skin in dotnetnuke

I am sitting with a situation where I need to check how many pages in my site are using a specific skin. In Sitefinity, you can check which pages are using a certain template and I wanted to know if this is possible in DNN please?
Thanks,
James
If you have access to your database, this code will get you all pages in DNN that override the default skin with the store_limited skin.
select TabID, TabName, TabPath from tabs where SkinSrc like '%store_limited%'
Confirmed working in 5.6.0
To run this code from within DNN
Login as Host
Go to Hosts menu
Click on SQL
Select your DNN connection string
Paste in the above code
Press execute

Resources