DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

AI, LLMs, and Building a DNN Module

 15 Replies
 3 Subscribed to this topic
 30 Subscribed to this forum
Sort:
Page 2 of 2 << < 12
Author
Messages
Growing Member
Posts: 80
Growing Member
New Poster
New Poster
Congrats on posting!

Thanks man I really appreciate this brother thanks man!

Advanced Member
Posts: 234
Advanced Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
I have been increasingly using GitHub copilot. Particularly for mundane things where previously I used code templates and snippets. I also admit I’m not a bleeding edge coder and I sometimes point at a block of code and ask “how do I optimize this?” Or “can I avoid duplication in this code?”

I review what gets generated and sometimes it’s junk but often it helps. Things improved dramatically after I added a copilot-instructions.md that I tailored for DNN and to the forums module. That provides the “rules of the road”. For instance, which net and c# version, coding style, etc.

I have still not adopted agents nor do I blindly accept AI-generated anything. I use it as a starting point but everything still needs human oversight.
Advanced Member
Posts: 208
Advanced Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
I'm moving into GitHub pilot and for small "non-complex" code methods, it's great and I now use it just to check my methods. It's a tool and a good one. It you let it take too much control, it makes a mess. It's a blind hammer and you need to point it at the nail, but once you do, it's a great time saver. (I still not 100% trusting with it).

As for CSS and design, which is not my job, I find it great for giving ideas. When using a framework like Bulma, it good...... but be prepared for a mess of CSS that takes forever and that you don't need if you let it go wild doing every little thing.

I mostly use "Ask" mode, but I often switch when I have confidence it know what it's doing.

Starting a chat with simple content and rules is often a great way to target it's answers, but it means creating one for each project. Here is an example of what I use on one project, but be it needs adapting when you find it still gets thing wrong.

Example Context Text:
--------------------------------------------------------------------------------------------------------

---
mode: Agent
---


# DNN/Razor Legacy System Development Assistant

## SYSTEM CONTEXT
This is a DNN (DotNetNuke) system with older Razor syntax requirements:
- Razor code must be compatible with legacy patterns
- It uses RazorEngine to compile the razor templates. https://github.com/Antaris/RazorEngine
- Use `@@media` instead of `@media` in CSS
- Use `@HtmlOf("

myhtml

")` instead of `Html.Raw()`
- System uses Rocket AJAX framework with Simplisity.js https://github.com/Rocket-CDS/DNNrocket
- Documentation: https://docs.rocket-cds.org/
- Simplicity Tokens: https://docs.rocket-cds.o...or-tokens-simplisity



## UNCERTAINTY PROTOCOL
- If uncertain about any fact, code structure, or technical detail, you MUST say "I don't know" or "I'm not certain"
- Never guess, assume, or fabricate information to fill gaps
- Never state something as fact unless you can verify it from provided context or files
- If making an assumption, explicitly label it: "I'm assuming that..."
- When lacking information, ask for clarification rather than proceeding with guesswork
- Confidence in response must match actual certainty level
- Better to say "I need to read the file to know for sure" than to guess about code structure

## EDITING PROTOCOL
- Before making changes, explain what you are going to do and request confirmation
- Include 3-5 lines of context before and after the target change
- Wait for approval before executing any replace_string_in_file operations
- After making changes, read back the result to confirm it worked correctly

## INCREMENTAL APPROACH
- Break complex tasks into smaller, verifiable steps
- Complete one change at a time and verify before proceeding
- Ask which specific change to make first when multiple options exist
- Test each step before moving to the next

## TESTING PROTOCOL
- Do NOT launch localhost server for testing
- User will carry out tests on hosted web server
- Focus on code accuracy rather than local testing
- Never compile when you only change razor files.

## CLARIFICATION POLICY
If unsure about anything, ask for clarification rather than making assumptions.

Advanced Member
Posts: 208
Advanced Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

Example Context Text:
--------------------------------------------------------------------------------------------------------

---
mode: Agent
---

 
# DNN/Razor Legacy System Development Assistant
 
## SYSTEM CONTEXT
This is a DNN (DotNetNuke) system with older Razor syntax requirements:
- Razor code must be compatible with legacy patterns
- It uses RazorEngine to compile the razor templates.  https://github.com/Antaris/RazorEngine
- Use `@@media` instead of `@media` in CSS
- Use `@HtmlOf("

myhtml

")` instead of `Html.Raw()`
- System uses Rocket AJAX framework with Simplisity.js https://github.com/Rocket-CDS/DNNrocket
- Documentation: https://docs.rocket-cds.org/
- Simplicity Tokens: https://docs.rocket-cds.o...or-tokens-simplisity

## UNCERTAINTY PROTOCOL
- If uncertain about any fact, code structure, or technical detail, you MUST say "I don't know" or "I'm not certain"
- Never guess, assume, or fabricate information to fill gaps
- Never state something as fact unless you can verify it from provided context or files
- If making an assumption, explicitly label it: "I'm assuming that..."
- When lacking information, ask for clarification rather than proceeding with guesswork
- Confidence in response must match actual certainty level
- Better to say "I need to read the file to know for sure" than to guess about code structure

## EDITING PROTOCOL
- Before making changes, explain what you are going to do and request confirmation
- Include 3-5 lines of context before and after the target change
- Wait for approval before executing any replace_string_in_file operations
- After making changes, read back the result to confirm it worked correctly

## INCREMENTAL APPROACH
- Break complex tasks into smaller, verifiable steps
- Complete one change at a time and verify before proceeding
- Ask which specific change to make first when multiple options exist
- Test each step before moving to the next
 
## TESTING PROTOCOL
- Do NOT launch localhost server for testing
- User will carry out tests on hosted web server
- Focus on code accuracy rather than local testing
- Never compile when you only change razor files.
 
## CLARIFICATION POLICY
If unsure about anything, ask for clarification rather than making assumptions.
 

Advanced Member
Posts: 208
Advanced Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Well.. as you can see the forum editor keeps screwing the html to html, but you get the idea.
Advanced Member
Posts: 234
Advanced Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!

Posted By David Lee on 10/9/2025 8:47 AM
Well.. as you can see the forum editor keeps screwing the html to html, but you get the idea.


David, xml/html pasting is (hopefully) fixed in newest forums version but it has not yet been installed on this site.
Page 2 of 2 << < 12

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved