Hi John, I have a question about using a modified version of the Core Links Skin object. I renamed it "mLinks" and renamed the ascx.vb file to match. Then I modified the "inherits" statement in the (new) mLinks.ascx file to inherit from the (new) mLinks.ascx.vb file. This part was extremely simple. Next, I modified the following line to draw only "hidden" pages to display in the menu. <br/>
If objTab.IsVisible = True And objTab.IsDeleted = False And objTab.DisableLink = False Then<br/> Modified it to this: <br/>
If objTab.DisableLink = False AND objTab.IsVisible = False AND objTab.IsDeleted = False Then<br/> Originally I had modified it to require "DisableLink = True" so I could still hide pages, but 4.5.5 made that impossible because disabled links now redirect to the home page. So I had to go this way, and it means that to "hide" a page I have to create a "hidden" page under a "hidden" AND "disabled" page. That way none of the the hidden page won't show up in the Links Menu and all hidden children remain invisible as well. Here is what I would like to do. I would like to use sort of a "reserved names" function. My way of viewing this is that I should be able to use the "tabname" in the statement to create a list of tabnames that when marked as "IsVisible = False" they would show up in the (new) mLinks skin object. Hope this makes sense. I know that in SQL I can set a string of variables so that if A, and b, or c, or d, or e, or f, then... This way if a page whose (now reserved) name appeared as "hidden" it would show up in the (new) mLinks skin object. This would allow me to have a "second" skinnable menu in a site that would skin exactly like Solpart, or any of the other "Core" menu objects. I tried to modify this, but my level of skill just isn't up to it and I couldn't get the new modification to work using the string of tabnames I needed. I have included the .zip of the mLinks skin object for you to look at, if you are inclined to, and I totally understand if you don't have the time. If anyone wants to use the object, feel free. It has made for some very clean looking skins. To "register" it in a skin use the following code:
<%@ Register TagPrefix="dnn" TagName="MLINKS" Src="~/DesktopModules/MLINKS/MLINKS.ascx" %>
To implement the object in the skin:
Then to have a page show up in the menu, simply mark it "hidden." Or in the new versions of DNN, 4.5 and higher, uncheck the box to make the page "show in menu." Remember you will have to then create a "hidden" page that is both "hidden" AND "disabled" to be able to hide pages by designating them as children of the main "hidden and disabled" page. Clay |