Your SlideShare is downloading. ×
0
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Alfresco - Building a Really Simple Wiki
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Alfresco - Building a Really Simple Wiki

13,028

Published on

http://tinyurl.com/5exxyo <-- View recorded webinar …

http://tinyurl.com/5exxyo <-- View recorded webinar
Web Scripts provide a simple means of extending Alfresco\'s functionality. Learn how to apply them to create a simple, bare-bones wiki that can be expanded as the need arises.

This session applies to anyone interested in learning more about Web Scripting and covers:

* Developing Web Scripts
* Creating a simple wiki UI.
* Exposing to the Alfresco UI.

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

No Downloads
Views
Total Views
13,028
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
478
Comments
0
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Transcript

    • 1. Built in 60: Build a Simple Wiki with Web Scripts Luis Sala Senior Director of Solutions Engineering www.alfresco.com See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 2. Introduction
      • Luis Sala, Senior Director of Solutions Engineering http:// blogs .alfresco.com/ luissala
      • Former Chief Solutions Architect at Epicentric and Principal SE at Vignette
      See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 3. Agenda
      • Web Script Overview
      • Web Script-based Wiki
      • Other Wiki Options
      • Quick Demonstration
      • Q & A
      See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 4. What are Web Scripts? Web Scripting
      • Agile Script-Driven MVC
      • Multiple uses
        • Roll your own API
        • Create new UI components
        • Create portlets/widgets
        • Expose WCM/AVM features
      • Script-based implementation
        • Server-side JavaScript
        • Freemarker
      • Limited only by your imagination
        • Integration: Create a mashup
        • Search: Exposed to other systems.
        • Rich Internet Applications
        • Cross-language
        • Cross-platform
      JavaScript (Controller) Freemarker (View) Alfresco Repository (Model) See the recorded webinar here: http:// tinyurl .com/ simplewiki Consumer / Client
    • 5. Components of a Web Script
      • XML Descriptor
        • URI Templates
        • Authentication Requirements
        • Transactional Requirements
      • One or more server-side JavaScript files (Controller)
        • One for each HTTP method (GET, PUT, POST, etc.)
      • One or more Freemarker templates (View)
        • One for each HTTP method and desired output type (HTML, XML, JSON, etc.)
      See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 6. Two types of Web Scripts…
      • Data Web Script
        • RESTstyle / RESTful URL
        • Returns structured data:
          • XML
          • JSON
          • CSV
      • UI Web Script
        • Renders self-contained UI.
        • Can leverage Data Web Scripts.
      See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 7. Web Scripts as Gadgets
      • Virtually any Web Script can be a gadget by using its URL.
      • http:// HOST : PORT /alfresco/wcs/ SCRIPT
      • Developers have many choices:
        • HTML
        • AJAX
        • JavaScript
        • JSON
        • Any combination of the above.
      JavaScript (Controller) Freemarker (View) Alfresco Repository (Model) iGoogle HTML AJAX JSON See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 8. wiki.get.js (part 1) // Extract the Wiki Space DBID from PATH // Eg. http://localhost/alfresco/s/wiki/ 1234 var wikiId = parseInt(url.extension); var nodes = search.luceneSearch(&quot;@sysnode-dbid:&quot; + wikiId) var pageName = args[&quot;p&quot;]; if (pageName == null || pageName == &quot;&quot;) { pageName = &quot;home&quot;; } // end if var pageNode = wikiSpace.childByNamePath(pageName); See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 9. wiki.get.js (part 2) // Get the designated page or home page. if (pageNode == null) { pageNode = wikiSpace.createFile(pageName); pageNode.content = &quot;This page has not yet been edited. Please click on the 'Edit' link to modify.&quot; pageNode.save(); } // Translate WikiLinks var WIKI_LINK = /[[([^|]]*)(|([^]]+))?]]/g; var content = (pageNode.content + &quot;&quot;).replace(WIKI_LINK, &quot;<a href=&quot;&quot; + url.service +&quot;?p=$1&quot;>$1</a>&quot;); model.wikiId = wikiId + &quot;&quot;; model.pageNode = pageNode; model.pageName = pageNode.name; model.content = content; See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 10. Other Wiki Alternatives
      • MediaWiki Integration
      • Available since Alfresco 2.1
      • Alfresco Extension for MediaWiki stores content into Alfresco
      • Coming in 3.0: MediaWiki inside Alfresco (Quercus)
      See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 11. Wiki Article – MediaWiki Preview See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 12. Wiki Article – MediaWiki Edit See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 13. Wiki Content stored in Wiki Spaces See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 14. Repository with Wiki content and images See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 15. Wiki Article Details Page (with Template) See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 16. Versioning and Workflow See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 17. Edit Content See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 18.
      • DEMO
      See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 19. Q&A and Resources 03.04.08 Q&A and Resources
      • Any Questions?
      • Resources:
        • wiki .alfresco.com/ wiki /Web_Scripts
        • wiki .alfresco.com/ wiki /JavaScript_API
      • Join the Content Community
        • alfresco.com
      • Participate in the Developer Challenge
        • alfresco.com/partners/ programme / webscripts /
      • Join the Alfresco Facebook Group
        • facebook .com/group. php ? gid =6063383762
      See the recorded webinar here: http:// tinyurl .com/ simplewiki
    • 20. View the recorded webinar
      • See the recorded webinar here:
      • http:// tinyurl .com/ simplewiki
    • 21. Shapes & Colors Normal Text
      • Bullet
        • Sub-Bullet
      Normal Text Normal Text

    ×