For more details, see [$page set title]
" + append text "\nFor more details, see $link\n" + + set state [expr {[$page set last_modified] eq [$page set creation_date] ? "New" : "Updated"}] + + notification::new \ + -type_id [notification::type::get_type_id -short_name xowiki_notif] \ + -object_id [$page set package_id] \ + -response_id [$page set revision_id] \ + -notif_subject "[$page set title] ($state)" \ + -notif_text $text \ + -notif_html $html \ + -notif_user [$page set creation_user] + } + + + ad_proc -private process_reply { reply_id} { + handles a reply to an xowiki notif + + @author Deds Castillo (deds@i-manila.com.ph) + @creation-date 2006-06-08 + + } { + # DEDS: need to decide on what to do with this + # do we publish it as comment? + # for now, drop it + return "f" + } +} Index: openacs-4/packages/xowiki/tcl/package-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/package-procs.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/xowiki/tcl/package-procs.tcl 6 Aug 2006 19:57:09 -0000 1.4 +++ openacs-4/packages/xowiki/tcl/package-procs.tcl 9 Aug 2006 00:37:52 -0000 1.5 @@ -5,11 +5,12 @@ #Package instproc create {name args} {if {![my isobject $name]} {next}} Package proc process_query {{-defaults ""}} { - my instvar queryparm formvars - if {![info exists query]} {set query [ns_conn query]} + my instvar queryparm form_parameter array unset queryparm array unset form_parameter array set queryparm $defaults + + set query [ns_conn query] foreach querypart [split $query &] { set att_val [split $querypart =] if {[llength $att_val] == 1} { @@ -22,16 +23,22 @@ foreach key [array names queryparm] {uplevel [list set $key $queryparm($key)]} } - Package proc instantiate_from_page {{-revision_id 0} {-item_id 0}} { + Package proc instantiate_page_from_id {{-revision_id 0} {-item_id 0}} { set page [::Generic::CrItem instantiate -item_id $item_id -revision_id $revision_id] set folder_id [$page set parent_id] set package_id [db_string get_pid "select package_id from cr_folders where folder_id = $folder_id"] $page set package_id $package_id - [self] create ::$package_id -folder_id $folder_id -use_ns_conn false + my create ::$package_id -folder_id $folder_id -use_ns_conn false ::$package_id set_url -url [Page pretty_link -package_id $package_id [$page name]] return $page } + Package proc get_url_from_id {{-item_id 0} {-revision_id 0}} { + set page [::xowiki::Package instantiate_page_from_id -item_id $item_id -revision_id $revision_id] + $page volatile + return [::[$page package_id] url] + } + Package instproc init args { my instvar id set id [namespace tail [self]] @@ -93,10 +100,11 @@ # create from default page set fn [get_server_root]/packages/xowiki/www/default-pages/$object.page my log "--sourcing page definition /packages/xowiki/www/default-pages/$object" - set F [open $fn]; set source [read $F]; close $F - set page [::xowiki::Page new -volatile -name $standard_page \ - -title $object -parent_id $folder_id -package_id $id \ - -text [list [string map [list >> ">>" << "<<"] $source] text/html]] + set page [source $fn] + $page configure -volatile -name $standard_page \ + -title $object -parent_id $folder_id -package_id $id \ + -text [list [string map [list >> "\n-This is the default start page of XoWiki. You can edit this page and save it to provide a personalized look of the XoWiki instance. You can as well provide a different index page through configuration. For more details, consult the [[http://media.wu-wien.ac.at/download/xowiki-doc/|XoWiki documentation]]. +This is the default start page of XoWiki. You can edit this page and save it to provide a personalized look of the XoWiki instance. You can as well provide a different index page through configuration. +You can also view the contents of the Wiki in a weblog style. +For more details, consult the [[http://media.wu-wien.ac.at/download/xowiki-doc/|XoWiki documentation]].
>>left-col<< {{adp portlets/recent {name {Recently Changed Pages} max_entries 25} }} @@ -10,6 +14,8 @@ {{adp portlets/most-popular {name {Most Popular} max_entries 10 }}} >><< +} + Index: openacs-4/packages/xowiki/www/default-pages/weblog.page =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/default-pages/Attic/weblog.page,v diff -u -r1.1 -r1.2 --- openacs-4/packages/xowiki/www/default-pages/weblog.page 6 Aug 2006 19:57:09 -0000 1.1 +++ openacs-4/packages/xowiki/www/default-pages/weblog.page 9 Aug 2006 00:37:53 -0000 1.2 @@ -1,3 +1,4 @@ +::xowiki::Page new -title "Index Page" -text { >>content<< {{adp portlets/weblog {name Weblog}}} >><< @@ -7,7 +8,7 @@ {{adp portlets/tags {skin plain-include popular 1 limit 30}}} {{adp portlets/categories {count 1 skin plain-include}}} >><< +} - Index: openacs-4/packages/xowiki/www/resources/xowiki.css =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/xowiki.css,v diff -u -r1.2 -r1.3 --- openacs-4/packages/xowiki/www/resources/xowiki.css 6 Aug 2006 19:57:09 -0000 1.2 +++ openacs-4/packages/xowiki/www/resources/xowiki.css 9 Aug 2006 00:37:53 -0000 1.3 @@ -6,6 +6,7 @@ #wikicmds {position: relative; top: -24px; right: 0px; height: 0px; text-align: right; font-family: sans-serif; font-size: 85%;color: #7A7A78;} #portal #wikicmds {top: -90px} +#page-body #wikicmds {top: -30px} #wikicmds a, #wikicmds a:visited { color: #7A7A78; text-decoration: none;} #wikicmds a:hover {text-decoration: underline;} #wikicmds a:active {color: rgb(255,153,51);}