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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skin Object with XML FileSkin Object with XML File
Previous
 
Next
New Post
12/11/2009 1:15 AM
 

Hi All

I am trying to develop a module (based on the modules of DotNetNuke itself, such as copyright.ascx, copyright.ascx.vb and copyright.xml). I would like to develop something similar in the sense that I can allow users to specify the cssClass (which is defined in the dnn tag within the skin.ascx file and in the .xml file of my module).

Now the problem lies as I am reading the ascx.vb file and can't find anywhere where they are locating to read the values from the dnn tag cssClass value and the xml file.

Basically all I would like to achieve is something on the lines that when a user specifies the value for an attribute in a custom tag, I would be able to read the value from my module.

I would appreciate if anyone can provide any help/tutorial or link to a site.

Thanks

 
New Post
12/11/2009 4:50 AM
 

you are trying to create a Skin Object, not a module, maybe this is of help when searching.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/11/2009 5:06 AM
 

yes sorry I meant Skin Object (just as the topic name), from the Skin Object .ascx.vb file how can I access the property name from the tag inside the skin.ascx ?

If the user types cssClass="test" in the skin.ascx file, how can I get the value "test" within my skin object .ascx.vb file?

 
New Post
12/11/2009 9:10 AM
 

This means you will have to add a Public Property "CssClass" to your vb file object and use that in your code.

In the ASCX you could use a literal to contruct a div and add the class or a panel and set it's CssClass through code.

(it's best not to use a lable, because this will prevent users from using any block elements (if the want to remain XHTML compliant)

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skin Object with XML FileSkin Object with XML File


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