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.
Powerful Google developer tools for immediate impact! (2023-24 C)
Alfresco - Building a Really Simple Wiki
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.
3.
4.
5.
6.
7.
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("@sys:node-dbid" + wikiId) var pageName = args["p"]; if (pageName == null || pageName == "") { pageName = "home"; } // 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 = "This page has not yet been edited. Please click on the 'Edit' link to modify." pageNode.save(); } // Translate WikiLinks var WIKI_LINK = /([^]*)(([^]+))?/g; var content = (pageNode.content + "").replace(WIKI_LINK, "<a href=amp;quot;" + url.service +"?p=$1amp;quot;>$1</a>"); model.wikiId = wikiId + ""; model.pageNode = pageNode; model.pageName = pageNode.name; model.content = content; See the recorded webinar here: http:// tinyurl .com/ simplewiki
10.
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