This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inherits ToSic.Sxc.Dnn.RazorComponent | |
@using System.Net.Http; | |
@{ | |
var client = new HttpClient(); | |
HttpResponseMessage response = client.GetAsync("<API_URL>").Result; | |
response.EnsureSuccessStatusCode(); | |
var result = response.Content.ReadAsStringAsync().Result; | |
var items = AsDynamic(result); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@* 20210212 JRF | |
Load More reference pieces; there are many other ways to do this, and this leaves a lot open for enhancement. | |
This is not a working example, just the pieces *for reference* | |
Note 1a: this still sends ALL entries to the client, so this is not appropriate for more than 200 to 300 items IMHO | |
Note 1b: and if your output includes images, this would be BAD for slow connections and mobile | |
Note 2: this assumes Bootstrap 4.x is in place | |
The original was this using jQuery, at the time I was learning NOT to use jQuery | |
and this was an early attempt at doing something JS only. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%-- THIS IS THE C# CSharp .NET VERSION | |
NOTES: | |
- the way we get the Skin name is "janky" ;) | |
- uses Bootstrap (next version won't?) | |
How to use: | |
1. Save this file in your theme folder, usually includes/__debug.ascx | |
2. Update the IPs; add the WAN IP(s) for your location(s) | |
3. Update the Bootstrap version manually | |
4. Either in includes/_footer.ascx (or Home.ascx), before closing DIV in main <footer> section add this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"host": "___HOST_NAME___", | |
"username": "___USER_NAME___", | |
"password": "___PASSWORD___", | |
"name": "AccuTheme", | |
"context": "./app", | |
"protocol": "ftp", | |
"port": 21, | |
"secure": true, | |
"secureOptions": { |