Module Printer Icon
Last Post 08/19/2007 8:47 PM by Kim Seav. 8 Replies.
Author Messages
Andrew Campbell
Nuke Active Member
Nuke Active Member
Posts:22


--
03/25/2006 8:20 PM

    Hi,

    How do I "turn off" or "remove" the little printer icon that displays on all the modules I add to DNN?

    I'm guessing it is an actionbutton in the container....

    If it is, where can I find what these actionbuttons do and their numbering?

    I have read the "skinning" pdf from DNN 4 documention.

    Thanks.

    Andrew

    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    03/26/2006 1:42 PM
    Hi Andrew,

    You have a couple of options for turning off the printer icon.

    1) Go to the modules settings / Page Settings / Allow Print (Un-tick the box)
    (If you want this to be applied to all of the modules that you add, then click on Advanced Settings / Set As Default Settings)

    - If you don't use the print icon at all, then I would use the method below, (I prefer the method below as it removes some excess code from your pages)

    2) Within your container remove the reference to your [ACTIONBUTTON] token for the printer icon. - You can find out which token you need to reference by viewing the XML file that accompanies your container file. - This will give a list of the tokens and the function that they provide. - If you check the Containers video you will see that I edit the XML file and you will be able to see those details in there.

    Hope this helps,

    Thanks,
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Kim Seav
    Nuke Newbie
    Nuke Newbie
    Posts:6


    --
    08/12/2007 11:52 PM
    Hi,

    I have a question regarding something similar to this...when a new page is created in DNN, by default there is a text/html module in the Content Pane as it's required in the skin. The thing is, I was wondering if there was any way to set it so that the Print and Container settings are always hidden. I know how to set it so that they don't appear when modules are added manually by selecting "Set as default setting" but it doesn't apply to the module that automatically sits on new pages.

    I've looked for the xml file that the default container (looks blue but its not the DNN Blue) but i can't find it..just wondering if possible because it would save clients from having to remember to turn it off each time in Settings.

    In my .ascx, all I've done to put the Content Pane in is the standard <span id="ContentPane" runat="server">. Don't know if that's the problem...

    Thanks in advance

    Kim
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    08/13/2007 7:13 AM
    Kim,

    In your case, you are talking about page templates. These settings are stored in the default page templates. You can edit the default page template by going to your DotNetNuke installation files at:
     
    portals / _default/ templates folder

    In there you can edit the Default.page.template file using Notepad, you can edit:

    < displayprint >true< / displayprint >

    to false

    I am creating video tutorials on using page templates and creating page templates for the next issue of DNN creative.

    Thanks,
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Kim Seav
    Nuke Newbie
    Nuke Newbie
    Posts:6


    --
    08/13/2007 10:51 PM
    Hi Lee

    Thanks for your quick response.

    I've changed the print setting to false and that worked but the container is still visible on the default template.

    I noticed a tag within the template with nothing in between so I added "False" which did nothing.

    Is there any way I can hide the container automatically as you instructed with the print setting? I don't know xml at all...which doesn't help.

    Thanks!

    Kim
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    08/14/2007 3:48 AM
    Where it is:

    < containersrc >the container file< / containersrc >

    change it to just:

    (containersrc /)

    [- brackets used instead of <  ]

    If this doesn't work, install a transparent container and enter the name of the transparent container to use as default



    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    08/14/2007 4:11 AM
    Whoops ... I wasn't thinking straight ... it's 5 am!  In the text below, replace square brackets with angle brackets ...

    You really don't have to know XML, but you do need to know that an XML file is just a text file, and that everything in it is made up of tags, pretty much like an HTML file is made up of tags.

    In XML you can define your own tags:

    [tag]This is my tag [/tag]

    An empty tag can be written as [tag][/tag] or as [tag/]

    If you look at Default Page Template.xml you'll see how it works.

    If you look inside the file, you'll see tags that pretty much correspond to the settings page for a page and for a module. The main part of this file is

    [modules]
      [module]  
            module definition goes here
      
    [/module]
      [module]  
            you could define another module here
      [/module]
    [/modules]


    Inside of the module tag you'll see the module settings. I find it useful to compare this to the module settings page. tells you that the only module on the page is a Text/HTML module.

    Now, while I haven't tested it -- and I'm headed for the airport so I can't do that right now -- I think that is the tag that is labeled "Display Container" on the module settings page. This is because it's the only one that I can't match up easily. If you set this to false, see what happens.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Kim Seav
    Nuke Newbie
    Nuke Newbie
    Posts:6


    --
    08/19/2007 8:44 PM
    Hi Lee

    I've changed it to brackets but still doesn't work. I've just ended up installing a transparent container as advised and that works great!

    Thanks!
    Kim Seav
    Nuke Newbie
    Nuke Newbie
    Posts:6


    --
    08/19/2007 8:47 PM

    Hi Joe

    Thanks for your response, I can see how XML is quite similar to HTML.

    Had trouble locating the module settings file for the module. I have already tried to set as false in the "default.template" but that didn't work.

    Ended up just installing a transparent container instead and that is working ok.

    thanks

    Kim



    ---