Adding Pages with Javascript
You can access a raw list of the list pages and flat pages on your site by accessing the following:
Please replace tickercode with your site's instance ticker code - provided by IRM. If you do not have this, please contact your account manager or email support@irmau.com.
List Page's
https://tickercode.irmau.com/site/SiteData.aspx?DataType=ListPage
Flat Page's
https://tickercode.irmau.com/site/SiteData.aspx?DataType=FlatPage
A demo for this site can be viewed here:
http://irmn0.test.irmau.com/site/SiteData.aspx?DataType=ListPage
These produce a list of category names and id's in short code format which can be used in the query string when requesting pages.
Example: [irmflat=251] Company Overview or [irmlist=8] : ASX Announcements.
To use these in the query string and call different pages please use the CategoryID option.
To show a list of ASX Announcements which also will show a link to for archived announcements, use the following code:
<div data-newsroomurl="https://tickercode.irmau.com/site/ShowListPagexml.aspx?CategoryID=8">..</div>
Live Example
CSS & HTML for Live Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
<style> |
|
.article { |
|
border-bottom:1px solid #999; |
|
margin-bottom:10px; |
|
} |
|
.articleDate { |
|
float:right; |
|
color:#999; |
|
} |
|
.article a { |
|
float:none; |
|
width:100%; |
|
} |
|
.article > a { |
|
font-weight:bold; |
|
font-size:22px; |
|
} |
|
</style> |
|
|
|
<script type="text/javascript" src="https://www.irmau.com/irm/js/Newsroom.js"></script> |
|
|
|
<h2>Live Example</h2> |
|
|
|
<div class='row'> |
|
<div class='large-12 columns'> |
|
<div data-newsroomurl="https://www.irmau.com/irm/ShowListPagexml.aspx?CategoryID=442">..</div> |
|
</div> |
|
</div> |