btype => $fdat{subtype} || 'terminal', subtypes => { terminal => {position => 1, title => 'Description', exec => "8terminal.epl",tooltip => "DesktopTrader Terminal" }, manual => {position => 2, title => 'Manual', exec => "/www/components/editorial/article.epl", params => {section_id => '26248', nodate => '1', uriprefix => '/desktoptrader/?type=terminal&subtype=manual'}, tooltip => "An introduction to the Terminal" }, help => {position => 3, title => 'FAQ', exec => "/www/components/editorial/faq.epl", params => {section_id => '24938', nodate => '1'}, tooltip => "Commonly asked questions about the Terminal" }, } }; my $subconfig = { subtype => $fdat{subtype} || 'pre_sub', subtypes => { pre_sub => {position => 1, title => 'Info', exec => "presub.epl", params => {}, tooltip => "blah" }, tscs => {position => 2, title => 'Terms & Conditions', exec => '/www/components/legal/terms_and_conditions.epl', tooltip => "Terms and Conditions" }, subscribe => {position => 3, title => 'Subscribe now', exec => "/www/common/docs/desktoptrader/it.epl", tooltip => "Subscribe to desktoptrader now", auth_required => 1, url => '/reg/desktoptrader/?type=subscribe&subtype=subscribe', params => {uriprefix => '/desktoptrader/?type=subscribe&subtype=subscribe', subscriber => 'R'} }, } }; $config = { docroot => '/www/common/docs/desktoptrader', header => {params => {server_name => $ENV{III_HOST}, section => 'products', advert => 'subscription', sitepage => 'iii.co.uk/investing/portfolio/desktoptrader', centre => 'portfolio', no_cache => $no_cache} }, title => 'DesktopTrader', types => { help => { position => ++$p, title => 'Portfolio Help', url => '/wealth/?type=help', }, prices => { position => ++$p, title => 'Share Prices', url => '/quotes/', }, desktoptrader => { position => ++$p, title => 'Desktop Trader', exec => 'home.epl', }, analystportfolio => { position => ++$p, title => 'Analyst Portfolio', url => '/wealth/?type=analystportfolio', }, home => {no_show => 't', exec => 'home.epl'}, tour => {no_show => 't', position => ++$p, title => 'Take our Tour', exec => '1portfolio.epl'}, terminal => {no_show => 't', position => ++$p, title => 'The Terminal', params => {uriprefix => '/profile/index.epl?type=discussion'}, exec => '8terminal.epl', subconfig => $terminal_subconfig }, streaming => {no_show => 't', position => ++$p, title => 'Streaming FAQ', exec => '/www/components/editorial/contents_and_article.epl', params => {section_id => '26427'}}, test => {no_show => 't', position => ++$p, title => 'Diagnostics', exec => '/www/components/util/testliveconnect.epl'}, subscribe => {no_show => 't', position => ++$p,title => 'Subscribe', exec => 'presub.epl', subconfig => $subconfig}, editorial => {no_show => 't', exec => '/www/components/editorial/contents_and_article.epl', params => {}}, '1portfolio' => {no_show => 't', exec => '1portfolio.epl'}, '2trades' => {no_show => 't', exec => '2trades.epl'}, '3news' => {no_show => 't', exec => '3news.epl'}, '4announce' => {no_show => 't', exec => '4announce.epl'}, '5broker' => {no_show => 't', exec => '5broker.epl'}, '6fundamental' => {no_show => 't', exec => '6fundamental.epl'}, '7charting' => {no_show => 't', exec => '7charting.epl'}, '8terminal' => {no_show => 't', exec => '8terminal.epl'}, } }; use III::Centre::Log; $blah = III::Centre::Log->new('desktoptrader',\%fdat,$config,$params); $blah->log(); Execute ('/www/components/layout/iiicentre.epl',$config); -]