1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Today in History module

Discussion in 'Add-on Requests [Archive]' started by Saburov, Mar 30, 2011.

  1. Saburov

    Saburov Active Member

    It would be nice, as a module on sidebar. (for xenporta or another) It would connect a source or we can manually add events.
    Keith likes this.
  2. Russ

    Russ Well-Known Member

    Not quite a full blown add-on and you may already have something like this... but here's a quicky I whipped up:
    A feed from: http://www.brainyhistory.com/link/

    1.) Create new template called "todayinhistory"

    2.) Insert the following code in the new "todayinhistory" template:

    <div class="section">
        <div class="secondaryContent">
    <h3>Today in History</h3>
    <script type="text/javascript" src="http://rss.brainyhistory.com/link/historyevents.js"></script><small><i>more <a href="http://www.brainyhistory.com/" target="_blank">History</a></i></small>
    Then go to page_container:

    3.) Find:
    {xen:raw $sidebar}
    4.) Right after put:

    <xen:include template="todayinhistory" />
    With this you get:
    Saburov likes this.
  3. Saburov

    Saburov Active Member

    Very nice Russ. Thanks, but my site language is Turkish. I think i have to find another solution.

Share This Page