Skip to content

Instantly share code, notes, and snippets.

@dbonneville
Created February 7, 2011 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbonneville/814648 to your computer and use it in GitHub Desktop.
Save dbonneville/814648 to your computer and use it in GitHub Desktop.
Pyramis headerData
//configure RealURL
//config.simulateStaticDocuments = 0
//config.baseURL = http://www.pyramis.com
//config.tx_realurl_enable = 1
page = PAGE
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page
page.10.disableExplosivePreview = 1
// add unique page ID for CSS selectors to work
page.bodyTagAdd = id="global-home"
//page.headerData = TEXT
//page.headerData.value (
// <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
// <script type="text/javascript" src="fileadmin/templates/myjq.js"></script>
// )
page.headerData = TEXT
page.headerData.value {
$(document).ready(function(){ gaTagLoader(); });
}
### CUSTOM PAGE TITLE
# suppress default title tag
config.noPageTitle = 2
# declare a page header text object
page.headerData.30 = TEXT
# use page subtitle field first; otherwise use page title field
page.headerData.30.field = subtitle // title
# wrap the field with the following
page.headerData.30.wrap = <title>|&nbsp;-&nbsp;Pyramis Global Advisors</title>
page.includeJS {
10 = fileadmin/templates/pyramis_public/scripts/jquery.js
10.type = text/javascript
20 = fileadmin/templates/pyramis_public/scripts/jquery-ui-personalized-1.6rc6.min.js
20.type = text/javascript
30 = fileadmin/templates/pyramis_public/scripts/jquery.cookies.2.0.min.js
30.type = text/javascript
40 = fileadmin/templates/pyramis_public/scripts/globalHome.primary.js
40.type = text/javascript
50 = fileadmin/templates/pyramis_public/scripts/functions.js
50.type = text/javascript
60 = fileadmin/templates/pyramis_public/scripts/functions.js
60.type = text/javascript
}
// add the page title to the body id so the CSS works right
//page.bodyTag >
//page.bodyTagCObject = HTML
//page.bodyTagCObject.value.field = alias//title
//page.bodyTagCObject.value.case = lower
//page.bodyTagCObject.value.wrap = <body id="|">
page.includeCSS {
10 = fileadmin/templates/pyramis_public/styles/master.css
}
lib.logo = COA
lib.logo {
10 = IMAGE
10.file=fileadmin/pyramis_public/images/logo-pyramis-global-advisors.gif
10.params = id="logo"
10.stdWrap.typolink.parameter=42
}
lib.utilityNav = COA
lib.utilityNav {
10 = HTML
10.value = <div id="nav-util">
20 = HTML
20.value = <p><a href="https://fmtclogin.fidelity.com/">Client Login</a> &nbsp;&nbsp;
30 = HTML
30.value = <ul class="nav" id="nav-one">
40 = HTML
40.value = <li id="arrow"><a href="#">United States</a>
50 = HTML
50.value = <ul>
60 = HTML
60.value = <li><a href="global_home/index.shtml">Global Home</a></li>
70 = HTML
70.value = <li><a href="us_homepage.shtml">United States</a></li>
80 = HTML
80.value = <li><a href="http://www.pyramis.ca">Canada</a></li>
90 = HTML
90.value = <li><a href="uk/uk_homepage.shtml">United Kingdom</a></li>
100 = HTML
100.value = </ul></li></ul>
150 = HTML
150.value = </div>
}
tvlib.header = COA
tvlib.header {
10 < lib.logo
//20 < lib.utilityNav
}
tvlib.footer = COA
tvlib.footer {
20 = HTML
20.value = <p><a href="http://www.pyramis.com/terms-of-use.shtml">Terms of Use</a> &copy; 2009 FMR LLC All Rights Reserved.</p>
30 = HTML
30.value = <p><a href="http://www.pyramis.com/privacy-policy.shtml">Privacy</a> &copy; 2009 FMR LLC All Rights Reserved.</p>
40 = HTML
40.value = <p>This website is for informational purposes only. This website does not provide investment advice or recommendations, nor is it an offer or solicitation of any kind to buy or sell any investment products. Pyramis provides asset management services to <a href="http://www.pyramis.com/terms-of-use.shtml#investors">Institutional Investors</a>, and those services are generally only available to Institutional Investors. This website is intended to be made available only to persons residing in the United States. The information on this website is provided only for Institutional Investors, consultants or members of the media. Information contained on this website is not intended for Institutional Investors in any jurisdiction in which distribution or purchase is not authorized. If you are not a US resident, please select <a href="http://www.pyramis.com/global_home/index.shtml">international investors</a>.</p>
50 = HTML
50.value = <p>Past performance is no guarantee of future results. An investment may be risky and may not be suitable for an investor's goals, objectives and risk tolerance. Investors should be aware that an investment's value may be volatile and any investment involves the risk that you may lose money. Pyramis does not provide legal or tax advice and we encourage you to consult your own lawyer, accountant or other advisor before making an investment.</p>
}
tvlib.image = IMAGE
tvlib.image {
file.import = uploads/media/
file.import {
data = levelfield : -1, media, slide
listNum = 0
}
}
tvlib.banner-image = COA
tvlib.banner-image {
10 < tvlib.image
}
tvlib.nav = COA
tvlib.nav {
wrap = <ul id="nav">|</ul>
// Equity nav item
10 = TEXT
10 {
wrap = <li>|</li>
value = Equity
// Parameter is the page ID of the target page
typolink.parameter = 43
typolink.ATagParams = id="nav-equity"
}
// Fixed income nav item
20 < .10
20.typolink.parameter = 44
20.value = Fixed Income
20.typolink.ATagParams = id="nav-fixed-income"
// Asset allocation nav item
30 < .10
30.typolink.parameter = 45
30.value = Asset Allocation
30.typolink.ATagParams = id="nav-asset-allocation"
// Alternatives nav item
40 < .10
40.typolink.parameter = 46
40.value = Alternatives
40.typolink.ATagParams = id="nav-alternatives"
// Market Insights nav item
50 < .10
50.typolink.parameter = 47
50.value = Market Insights
50.typolink.ATagParams = id="nav-market-insights"
// Investment Approach nav item
60 < .10
60.typolink.parameter = 48
60.value = Investment Approach
60.typolink.ATagParams = id="nav-investment-approach"
// About Us nav item
70 < .10
70.typolink.parameter = 49
70.value = About Us
70.typolink.ATagParams = id="nav-about-us"
}
//page.99 = TEXT
//page.99 {
// value (
// <div id="overlay-bg"></div>
// )
//}
//page.100 = FILE
//page.100.file = fileadmin/templates/pyramis_public/static_html/static_global_home.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment