Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Setting visibility for DNN:TitleSetting visibility for DNN:Title
Previous
 
Next
New Post
7/29/2007 10:20 PM
 

Try below code to get module title:

    foreach (System.Web.UI.Control  ctl in this.ContainerControl.Controls)
                {

                    if (ctl.ID == null)

                        continue;

                    if (Regex.IsMatch(ctl.ID, "dnnTITLE"))
                    {

                        Label lbTitle = (Label)ctl.FindControl("lblTitle");

                       break;                   

                 }

                }

After get module title referrence , I think you can control its visible by using this code

             lbTitle.visible=false;

However ,I haven't test it, just guess


Over 20 + professional dnn modules for News Article, Store, Video Gallery, Photo Gallery, Ultra Flash Player,YouTube Video, Image Slide show, Skin Chameleon and much more from DnnModule.com
 
New Post
7/29/2007 10:27 PM
 

Each module is instanced inside its own ModuleContainer.

You can access this object using  this.ModuleContainer from inside any module event.

It is possible to change the TEXT contents of a module title by changing the value of:

this.ModuleContainer.ModuleTitle = "Some New Title"

However this will only work if you change the value in the Page_Init event.  If you change the value any later the TITLE skin object will already have read the text value from the ModuleTitle property.

Alternatively, you could also drill into the ModuleContainer object and locate the title object and possibly set it to visible - but this would be a skin specific task.

Westa

 
New Post
7/29/2007 10:45 PM
 

Thanks so much xiaoqi98 !!!! It works perfectly....!

I tried the other solution posted but it didn't seem to compile.

 

Thanks again!

 

 
New Post
7/29/2007 11:39 PM
 

Funny... I put the code inside the page init and it seems to get passed over all together. I tried to set a breakpoint on the code in the page init and it never seems to go there. Any suggestions on what I am doing wrong wtatters?

 

Thanks again

 
New Post
7/30/2007 12:24 AM
 

Set module caching to 0


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Setting visibility for DNN:TitleSetting visibility for DNN:Title


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out