Leaderboard

Rank Member Pts

DNNDev University LogoJust like a university without the grades and student loan. Think of it more as a merging of the student union and open classrooms. Ask questions, get answers, learn, teach, make friends and contacts.

Find Out More

 
Mike9355

Mike9355earned the privilege Start unmoderated topics

Earned the Start unmoderated topics privilege!
Alon HirschAlejandro Quiroga Alsinajeffwest1and 98 others also earned the privilege Alon Hirschand 100 others also earned the privilege

2 weeks ago

Mike9355

Mike9355created the topic: Can a ScriptBlock be conditionally shown or hidden in a template?

I have a data column for GoogleTagID, which contains the Google Analytics ID. If the data column is empty, then I want to hide the Google header script block in an ItemTemplate, but if there is a value for GoogleTagID, then I want to show the Scriptblock …

2 weeks ago

  • NewestOldest
  • Mike9355Is it also correct that hiding an element within a scriptblock cannot work either? Like this:

    http://dnndev.com/fiddle/fid/899

    I appreciate any help!2 weeks ago
  • Kelly FordUgh! I can't wait until I complete the Discuss module replacement. I've wasted so many cycles fighting with posting HTML and code snippets over the years... I've deleted two posts now, trying to get this reply out to you :)

    Anyway, I'm going to make this much shorter. Here's a fiddle: https://www.dnndev.com/fiddle/fid/900

    It shows an alternative way you can approach this. You're using field tokens in your e ...1 week ago
  • Kelly Ford@Mike9355 That is correct. The Script Block is designed to output raw text (HTML, CSS, JS, plain text). So, XModPro controls like IfNotEmpty won't work inside a ScriptBlock either. Any XModPro server controls nested inside it โ€”
    whether wrapping the ScriptBlock or inside it โ€” will be ignored, and in most cases the ScriptBlock will silently
    produce no output at all.

    The Jav ...1 week ago
 Reddict

Reddictearned the privilege Edit own topic or reply

Earned the Edit own topic or reply privilege!
Chris ReddickMike9355Ronnie Franklinand 127 others also earned the privilege Chris Reddickand 129 others also earned the privilege

2 weeks ago

Mike9355

Mike9355created the topic: Add NavigateUrl tag to header

Hi, I'm trying to add a canonical tag to the header using a scriptblock and want the NavigateUrl tag to generate the url, but it is not working. Is this the correct way to write it? Please see: http://dnndev.com/fiddle/fid/896 Thanks!

3 weeks ago

  • NewestOldestView All Comments5 comment(s)
  • Kelly FordHave you tried using the [[Page:FullUrl]] token? Just stick that in your HTML tags for the href.3 weeks ago
  • Ryan Moore@Mike9355 HI Mike, You're on the right track to set it up and make it easy to manage via database calls for the pages and content. We have something similar that we use on pages where we have articles and pages that need the additional social media tags via XMP modules pulling data and putting them in the page header.

    Some of this might be useful to you. Reach out if you'd like ...3 weeks ago
  • Mike9355Thanks Kelly! I didn't know that Page:FullUrl token existed. That works for my setup.

    Thanks Ryan, that is a handy list!2 weeks ago
Kelly Ford

Kelly Fordcreated the topic: Eating Our Own Dog Food

If you've been following my posts on LinkedIn or my posts here on the site, you'll know I've been working on XMP v.5. While that is a huge undertaking, I've also been looking at dnndev.com with new eyes. We will eventually be moving off of Evoq in favor …

1 month ago

  • Kelly FordJust to follow-up... the new Answers module replacement, made with XMod Pro, is now live at https://dnndev.com/Learn/Answers. I'm sure there will be some things that need to be fixed or tweaked along the way, but I'm pretty happy with the way things turned out. It should still feel familiar to you, but we've removed the gamification aspects and improved the overall user experience.

    For instance, your questions and answers ca ...3 weeks ago
Kelly Ford

Kelly Fordvoted on Find a Form, Template, or Feed

<p>Pete,
</p>
<p>I was going to suggest Kelly's answer, but he already posted it by the time I got here. On a side note, if you ever build a big project with XMP again, might I suggest creating a project_config table in the database that stores key value pairs such as OrdersEmail > [email protected]; InfoEmail > [email protected]; etc. This way you are essentially tokenizing crucial reparative data in your forms and templates. That way if an email addre ...

1 month ago

Steve Krantzman

Steve Krantzmananswered the question Find a Form, Template, or Feed

Pete, I was going to suggest Kelly's answer, but he already posted it by the time I got here. On a side note, if you ever build a big project with XMP again, might I suggest creating a project_config table in the database that stores key value pairs …
Kelly Ford also answered the question Kelly Ford also answered the question

1 month ago

Pete Kersker

Pete Kerskerasked the question: Find a Form, Template, or Feed

Is there any way to find a list of Forms, Templates, or Feeds by searching the code text? Here's my use case: I've changed my email server for sending out emails. I need to find every place where i send out a confirmation emal so i can change the "from" …

1 month ago

Kelly Ford

Kelly Fordanswered the question Is XMod Pro v.5 Coming?

It's kind of weird having to ask a question, just so I can post an answer, but here goes: Yes! Version 5.0 is finally coming. We're targeting Q1 of this year and have made a ton of great progress. I will be posting more about this as we get closer to …

1 month ago

Kelly Ford

Kelly Fordasked the question: Is XMod Pro v.5 Coming?

Mention of it was made at the end of 2025. When will it be available and when will we know more about it.

1 month ago