DNN Forums

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

Hiding a Html Module on a page

 9 Replies
 1 Subscribed to this topic
 28 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 31
Growing Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

I am trying to hide an html module by placing the following code in the page header tags, can you tell me why it may not be working

#1818 {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

I would use:

<code>body:not(.CP-Edit)  .DnnModule-1818{<br /> display:none; /* Hide a specific module if not in edit mode /*<br /> }</code>

This will make sure it only hides if you are not logged in and in edit mode.

May I ask what the use case is? (there might be better options in DNN..)

Growing Member
Posts: 31
Growing Member
New Poster
New Poster
Congrats on posting!

If you use the page header tags, you probably have to encapsulate this in a

style block.

Maybe you would prefer to create a spécific css file for a page with the corresponding style. You can configure a specific css file for each page.
I think it's a better option than using the page header tags.

Growing Member
Posts: 31
Growing Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

Timo

  thanks for the quick response.

My situation is using Dnn Sharp Grid and Mandeeps Live Tokens, the only way i could get the Live tokens to display in the Dnn Sharp Grid was to add a

html module and place the tokens in that module and then the  tokens would show up in dnn Sharp Grid Advanced UI Settings - Additional Html Header. If I do not display the html module then tokens no longer show in Dnn Sharp Grid, so I wanted to hide the html module

Thanks,

Bob

www.temeculacreekmensgolfclub.com

http://temeculacreekmensg...t/Live-Scoring-Skins

at the bottom of this page you will see html module with tokens

 

Growing Member
Posts: 31
Growing Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

Thanks for that response Stéphane, I am just getting into the css coding I am a real novice

see my web site below

http://temeculacreekmensgolfclub.com/

Thanks,

Bob

 

 

Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

Hi Bob,

We all had to learn things at one point (and still do). And still grateful there was someone at that time learning me a lot of stuff. So, come back any time :-)

Did you know there is also https://dnncommunity.org/...20030/New-DNN-Tokens ?

Cheers

Tycho

Growing Member
Posts: 31
Growing Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

Yes Tycho I have used that module and really like it a lot, unfortunately it does not allow give you the ability to read external SQL databases and build tokens,

unless I am missing something.

Thanks

Bob

Growing Member
Posts: 31
Growing Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

Hello Tyco

    i see dnn tokens has sql script functionality - does this mean it can access an external database

If so is there any documentation that explains how

Thanks

Bob

Growing Member
Posts: 54
Growing Member
MVP
MVP
You're an MVP!

Hi  @Bob M 

I have not tried that usecase, yet. Would you be so kind to log an issue/question on Github? That way, we can

  • see if it is possible
  • create a manual explaining how to set it up

 

Growing Member
Posts: 31
Growing Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

I have logged issue on github

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