TERMINALFOUR t44u 2009 - Data objects, Web object & External Sources

356 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
356
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • 11/11/09 11/11/09
  • 11/11/09
  • 01/12/11
  • 01/12/11
  • 01/12/11
  • 11/11/09
  • 11/11/09
  • 11/11/09
  • 11/11/09
  • 11/11/09
  • 11/11/09
  • 11/11/09
  • 11/11/09
  • 11/11/09
  • 11/11/09
  • 11/11/09
  • 11/11/09
  • 11/11/09
  • 11/11/09
  • 01/12/11
  • TERMINALFOUR t44u 2009 - Data objects, Web object & External Sources

    1. 1. Authors: Barry Crocock Janet Copeland Raewyn McKenna External Data Sources, Web Objects, Data Objects t44u User & Partner Conference 2009
    2. 2. External Data Sources <ul><li>What are External Sources? </li></ul><ul><ul><li>External Data Sources </li></ul></ul><ul><ul><ul><li>SharePoint </li></ul></ul></ul><ul><ul><ul><li>Alfresco </li></ul></ul></ul><ul><ul><li>Data Objects </li></ul></ul><ul><ul><ul><li>Database sources </li></ul></ul></ul><ul><ul><li>Web Objects </li></ul></ul><ul><ul><ul><li>URLs </li></ul></ul></ul><ul><li>Why use External Sources? </li></ul><ul><ul><li>Add External Content to Site Manager </li></ul></ul>t44u User & Partner Conference 2009
    3. 3. External Data Sources <ul><li>External Data Sources </li></ul><ul><ul><li>SharePoint </li></ul></ul><ul><ul><li>Alfresco </li></ul></ul><ul><li>For use in the Media Library </li></ul>t44u User & Partner Conference 2009
    4. 4. External Data Sources <ul><li>Video Demonstration </li></ul>t44u User & Partner Conference 2009
    5. 5. Video t44u User & Partner Conference 2009
    6. 6. Web Object Broker <ul><li>Available since version 6.1 Site Manager. </li></ul><ul><li>Can be configured to follow links on the target URL to import more than one page. </li></ul><ul><li>On publish – content pulled in from http/https location and imbedded within the published HTML. </li></ul>t44u User & Partner Conference 2009
    7. 7. Configure Web Object <ul><li>Web Object tag is added to template formatting. </li></ul><ul><li>Content is added to the site using this template. </li></ul><ul><li><t4 type=&quot;web-obj&quot; method =&quot;http&quot; start-url =&quot;https://my.othersite.com/here/PEOPLE_SHOW.SHOW_PEOPLE?email=$template.staffemail$&quot; link-match =&quot;PEOPLE_SHOW.SHOW&quot; link-match-import-method =&quot;subsection&quot; parse-body =&quot;true&quot; /> </li></ul>t44u User & Partner Conference 2009
    8. 8. Web Object Attribute Values <ul><li>method: Value is set to http </li></ul><ul><li>start-url: Target URL. ‘$’ signs signify a template element. </li></ul><ul><li>link-match: If set specifies links to follow and import on from target page. Not required? Set to ‘no-link-match’. </li></ul><ul><li>link-match-import-method: Tells web object to hold link content in subdirectories. </li></ul><ul><li>parse-body: True (Reads in content between body tags) or False (Reads entire page in). </li></ul>t44u User & Partner Conference 2009
    9. 9. Web Object Example <ul><li>Implement Web Object Example </li></ul>t44u User & Partner Conference 2009
    10. 10. Data Object Broker <ul><li>Available since version 6.2 Site Manager. </li></ul><ul><li>Can be used to retrieve specific data from an external database or an RSS feed. </li></ul><ul><li>On publish – data is pulled in from specified source and imbedded within the published HTML. </li></ul>t44u User & Partner Conference 2009
    11. 11. Configure Data Object for External Database <ul><li>Data Object tag is added to template formatting. </li></ul><ul><li>Content is added to the site using this template. </li></ul><ul><li><t4 type=&quot;data-obj&quot; method =&quot;jdbc&quot; driver =&quot;com.mysql.jdbc.Driver&quot; db-url =&quot;jdbc:mysql://localhost/external_db&quot; username =&quot;dbusername&quot; table-name =&quot;company,countries&quot; column-names =&quot;company.id, company.name, price, email_address, department, telephone, countries.name&quot; where =&quot;where price = $template.price$ and countries.id = company.country&quot; formatter =&quot;text/output&quot; /> </li></ul>t44u User & Partner Conference 2009
    12. 12. Data Object Attribute Values <ul><li>method: Set to ‘jdbc’ for external database connection. </li></ul><ul><li>driver: JDBC driver to be used for connection to the external database. </li></ul><ul><li>db-url: Connection URL to the external database. </li></ul><ul><li>username: Username for external database. (Password is set in Data Object Handler) </li></ul><ul><li>table-name: Database table name to pull data from. Can be comma separated list of table names. </li></ul>t44u User & Partner Conference 2009
    13. 13. Data Object Attribute Values <ul><li>column-names: Column names required from above table(s). Multiple tables? Column names should have table name prefixed. </li></ul><ul><li>where: (optional) Required if conditional statement is needed to filter data. ‘$’ signs signify a template element. </li></ul><ul><li>formatter: Formatter to use to style the data on publish. </li></ul>t44u User & Partner Conference 2009
    14. 14. Data Object Storing Database Password <ul><li>For security password is not configured in the data object tag. </li></ul><ul><li>Configured using Data Object Handler. </li></ul><ul><li>Add new user with username used in data object tag. </li></ul><ul><li>Enter password and id of template data object tag has been added to. </li></ul><ul><li>Password encrypted and stored in Site Manager database. </li></ul>t44u User & Partner Conference 2009
    15. 15. Data Object Creating Output Formatter <ul><li>Formats data results on publish. </li></ul><ul><li>New template format called ‘text/output’. </li></ul><ul><li>Create HTML code to surround the results. </li></ul><ul><li>Call the returned columns individually by putting the column names between ‘$’ signs. </li></ul><ul><li><p>Name: $example.name$ <br />Email: $email_address$ <br />Dept: $department$<br /> Tel: $telephone$ <br /> Price: $price$ <br /> Country: $countries.name$ </p> </li></ul>t44u User & Partner Conference 2009
    16. 16. Configure Data Object for RSS Feed <ul><li>Added to template formatting in the same way as external database example but using different values to configure. </li></ul><ul><li><t4 type=&quot;data-obj&quot; method =&quot;rss&quot; rss-url =&quot;$template.url$&quot; for-each =&quot;item&quot; formatter =&quot;text/output&quot; /> </li></ul>t44u User & Partner Conference 2009
    17. 17. Data Object Attribute Values <ul><li>method: Set to ‘rss’ for RSS feed </li></ul><ul><li>rss-url: URL to be accessed </li></ul><ul><li>for-each: Name of the parent tag for each set of data required. </li></ul><ul><li>formatter: Formatter to use to style the data on publish (Configured the same way as the external database option) </li></ul>t44u User & Partner Conference 2009
    18. 18. Data Object RSS-URL Option <ul><li>The URL can be set in two ways: </li></ul><ul><li>1. Set in the template formatting (Always same RSS feed): </li></ul><ul><li>rss-url=http://www.terminalfour.com/rss/news.xml </li></ul><ul><li>2. Set in a template element called ‘url’ (Can be different for any content added using this template) </li></ul><ul><li>rss-url=&quot;$template.url$&quot; </li></ul>t44u User & Partner Conference 2009
    19. 19. Data Object Example <ul><li>Implement Data Object Example </li></ul>t44u User & Partner Conference 2009
    20. 20. External Data Sources, Web Objects, Data Objects Questions t44u User & Partner Conference 2009

    ×