Hardcode page name or tab ID in skin?

Last post 11-06-2005 10:35 PM by cchubb. 5 replies.

Sort Posts:

  • Hardcode page name or tab ID in skin?

    11-03-2005, 9:42 PM
    • Member
      17 point Member
    • cchubb
    • Member since 01-13-2005, 10:35 AM
    • Posts 4
    OK, maybe I am missing something here, but I have a design from a client that includes a hard coded link to the search page in the header. I set up my skin, but I want to make the link to the search page be variable as I use the skin on more than one module and I don't relish the idea of hard coding the tab id on each skin.

    Is there a skin object tag or ASCX control or variable call that I can use to look up a tab ID by the page name or other identifying characteristic? If not, could we add something like that to the core? I don't really see a way to make something like that a module.

    While I am wishing stuff into the core, could we add an extra property to the core skin preprocessor so that [SEARCH] has a "InputCssClass" property? Otherwise you are set to whatever the skin default is for a text box, and all text boxes are the same. I would like a search box that is small and uses other fonts.

    Other than those little items, my first industrial strength DNN portal is coming along swimmingly.



  • Re: Hardcode page name or tab ID in skin?

    11-05-2005, 2:02 PM
    • Participant
      1,140 point Participant
    • acorcutt
    • Member since 09-18-2002, 11:40 AM
    • Sheffield - England
    • Posts 228
    There is a [PAGETITLE] skin object that comes with DNN.. if this is not what you want it would be easy to modify to write out the TabId instead.

    DNNDesigner - Free Editor, Free Compact Control Panel, Free Designer Objects and 60+ Skins From Only $1
  • Re: Hardcode page name or tab ID in skin?

    11-05-2005, 2:16 PM
    • Member
      17 point Member
    • cchubb
    • Member since 01-13-2005, 10:35 AM
    • Posts 4
     acorcutt wrote:
    There is a [PAGETITLE] skin object that comes with DNN..


    Well, I don't see that skin object in my documentation. I guess it is time to try to find more updated documentation. But, Ill look into it. What I don't want is the CURRENT tabid. What I want is the tabid of the tab that has the title "Search Form" or something like that. Ill look up the PAGETITLE in the source and see if it could be modified to give me what I need.

    Thanks,

    Chris
  • Re: Hardcode page name or tab ID in skin?

    11-06-2005, 8:52 PM
    • Participant
      945 point Participant
    • SDodds
    • Member since 05-01-2005, 3:06 AM
    • New Zealand
    • Posts 187

    PageTitle is under /DesktopModules, the install zip is in the same folder (noting that its a skinobject not a module)

    Steve

  • Re: Hardcode page name or tab ID in skin?

    11-06-2005, 10:05 PM
    • Contributor
      2,120 point Contributor
    • phr0ze
    • Member since 04-27-2004, 10:26 AM
    • Maryland
    • Posts 424
     cchubb wrote:
    OK, maybe I am missing something here, but I have a design from a client that includes a hard coded link to the search page in the header. I set up my skin, but I want to make the link to the search page be variable as I use the skin on more than one module and I don't relish the idea of hard coding the tab id on each skin.


    Maybe I'm missing somthing here... Isn't the search what every DNN skin handles? Are you trying to do something different?
    John

    Free DotNetNuke News, Tips, Strategies and more.
    www.dotnetnukesites.com
  • Re: Hardcode page name or tab ID in skin?

    11-06-2005, 10:35 PM
    • Member
      17 point Member
    • cchubb
    • Member since 01-13-2005, 10:35 AM
    • Posts 4
     phr0ze wrote:

    Maybe I'm missing somthing here... Isn't the search what every DNN skin handles? Are you trying to do something different?


    No, not really. The [SEARCH] tag puts in the search box. I just want a link to my search page. I don't want the input box in the header. I figured it would be better to make it a more general tag and just have it provide the link to a tab by page name. Ill set it up so that if more than one page has the same requested tab, you get the first one returned.

    Tentatively I am going to set up something like
    [TABLINK] with the following properties:
    Text - Text to put in the link. Can be a CDATA to make it an img.
    LinkToTitle - The title of the page you want to make a link to.
    LinkToTabID - In case you are using friendly URLs it would make the page link to the tab by tabid. Only one of the title or tab id links is required.
    CssClass - The class for the HREF.
    Can you think of anything else that would be useful?


Page 1 of 1 (6 items)