SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Programmable Page & Content Layouts
Existing Functionality in Site Manager 7.3
            • Page Layouts (Styles) & Content Layouts
              (Template Formatters)
               • Made up of HTML with T4 Tags in them
               • On preview / publish, T4 Tags are parsed and
                  Brokers, written in Java are called to process
                  them




Programmable Layouts                                               2
Shortcomings of placeholders
            • Using token replacement is restrictive
               • No if / then / else logic
            Programmable Layouts
            • Can be applied to Page and Content Layouts
            • Initially implemented Javascript (Rhino)
               • Scope to extend to other scripting languages
            • Allow Layouts to be programmed
               • Turing Complete



Programmable Layouts                                            3
Programmable Layouts
            • All functionality in current Layouts available in
              Programmable Layouts

            document.write (BrokerUtils.processT4Tags (oStmt, oCache, oSection,
            oContent, sLang, fPreview, sTextToParse));


            • Process T4 Tags within the provided page and
              output the result to the current page
            • Using document.write writes text to the
              current page


Programmable Layouts                                                              4
Programmable Layouts
            • Simple if / then / else logic
            if (BrokerUtils.isFullTextPage (oCache)) {
                document.write ('<p>This is a full text page</p>');
            }
            if (sLang === 'es') {
                document.write ('<p>We're on the Spanish page.</p>');
            }
            else {
                document.write ('<p>We're NOT on the Spanish page.</p>');
            }


Programmable Layouts                                                         5
Sample Footer   6
Programmable Layouts
            • More Complex functionality possible
               • Prototype queries an external database &
                 outputs the results in a HTML table within the
                 published page
               • This has been done with less than 100 lines of
                 code within the Layout




Programmable Layouts                                              7
Benefits of Programmable Layouts
            • Applicable to Page and Content Layouts
            • Makes it simple to create complex pages
            • Hugely powerful
               • Provide simple if / then / else logic
               • Access to entire TERMINALFOUR API
               • Can access external database
               • Can read external web services




Programmable Layouts                                     8
• Will be available in Beta form in Site Manager
              7.4
            • Can be enabled on a per-Layout basis to ensure
              backwards-compatibility and performance
            • Security…




Programmable Layouts                                           9

Weitere ähnliche Inhalte

Andere mochten auch

TERMINALFOUR t44u 2008 - Piero Tintori - Integration Publishing To Share Poin...
TERMINALFOUR t44u 2008 - Piero Tintori - Integration Publishing To Share Poin...TERMINALFOUR t44u 2008 - Piero Tintori - Integration Publishing To Share Poin...
TERMINALFOUR t44u 2008 - Piero Tintori - Integration Publishing To Share Poin...
Terminalfour
 
World blood donor day 2014
World blood donor day 2014World blood donor day 2014
World blood donor day 2014
Rory Mulligan
 
TERMINALFOUR t44u 2008 - Using TERMINALFOUR Site Manager In A Web 2.0 World
TERMINALFOUR t44u 2008 - Using TERMINALFOUR Site Manager In A Web 2.0 WorldTERMINALFOUR t44u 2008 - Using TERMINALFOUR Site Manager In A Web 2.0 World
TERMINALFOUR t44u 2008 - Using TERMINALFOUR Site Manager In A Web 2.0 World
Terminalfour
 
Ste Presentation To Crawley Manor Royal Ind Estate
Ste Presentation To Crawley Manor Royal Ind EstateSte Presentation To Crawley Manor Royal Ind Estate
Ste Presentation To Crawley Manor Royal Ind Estate
guest746615
 
TERMINALFOUR t44u 2008 - The University Of Manchester Case Study
TERMINALFOUR t44u 2008 - The University Of Manchester Case StudyTERMINALFOUR t44u 2008 - The University Of Manchester Case Study
TERMINALFOUR t44u 2008 - The University Of Manchester Case Study
Terminalfour
 
TERMINALFOUR t44u 2011 - Did you know - Multiple media formatters
TERMINALFOUR t44u 2011 - Did you know - Multiple media formattersTERMINALFOUR t44u 2011 - Did you know - Multiple media formatters
TERMINALFOUR t44u 2011 - Did you know - Multiple media formatters
Terminalfour
 
Ficha 2º eso 2011 12
Ficha 2º eso 2011 12Ficha 2º eso 2011 12
Ficha 2º eso 2011 12
IES Heliche
 
TERMINALFOUR t44u 2009 - UI and Widgets New UI & Widgets
TERMINALFOUR t44u 2009 - UI and Widgets New UI & WidgetsTERMINALFOUR t44u 2009 - UI and Widgets New UI & Widgets
TERMINALFOUR t44u 2009 - UI and Widgets New UI & Widgets
Terminalfour
 
TERMINALFOUR t44u 2008 - Laura Murphy & Dorte Eriksen - CS Update
TERMINALFOUR t44u 2008 - Laura Murphy & Dorte Eriksen - CS UpdateTERMINALFOUR t44u 2008 - Laura Murphy & Dorte Eriksen - CS Update
TERMINALFOUR t44u 2008 - Laura Murphy & Dorte Eriksen - CS Update
Terminalfour
 
TERMINALFOUR t44u 2010 - CMS Roadmap November2010
TERMINALFOUR t44u 2010 - CMS Roadmap November2010TERMINALFOUR t44u 2010 - CMS Roadmap November2010
TERMINALFOUR t44u 2010 - CMS Roadmap November2010
Terminalfour
 
Childrens Letters God
Childrens Letters GodChildrens Letters God
Childrens Letters God
Russell Gray
 
TERMINALFOUR t44u 2011 - Going mobile, a INTO Case Study
TERMINALFOUR t44u 2011 - Going mobile, a INTO Case StudyTERMINALFOUR t44u 2011 - Going mobile, a INTO Case Study
TERMINALFOUR t44u 2011 - Going mobile, a INTO Case Study
Terminalfour
 
TERMINALFOUR t44u 2011 - Did you know - Advanced access control and htaccess
TERMINALFOUR t44u 2011 - Did you know - Advanced access control and htaccessTERMINALFOUR t44u 2011 - Did you know - Advanced access control and htaccess
TERMINALFOUR t44u 2011 - Did you know - Advanced access control and htaccess
Terminalfour
 
TERMINALFOUR t44u 2009 - University of York Case Study
TERMINALFOUR t44u 2009 - University of York Case StudyTERMINALFOUR t44u 2009 - University of York Case Study
TERMINALFOUR t44u 2009 - University of York Case Study
Terminalfour
 

Andere mochten auch (19)

TERMINALFOUR t44u 2008 - Piero Tintori - Integration Publishing To Share Poin...
TERMINALFOUR t44u 2008 - Piero Tintori - Integration Publishing To Share Poin...TERMINALFOUR t44u 2008 - Piero Tintori - Integration Publishing To Share Poin...
TERMINALFOUR t44u 2008 - Piero Tintori - Integration Publishing To Share Poin...
 
World blood donor day 2014
World blood donor day 2014World blood donor day 2014
World blood donor day 2014
 
GROUBS
GROUBSGROUBS
GROUBS
 
ZamCamp #4 - Gry MMORPG
ZamCamp #4 - Gry MMORPGZamCamp #4 - Gry MMORPG
ZamCamp #4 - Gry MMORPG
 
TERMINALFOUR t44u 2008 - Using TERMINALFOUR Site Manager In A Web 2.0 World
TERMINALFOUR t44u 2008 - Using TERMINALFOUR Site Manager In A Web 2.0 WorldTERMINALFOUR t44u 2008 - Using TERMINALFOUR Site Manager In A Web 2.0 World
TERMINALFOUR t44u 2008 - Using TERMINALFOUR Site Manager In A Web 2.0 World
 
Ste Presentation To Crawley Manor Royal Ind Estate
Ste Presentation To Crawley Manor Royal Ind EstateSte Presentation To Crawley Manor Royal Ind Estate
Ste Presentation To Crawley Manor Royal Ind Estate
 
TERMINALFOUR t44u 2008 - The University Of Manchester Case Study
TERMINALFOUR t44u 2008 - The University Of Manchester Case StudyTERMINALFOUR t44u 2008 - The University Of Manchester Case Study
TERMINALFOUR t44u 2008 - The University Of Manchester Case Study
 
TERMINALFOUR t44u 2011 - Did you know - Multiple media formatters
TERMINALFOUR t44u 2011 - Did you know - Multiple media formattersTERMINALFOUR t44u 2011 - Did you know - Multiple media formatters
TERMINALFOUR t44u 2011 - Did you know - Multiple media formatters
 
Ficha 2º eso 2011 12
Ficha 2º eso 2011 12Ficha 2º eso 2011 12
Ficha 2º eso 2011 12
 
TERMINALFOUR t44u 2009 - UI and Widgets New UI & Widgets
TERMINALFOUR t44u 2009 - UI and Widgets New UI & WidgetsTERMINALFOUR t44u 2009 - UI and Widgets New UI & Widgets
TERMINALFOUR t44u 2009 - UI and Widgets New UI & Widgets
 
TERMINALFOUR t44u 2008 - Laura Murphy & Dorte Eriksen - CS Update
TERMINALFOUR t44u 2008 - Laura Murphy & Dorte Eriksen - CS UpdateTERMINALFOUR t44u 2008 - Laura Murphy & Dorte Eriksen - CS Update
TERMINALFOUR t44u 2008 - Laura Murphy & Dorte Eriksen - CS Update
 
TERMINALFOUR t44u 2010 - CMS Roadmap November2010
TERMINALFOUR t44u 2010 - CMS Roadmap November2010TERMINALFOUR t44u 2010 - CMS Roadmap November2010
TERMINALFOUR t44u 2010 - CMS Roadmap November2010
 
Piel De Toro
Piel De ToroPiel De Toro
Piel De Toro
 
Childrens Letters God
Childrens Letters GodChildrens Letters God
Childrens Letters God
 
TERMINALFOUR t44u 2011 - Going mobile, a INTO Case Study
TERMINALFOUR t44u 2011 - Going mobile, a INTO Case StudyTERMINALFOUR t44u 2011 - Going mobile, a INTO Case Study
TERMINALFOUR t44u 2011 - Going mobile, a INTO Case Study
 
TERMINALFOUR t44u 2011 - Did you know - Advanced access control and htaccess
TERMINALFOUR t44u 2011 - Did you know - Advanced access control and htaccessTERMINALFOUR t44u 2011 - Did you know - Advanced access control and htaccess
TERMINALFOUR t44u 2011 - Did you know - Advanced access control and htaccess
 
TERMINALFOUR t44u 2009 - University of York Case Study
TERMINALFOUR t44u 2009 - University of York Case StudyTERMINALFOUR t44u 2009 - University of York Case Study
TERMINALFOUR t44u 2009 - University of York Case Study
 
STARAwards K12 Intro
STARAwards K12 IntroSTARAwards K12 Intro
STARAwards K12 Intro
 
Ekooli juhend
Ekooli juhendEkooli juhend
Ekooli juhend
 

Mehr von Terminalfour

Mehr von Terminalfour (20)

Selecting a Digital Agency for Web Redesign - Top Tips
Selecting a Digital Agency for Web Redesign - Top Tips Selecting a Digital Agency for Web Redesign - Top Tips
Selecting a Digital Agency for Web Redesign - Top Tips
 
Let's get personal... Website personalisation and content targeting technique...
Let's get personal... Website personalisation and content targeting technique...Let's get personal... Website personalisation and content targeting technique...
Let's get personal... Website personalisation and content targeting technique...
 
Imperial College London: Creating and managing a flexible site for 1,000 editors
Imperial College London: Creating and managing a flexible site for 1,000 editorsImperial College London: Creating and managing a flexible site for 1,000 editors
Imperial College London: Creating and managing a flexible site for 1,000 editors
 
Roundhouse Digital: Responsive Sites- Not just looking good on a mobile
Roundhouse Digital: Responsive Sites- Not just looking good on a mobileRoundhouse Digital: Responsive Sites- Not just looking good on a mobile
Roundhouse Digital: Responsive Sites- Not just looking good on a mobile
 
T44u 2015, learning and development
T44u 2015, learning and developmentT44u 2015, learning and development
T44u 2015, learning and development
 
T44u 2015, imperial college
T44u 2015, imperial collegeT44u 2015, imperial college
T44u 2015, imperial college
 
T44u 2015, web development best practice
T44u 2015, web development best practiceT44u 2015, web development best practice
T44u 2015, web development best practice
 
T44u 2015, upgrading to 8
T44u 2015, upgrading to 8T44u 2015, upgrading to 8
T44u 2015, upgrading to 8
 
T44u 2015, improving campaign performance
T44u 2015, improving campaign performanceT44u 2015, improving campaign performance
T44u 2015, improving campaign performance
 
T44u 2015, marketing analytics data driven decision making
T44u 2015, marketing analytics   data driven decision makingT44u 2015, marketing analytics   data driven decision making
T44u 2015, marketing analytics data driven decision making
 
T44u 2015, content migration
T44u 2015, content migrationT44u 2015, content migration
T44u 2015, content migration
 
T44u 2015, sample data
T44u 2015, sample dataT44u 2015, sample data
T44u 2015, sample data
 
Transforming your team & your tools to own the web: Connecticut College
Transforming your team & your tools to own the web: Connecticut College Transforming your team & your tools to own the web: Connecticut College
Transforming your team & your tools to own the web: Connecticut College
 
University of Liverpool: TERMINALFOUR & App Development- Making the Most of y...
University of Liverpool: TERMINALFOUR & App Development- Making the Most of y...University of Liverpool: TERMINALFOUR & App Development- Making the Most of y...
University of Liverpool: TERMINALFOUR & App Development- Making the Most of y...
 
Personalised Portals: The Path to Student Engagement: EVMS- t44u 2014
Personalised Portals: The Path to Student Engagement: EVMS- t44u 2014 Personalised Portals: The Path to Student Engagement: EVMS- t44u 2014
Personalised Portals: The Path to Student Engagement: EVMS- t44u 2014
 
Social media: Connecting their networks with your website-mStoner: t44u
Social media: Connecting their networks with your website-mStoner: t44uSocial media: Connecting their networks with your website-mStoner: t44u
Social media: Connecting their networks with your website-mStoner: t44u
 
Newcastle University: Content migration made easy
Newcastle University: Content migration made easyNewcastle University: Content migration made easy
Newcastle University: Content migration made easy
 
Collaborative Working: University of Sunderland & Roundhouse Digital
Collaborative Working: University of Sunderland & Roundhouse Digital Collaborative Working: University of Sunderland & Roundhouse Digital
Collaborative Working: University of Sunderland & Roundhouse Digital
 
Building a research portal: Vidatum & NUIG - t44u - TERMINALFOUR
Building a research portal: Vidatum & NUIG - t44u - TERMINALFOURBuilding a research portal: Vidatum & NUIG - t44u - TERMINALFOUR
Building a research portal: Vidatum & NUIG - t44u - TERMINALFOUR
 
Responsive Retrofit-EVMS: tForum TERMINALFOUR 2014
Responsive Retrofit-EVMS: tForum TERMINALFOUR 2014Responsive Retrofit-EVMS: tForum TERMINALFOUR 2014
Responsive Retrofit-EVMS: tForum TERMINALFOUR 2014
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

TERMINALFOUR t44u 2012 - Programmable layouts

  • 1. Programmable Page & Content Layouts
  • 2. Existing Functionality in Site Manager 7.3 • Page Layouts (Styles) & Content Layouts (Template Formatters) • Made up of HTML with T4 Tags in them • On preview / publish, T4 Tags are parsed and Brokers, written in Java are called to process them Programmable Layouts 2
  • 3. Shortcomings of placeholders • Using token replacement is restrictive • No if / then / else logic Programmable Layouts • Can be applied to Page and Content Layouts • Initially implemented Javascript (Rhino) • Scope to extend to other scripting languages • Allow Layouts to be programmed • Turing Complete Programmable Layouts 3
  • 4. Programmable Layouts • All functionality in current Layouts available in Programmable Layouts document.write (BrokerUtils.processT4Tags (oStmt, oCache, oSection, oContent, sLang, fPreview, sTextToParse)); • Process T4 Tags within the provided page and output the result to the current page • Using document.write writes text to the current page Programmable Layouts 4
  • 5. Programmable Layouts • Simple if / then / else logic if (BrokerUtils.isFullTextPage (oCache)) { document.write ('<p>This is a full text page</p>'); } if (sLang === 'es') { document.write ('<p>We're on the Spanish page.</p>'); } else { document.write ('<p>We're NOT on the Spanish page.</p>'); } Programmable Layouts 5
  • 7. Programmable Layouts • More Complex functionality possible • Prototype queries an external database & outputs the results in a HTML table within the published page • This has been done with less than 100 lines of code within the Layout Programmable Layouts 7
  • 8. Benefits of Programmable Layouts • Applicable to Page and Content Layouts • Makes it simple to create complex pages • Hugely powerful • Provide simple if / then / else logic • Access to entire TERMINALFOUR API • Can access external database • Can read external web services Programmable Layouts 8
  • 9. • Will be available in Beta form in Site Manager 7.4 • Can be enabled on a per-Layout basis to ensure backwards-compatibility and performance • Security… Programmable Layouts 9