Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#98 Tab links have junk in them

closed
Victor Stone
None
5
2009-04-16
2008-11-13
Dave Crossland
No

Tab's links have "/view/media/" prepended by default - seen on live http://ccmixter.org/ atm, and openfontlibrary.fontly.org (first grey DIV at the bottom)

For OFLB, this means we'd prefer to hard code our tab list than generate it automatically, because we want our key documents to have great URLs

Discussion

  • Dave Crossland
    Dave Crossland
    2008-11-13

    • assigned_to: nobody --> fourstones
     
  • Victor Stone
    Victor Stone
    2008-11-14

    Moved this to 'feature request' because it is 'by design' up until now, not really an operational bug.

    the wiki doc http://wiki.creativecommons.org/Cchost/customize/Navigation_Tabs
    explains the model and that's pretty much how it's going to work.

    There are two work arounds:
    1. mod_rewrite your 'great URLs' to the /view/media versions
    2. The code that renders the actual tabs are nuetral to the tab system saved in config by the admin screens. That means you can forgo the admin screens navigation editing and populate the structures manually from code.
    This document
    http://wiki.creativecommons.org/Cchost/guide/Troubleshooting#Variable_Dumps
    describes how to dump a page's variables. Look for 'tab_info'

    This document
    http://wiki.creativecommons.org/Cchost/developer/Hooking_Page_Render
    describes how to hook every page before rendering

    You can overwrite 'tab_info' with whatever you want. Again, this will make the admin screens for nav tabs useless but it sounds like that may be ok for you.

     
  • Victor Stone
    Victor Stone
    2009-04-16

    closed by benevolent dictator (pending further requests/discussion wrt workarounds suggested in previous message.

     
  • Victor Stone
    Victor Stone
    2009-04-16

    • status: open --> closed