new skin object token
Last Post 12/15/2008 2:12 PM by ollep. 2 Replies.
Author Messages
Roger Goodwin
Nuke Pro
Nuke Pro
Posts:95


--
12/12/2008 6:02 PM
    Hi,
    I want to add my company details as a link in the footer of my pages in the same way the Terms and Privacy work. I can do this by adding the url into the skin and creating a new a.class to make it look the same as the other skin object items. What I have just tried to do is create a new object and token. I have used the Terms xml, ascx and vb files and changed the code to match my new link. I have had several issues. When I try to upload and install the skin from a .zip i get the following error,

  • Processing token: [DTC]
  • Token not found: [DTC]
  • When I try and put this directly into my ascx file I get this error.

     DotNetNuke.Services.Exceptions.PageLoadException: Unhandled error loading page. ---> System.Web.HttpParseException: C:\websites\DNN\cssskin\Admin\Skins\DTC.ascx.vb(1): error ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). ---> System.Web.HttpCompileException: C:\websites\DNN\cssskin\Admin\Skins\DTC.ascx.vb(1): error ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). at System.Web.Compilation.BuildManager.PostProcessFoundBuildResult(BuildResult result, Boolean keyFromVPP, VirtualPath virtualPath) etc etc....

    Can you point me in the right direction, is it possable to do this in this way?

    Regards

    Roger

    Joseph Craig
    DNN MVP
    Posts:11667


    --
    12/13/2008 9:44 AM
    I don't have the answer for you, but you've clearly got a problem with the way that your skin object inherits from the proper class.  Take a look at this blog entry and also this one.


    Joe Craig, Patapsco Research Group
    Complete DNN Support
    ollep
    Nuke Master
    Nuke Master
    Posts:456


    --
    12/15/2008 2:12 PM

    Hi Roger.

     

    I normally just change the settings in the “Skin HTML” file, Ie; “index_no_logo.html”.

     

    In the bottom of that file you have all the code and “href=” format.

     

    Cheers

     

     

    Olle…



    ---