JacobBushnell
 Nuke Active Member Posts:31

 |
| 05/28/2009 1:46 PM |
|
Hello, the Token Replacement In DontNetNuke tutorial shows exactly what I need. But my problem is I want to do it directly in my skin instead of a module.
Is this possible and if so what do I need to do?
Thank you, Jacob
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 05/28/2009 1:53 PM |
|
No, that isn't possible. But if you describe exactly what you want to do, there are probably some very good solutions. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
JacobBushnell
 Nuke Active Member Posts:31

 |
| 05/28/2009 1:55 PM |
|
Thanks, All I want is the "Register" link to say "Sign up for updates" when the user is not registered. Jacob |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 05/28/2009 2:02 PM |
|
[USER] is the skin object that renders either "Register" or the logged in user's name.
The word "Register" is the default value of the text when there is not a logged in user. You can change it!
If you are using the HTML version of the skin, you'll need to go into the skins .dnn file and specify the text you want using the "Text" attribute of the [USER] object.
If you are using the ascx version, specify Text="Your Text Goes Here" for the dnn:USER control.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
JacobBushnell
 Nuke Active Member Posts:31

 |
| 05/28/2009 2:25 PM |
|
Ok, that makes sense... But..(Im going to show my ignorance here...) I have made lots of skins and never made a file with a .dnn extension... Is that something that's added on by the application after I upload and parse and skin? Where do I find it? Thank you, Jacob |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 05/28/2009 2:38 PM |
|
If you use ascx versions of the skin, then the .dnn file will be of no use to you. If you are using HTML files, you are missing something that's quite useful. These tutorials probably will be useful: |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
JacobBushnell
 Nuke Active Member Posts:31

 |
| 05/28/2009 3:49 PM |
|
ok, now I am confused.... I am using .html skins and have been using an XML file for my manifest: skin.xml
Is that what you are referring to as the .dnn file? I looked though all the info and even tried creating skin.dnn file but it was rejected as an invalid file when I tried to install the skin. I have attached a copy of the skin I am using.
Could you please explain where in the ".dnn" file I edit that setting? Thank you, Jacob
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 05/28/2009 3:57 PM |
|
You are right, of course. It is the skin.xml file to which I referred.
.dnn files are manifest for module packages.
I can only blame it on the rain rusting my brain this week ...
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
JacobBushnell
 Nuke Active Member Posts:31

 |
| 05/28/2009 4:16 PM |
|
Ohh, Ok, that all makes sense now! So, now that that's out of the way is there still a "Text" attribute I can set in the manifest file to get it to change the default text when a user is not loged in from "Register" to "Signup for updates"? Thanks, Jacob
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 05/28/2009 4:26 PM |
|
Yes. I had that part right ... because I had looked it up.
There is a document that you can download from dotnetnuke.com that refers to skinning. It contains a list of the attributes for many of the skin objects. It's a tad out of date, but it's reasonably correct.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
JacobBushnell
 Nuke Active Member Posts:31

 |
| 05/28/2009 6:21 PM |
|
Ok, Thank you for your patience. So far so good. But now that I have updated my XML file NOTHING seems to happen… is it “called” somehow or is it supposed to be recognized by default?
It does not seem to change ANYTHING. Do you have any idea why?
My skin is in .htm format. I have attached my XML file:
Thanks again, Jacob
|
|
|
|
|
Stephen Price
 Nuke Newbie Posts:1

 |
| 05/29/2009 2:04 AM |
|
Joe, Do you know of a way to replace the [User] tage with a link that will take the user to my own custom module. I've replaced the MembershipProvider so for normal users all of that profile stuff is done in a custom module and the dnn stuff no longer works for them. I want to remove the option for them to go to the dnn profile pages (via the [USER] link) cheers, Stephen |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 05/29/2009 6:58 AM |
|
Sure. Just remove [USER] from the skin and insert your own link or custom skin object.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
JacobBushnell
 Nuke Active Member Posts:31

 |
| 05/29/2009 12:44 PM |
|
Thanks for all your help Joe. I am going to start a new thread now trying to figure out why my xml file it not bring applied.
Thank you, Jacob
|
|
|
|
|
JacobBushnell
 Nuke Active Member Posts:31

 |
| 05/29/2009 12:57 PM |
|
I finally got my problem figured out.. turns out that the value is NOT
changed in the XML file... its is changed in the User.ascx.resx file
located under admin/Skins/App_LocalResources/.
Line 43 contained the value I needed to change.
Register <<< Just had to change this value here
Thanks for all your help!
Jacob |
|
|
|
|