Re: [xwiki-users] [UX] TipsTricks

2011-07-26 Thread Lockie
This is a snippet that I found very useful for navigational purposes:

Title: Space menu
Level: Intermediate
Target: Developer/User
Since: N/A
Description:
Lists pages in the current space:

{{velocity}}
|=Menu
#set($sql = where doc.parent = '${doc.web}.${doc.name}')
#foreach($item in $xwiki.searchDocuments($sql))
 |[[${item}]]
#end
{{/velocity}}


Regards
Lockie

-
Lockie
--
View this message in context: 
http://xwiki.475771.n2.nabble.com/UX-Tips-Tricks-tp6603500p6617108.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Delete/Edit Button

2011-07-05 Thread Lockie
Hi LaStudent

You could try applying the edit and delete code found in the Event Calendar
application:


#foreach($yourobject in $doc.getObjects(XWiki.YourClass))

#if($hasedit) ( $doc.getURL( $msg.get(edit) , 
$doc.getURL( $msg.get(delete) )

#end


-
Lockie
--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Delete-Edit-Button-tp6546454p6552319.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] New blog posts marked unread or new

2011-05-17 Thread Lockie
Hello

I'm using the blog system on my XWiki intranet as a form of announcements on
the front page, and I would like the new entries in the blog to be more
obvious that they are in fact new and unread by the user on their browser.
So for example they have (unread) or (new) next to the post's title,
which is then removed once the user clicks on the entry to view it's entire
contents.

Is there any functionality like this that I could use? I guess this is more
of a suggestion if there isn't.

Thanks

-

Lockie
--
View this message in context: 
http://xwiki.475771.n2.nabble.com/New-blog-posts-marked-unread-or-new-tp6376438p6376438.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Chat extension

2011-04-14 Thread Lockie

afrey wrote:
 
 Does anyone know if there is any chat extension for the XWiki?
 I took a look at the Skype extension, and what I got from that is that you
 will have to use the Skype account/application to send the messages. 
 I was wondering if there would it be possible to do the chatting directly
 in the XWiki.
 
 Alina.
 
Hi Alina

It would be a good feature to have, and looks like it has already been
proposed 
http://dev.xwiki.org/xwiki/bin/view/GoogleSummerOfCode/AdvancedEmailIntegration
http://dev.xwiki.org/xwiki/bin/view/GoogleSummerOfCode/AdvancedEmailIntegration 

You could try the IRC bot application: 
http://extensions.xwiki.org/xwiki/bin/view/Extension/IRC+Bot+Application
http://extensions.xwiki.org/xwiki/bin/view/Extension/IRC+Bot+Application , 
otherwise I think the only other way would be to embed a chat room/instant
messenger on a page? It'd probably require a bit of Googling around for a
suitable one.

Regards

-

Lockie
--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Chat-extension-tp6269422p6274772.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] stylesheet override

2011-04-07 Thread Lockie
Hi Wojtek

The way I do it is load up the skin's CSS file(default located at C:\Program
Files\XWiki Enterprise\webapps\xwiki\skins\colibri\colibri.css) in Notepad++
and add my changes to the bottom of it, then save it and check how it looks
in the browser. Style Sheet Extensions I only use on individual pages that
need to look different, because having any extension marked as always on
this wiki means it loads every time you load a page which slows load times
in general. 

If you aren't seeing any changes with your extensions, maybe make sure you
refresh the page a few times after you save it. Also using a browser that
supports extensions (like firefox or chrome) and getting the Firebug
extension is extremely helpful for determining what divs you should be
styling.

Hope that helps


wojtek danilo wrote:
 
 Hi!
 I'm trying to override the css of my xwiki.
 I've been reading documents about making styleSheetExtensions (like
 MinimalStyleSheet Extension fro mhere:
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial).
 I have to be doing something wrong because after creation StyleSheet
 extension like in this tutorial and setting use this extension to
 always
 nothing changes.
 
 additional I've seen that in Administration menu - Look  feel -
 presentation I've got button that allow me cutomize current skin. after
 pressing it and sayin that I want to customize it I've got a lot of empty
 boxes (style, header, footer).
 Always when I'm trying to write there anything the whole css crash and the
 site looks ugly.
 
 Please could you write, what is the simplest method to override some
 elements of the css of xwiki?
 
 I will be very thankfull!
 Wojtek
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 


-

Lockie
--
View this message in context: 
http://xwiki.475771.n2.nabble.com/stylesheet-override-tp6251952p6252381.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Calendar lost some functionality in 3.0

2011-04-05 Thread Lockie
Hi Oana

Thanks for the reply, as the code you provided almost worked except in the
line: 

editor=objectamp;classname=XWiki.CalendarEventamp;nb=${event.number})$msg.get(edit)
, 

I had to change nb to object because I realised that when going through
EditObjects and directly editing entry 1, the URL had object=1 at the end
whereas nb was still returning entry 0. I notice on my 2.4 calendar that the
URL ends in nb=1 so that must be where the problem lies.

Thanks Again,
Lockie

---
Complete fix:


#foreach($event in $doc.getObjects(XWiki.CalendarEvent))

1.1.1 $event.title.replaceAll('\n', )
#if($hasedit) ( $doc.getURL( $msg.get(edit) ,
$doc.getURL( $msg.get(delete) )#end 




Elena-Oana Tabaranu wrote:
 
 Hi,
 
 Your code should look like this:
 
 #foreach($event in $doc.getObjects(XWiki.CalendarEvent))
 

 1.1.1 $event.title.replaceAll('\n', ) 
 #if($hasedit) ( $doc.getURL( $msg.get(edit) , 
  $doc.getURL( $msg.get(delete) )#end
 ...
 #end
 
 You can make a test and print the ${event.number} inside the #foreach to 
 see if the value is correct. I have tested with 3.0 and the links seem ok.
 
 Oana
 


-

Lockie
--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-lost-some-functionality-in-3-0-tp6240869p6244487.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users



[xwiki-users] Calendar lost some functionality in 3.0

2011-04-04 Thread Lockie
Hi all

I'm in the process of starting from a fresh install in 3.0 after using 2.4
for many months. 

I have however encountered a problem with the Edit link used for directly
editing a calendar entry (which is an object generated when you add an event
to the calendar). These entries appear in a list and with each one there is
the Edit link mentioned above, as well as a Remove link.

The Remove link removes the calendar entry fine, but in 3.0, the Edit
link always goes to the very first calendar entry, called CalendarEvent 0.
In my 2.4 installation though it correctly goes to the corresponding
calendar entry.

This is the section of code I think is at fault, note it's in 1.0 syntax.


#foreach($event in $doc.getObjects(XWiki.CalendarEvent))



1.1.1 $event.title.replaceAll('\n', ) 

#if($hasedit) 

( $doc.getURL( $msg.get(edit) , 

$doc.getURL( $msg.get(delete) )

#end


Somehow the $event.number is always 0 and not the actual number of the
entry. It could be related to the Velocity engine getting upgraded to 7.1? I
tried copying parts of the Remove section since that is getting the link
to the entry correct, but it always goes to the very first entry, number 0.

I really need this functionality because it's much easier for users to edit
an entry individually then sifting through the objects that eventually grow
to a big number. It's preventing me from moving to 3.0, so any help would be
greatly appreciated.

Thanks

-

Lockie
--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-lost-some-functionality-in-3-0-tp6240869p6240869.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] struggling to understand panels expanding initial state

2011-03-28 Thread Lockie

Ricardo Rodríguez wrote:
 
 Please, Lockie, how to you get a collapsed panel at page loading time 
 being later on controlled by a cookie? I mean, panel A appears collapsed 
 when you access the site for the first time. From this moment onwards, a 
 cookie will remember the preferences of each visitor.
 
Hi Ricardo

Unfortunately I haven't solved this issue. I was previously using a
javascript extension to default the panels as collapsed but that was also
effecting page load times since the script was loaded on each page.

document.observe('xwiki:dom:loaded', function() {
   $$('.panel').each(function(item) {
 item.removeClassName('expanded');
 item.addClassName('collapsed');
   });
}); 

But that does the exact same thing as this only without the need to have an
extension load each time:

 #if(!$expanded)
 #set($expanded = 'collapsed')
 #end 

These two ways have the panels collapsed regardless of whether the user has
been there or not. So I'm stuck in the same situation as you. :( What would
be perfect in my case is if you could somehow link a space to a panel so
that the panel whose space you are looking at remains open displaying all
its pages, while the other spaces remain closed.

-

Lockie
--
View this message in context: 
http://xwiki.475771.n2.nabble.com/struggling-to-understand-panels-expanding-initial-state-tp6095465p6217462.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Dashboard customization

2011-03-16 Thread Lockie

Nicolas Jouanin wrote:
 
 Hi,
 
 how do you change the default dashboard layout ?
 I mean dashboard source shows :
 {{dashboard source=Main.Dashboard/}}
 
 and Main.Dashboard has:
 {{dashboard/}}
 
 How do you change for example the dashbord layout or limit the liste of
 spaces shown ?
 
Hi Nicolas,

You'll want to navigate to Main.Dashboard then Edit it in Source mode.
You'll notice the dashboard is split into two columns - (%
class=dashboardleft %) and (% class=dashboardright %). You can delete or
comment out the parts you don't want (e.g. tag cloud) and you can embed
other pages using {{include document=SpaceName.PageName/}}.

To control the amount of spaces listed, alter the number in this line (100
is default): 

#set($limit = 100)## Maximum number of documents we display in the space
dashboard list

Hope that helps

-

Lockie
--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Dashboard-customization-tp6176507p6179841.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] struggling to understand panels expanding initial state

2011-03-07 Thread Lockie

Ricardo Rodríguez wrote:
 
 #if(!$expanded)
#set($expanded = 'collapsed')
 #end 
 
Thanks I found this helpful. It means I don't have to have javascript
extensions collapsing the panels, slowing down load times.

-

Lockie
--
View this message in context: 
http://xwiki.475771.n2.nabble.com/struggling-to-understand-panels-expanding-initial-state-tp6095465p6099685.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Drop mailing lists in favor of a forum software

2011-03-07 Thread Lockie
I use this URL: http://xwiki.475771.n2.nabble.com/XWiki-Users-f475772.html
which makes the mailing list appear like a forum. I prefer a forum layout so
you have my +1.

-

Lockie
--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Drop-mailing-lists-in-favor-of-a-forum-software-tp6099297p6099714.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Dotx file attachments open as zips in IE8

2011-02-15 Thread Lockie

Ah can't believe I missed that '', but it's good to see I was atleast on the
right track. Thanks!

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Dotx-file-attachments-open-as-zips-in-IE8-tp6022146p6030056.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Problem with panels in a farm

2011-02-14 Thread Lockie

Hi Erica

I had similar problems with the panel wizard itself. I found the easiest way
to get the panels in the right order was to manually type them under Panels
into the Presentation section of Administer Wiki. You could try doing the
same in Administer Space.

Hope that helps

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-panels-in-a-farm-tp6024721p6026008.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Panels

2011-02-13 Thread Lockie

Hi Gerritjan

To display panels as collapsed, attach a Javascript sheet to a page
(EditObjectsJavascript Extension). Put the following code in:

document.observe('xwiki:dom:loaded', function() {
   $$('.panel').each(function(item) {
 item.removeClassName('expanded');
 item.addClassName('collapsed');
   });
});

Mark it as 'Always on this Wiki'.

Hope this helps,

Lockie

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Panels-tp6018944p6022132.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Dotx file attachments open as zips in IE8

2011-02-13 Thread Lockie

Hi all

I need to be able to attach Word 2007 templates (.dotx) on pages, but when I
try downloading them in IE8 they download as zips full of xml files. I
tracked down where this is held in xwikiWEB-INFweb.xml and towards the
bottom of the file there are mime mappings and I notice the one for .dotx is
missing?

I tried adding

  mime-mapping
extensiondotx/extension
mime-typeapplication/msword/mime-type
/mime-mapping

  mime-mapping
extensiondotx/extension

mine-typeapplication/vnd.openxmlformats-officedocument.templateml.template/mime-type
/mime-mapping

but that prevented my wiki from working (DNS error), so how can I alter the
file to get .dotx files to download as .dotx?

Thanks

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Dotx-file-attachments-open-as-zips-in-IE8-tp6022146p6022146.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWord - strange problem regarding pages and spaces

2010-12-02 Thread Lockie

Hi Florin,

Thanks for the response. I reported the issue on Jira. 

I realise why my list pages in space menu system wasn't displaying because
as you say, they are linked to the parent page (WebHome) which I now
remember I did to avoid it listing undesirable pages such as WebHome and
WebPreferences if it were to link all pages in the space:

|= Menu
#set($sql = where doc.parent = '${doc.web}.${doc.name}')
#foreach($item in $xwiki.searchDocuments($sql))
 |[[${item}]]
#end

Cheers

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/XWord-strange-problem-regarding-pages-and-spaces-tp5790661p5798023.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWord - strange problem regarding pages and spaces

2010-11-30 Thread Lockie

Hello

I have installed XWord without any problem on my Windows XP  Word 2007
system, however I'm encountering a strange problem. If I create a page in an
existing space in XWord, it gets the name as SpaceName.PageName as normal,
however the page seems to have no parent space, almost as if it is another
WebHome. The breadcrumbs for the page rather then being SpaceName 
PageName, it just has the PageName (again much like a normal WebHome page). 

It's kind of a problem because my menu system automatically lists the pages
within each space using a #foreach($item in $xwiki.searchDocuments($sql))
method, only the pages created in XWord don't appear at all.

Also, if I edit a page originally created in XWiki it suffers the same
problem if I edit it and publish it in XWord. If I go to the Information tab
that lists all child pages, only pages created in XWiki appear, and any that
have been edited or created in XWord do not. The only way I can find them is
to lucene search them.

Is it supposed to function like this? Any help on this would be really
appreciated, I hope I can get this functioning correctly.

Thanks

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/XWord-strange-problem-regarding-pages-and-spaces-tp5790661p5790661.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWord - strange problem regarding pages and spaces

2010-11-30 Thread Lockie

So far the only workaround I have is to manually put SpaceName.WebHome in
the Parent field in the Documentation Information panel when editing the the
page in wysiwyg mode (by default it appears blank for Xword-published
pages). But I don't want my end users to have to manually do that, so is
there some way I can automatically get the XWord-published page to
automatically be associated with the WebHome of the picked space?

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/XWord-strange-problem-regarding-pages-and-spaces-tp5790661p5790727.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [myxwiki] XWiki Calendar

2010-11-29 Thread Lockie

Hi Jonathan,

I've been using the Calendar Application and in my experience with some
modifications it works fine. Make sure you apply Raluca's stylesheet patch:
http://jira.xwiki.org/jira/browse/XACALENDAR-14 to make it look ten times
better. 

Also, this thread has some questions and answers regarding it:
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5420827.html.

Hope that helps.

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/myxwiki-XWiki-Calendar-tp5767691p5786828.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Automatically list and link files in a directory with Groovy

2010-11-14 Thread Lockie

Thanks for the reply Ricardo it was very informative! 

Fortunately I simply just need to list and link the files and not worry
about addding metadata. I think there might be a way to do this using the
php macro so I'll try that and post here if I work it out.

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Automatically-list-and-link-files-in-a-directory-with-Groovy-tp5715784p5738708.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Automatically list and link files in a directory with Groovy

2010-11-14 Thread Lockie

Okay I got it working and I'm very happy with the result! I'll share what I
did incase anyone else is interested in doing this. Note that the links
don't work in Firefox (the file:// part doesn't seem to generate). My users
only use IE so I didn't really explore this problem, but you can play around
with it to get it working. Also, the user has to have access to the
directory so this is only useful on an Intranet with networked drives.

First step install the PHP Macro, then copy/paste this code in your page
making sure you change the desired drive.


{{velocity}}
  $xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js)
  $xwiki.ssfx.use(js/xwiki/table/table.css)
{{/velocity}}

{{php}}
{{html}}
table id=formList class=grid sortable filterable doOddEven
cellpadding=0 cellspacing=0 border=0 
tr class=sortHeader 
thForm Name/th
thPath/th
/tr
?php
$dirname = R:/Quality/FORMS/;
$dir = opendir($dirname);

while(false != ($file = readdir($dir)))
{
if(($file != .) and ($file != ..))
{
echo(tr td$file /td);
echo(td  $dirname$file Open Form  /td /tr);
}
}
?
/table
{{/html}}
{{/php}}


This results in a filterable table with a list of all the files in the
directory and subfolders of it with the file names in the left column and a
link to open the file in the right column.

Regards,

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Automatically-list-and-link-files-in-a-directory-with-Groovy-tp5715784p5738940.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Automatically list and link files in a directory with Groovy

2010-11-07 Thread Lockie

Hello all,

I'm running my Xwiki as an information management Intranet alongside a
networked drive that holds hundreds of documents. Based off the TODO
tutorial, I made a system of inputting these documents as objects on
individual pages that then appear on a filterable-sortable table. The link
being a windowsPath macro. The idea behind this is that users can access
these documents much easier.

The problem with this system is if a new document is created, the user then
has to manually add it to this table, and if the document's title is
changed, the link gets broken. So I'm after a way of automatically listing
the documents and have working links, to make it require as little upkeep as
possible.

So far I am able to list the name and the path of all the documents in the
directory, but I need some help in integrating the sortable table html tags
and turning the path into a working link, without breaking the groovy macro.
This is what I have so far:


{{groovy}}

import groovy.io.FileType

def list = []

def dir = new File(R:/Quality/FORMS/)
dir.eachFileRecurse (FileType.FILES) { file -
  list  file
}

list.each {
  println it.name
  println it.path
}

{{/groovy}}


Any help would be appreciated,

Thanks,

-

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Automatically-list-and-link-files-in-a-directory-with-Groovy-tp5715784p5715784.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Display current date on page

2010-10-28 Thread Lockie

Hi all,

Is there a date property I can use to automatically display the current date
on a page? I would do it in javascript but you can't embed script tags in
{{html}} so is there a way of doing it in velocity? I can't seem to find any
info on this.

Thanks,

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Display-current-date-on-page-tp5681412p5681412.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Display current date on page

2010-10-28 Thread Lockie

Ah thats just what I was after, thanks!

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Display-current-date-on-page-tp5681412p5681463.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] show/hide attachments, comments, information and history

2010-10-21 Thread Lockie

You probably already know this so I don't know if it helps, but putting

#xwikidata {
display: none;
}

in an attached stylesheet is a way of hiding that stuff, or you could just
put it into colibri.css directly. I guess on a per page basis though that
might be annoying to manage. I hide it on my Main page that way.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/show-hide-attachments-comments-information-and-history-tp5651431p5660833.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Adding the category object to the calendar

2010-10-14 Thread Lockie

I managed to work around it using JavaScript, so this question is resolved.
Here's what I did for future reference:

Add a Javascript Extension object to the Main.EventCalendar

function changeTextHol() {

var textboxObject = document.getElementById('XWiki.CalendarEvent_user');
textboxObject.value = h5Holiday/h5 ;
}

function changeTextOpe() {

var textboxObject = document.getElementById('XWiki.CalendarEvent_user');
textboxObject.value = h6Operation/h6 ;
}

Add these lines to XWiki.CalendarSheet but not between the set of dl tags.

dt class=labellabel$msg.get(Category):/label/dt
tdinput id=changeTextHol name=cat type=radio onclick=return
changeTextHol() / h5Holiday/h5br //td
tdinput id=changeTextOpe name=cat type=radio onclick=return
changeTextOpe() / h6Operation/h6/td

Cheers
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Adding-the-category-object-to-the-calendar-tp5629602p5637696.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Using a Variable in the WindowsPath Macro

2010-10-11 Thread Lockie

Hi Marius, thanks for the reply. 

That way doesn't really work for my situation, I probably should have
mentioned that the macro needed to be used in a filterable table (my script
is based off the 
http://www.theserverside.com/news/1363830/XWiki-A-Platform-for-Collaborative-Apps
TODO tutorial , I think the variable/object is somehow breaking the html
tags of my table and therefore breaking the page. I decided to just change
the field of the object to wysiwyg so that the users can just use the macro
directly (that won't happen too often anyway) so its not a big issue.

On a slightly related note: I don't suppose anyone could point me in the
direction of a script that automatically lists paths to all files in a
folder to display in a table on a page? So far my searches have come up a
blank so I'm assuming there isn't anything.

Cheers,
Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Using-a-Variable-in-the-WindowsPath-Macro-tp5621876p5625312.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Using a Variable in the WindowsPath Macro

2010-10-10 Thread Lockie

Hi all,

I made a form that a user uses to manually list files stored on the local
network drive, that are then displayed in a table. It works fine but to get
the link to be clickable you have to copy/paste the windowsPath macro into
the inline form field.

I am wondering how I can put the variable for the file into the windowsPath
macro so its clickable in the table, like this (only it doesn't work):
...
td{{windowsPath share=$formObj.file name=Link/}}/td
...

I've tried a few things out but I'm not really sure on how to get it
working. Do I have to create an entirely new macro?

Thanks,

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Using-a-Variable-in-the-WindowsPath-Macro-tp5621876p5621876.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Calendar Application on XE 2.4 - i18n characters and others

2010-09-06 Thread Lockie

Hey Raluca, I finally got around to adding your code and it works perfectly,
thanks!

Ramon, I'm not sure about your first two questions, my attempts at
converting the calendar to 2.0 weren't very successful, and I had to
re-import the xar files to make Raluca's code work. So I just commented out
the parts that weren't working on my 2.0 dashboard, which I wasn't going to
use anyway (this being the URL field). 

Ramon Gomes Brandão - SERINT wrote:
 
 3) I would like to have independent Calendars for different Spaces. Only
 creating a page and including XWiki.CalendarSheet on it (like
 Main.EventCalendar) is the solution? Can I use Rights Access on this page
 as well?
 
From my experience though you can add the calendarsheet to any page since
the entries you make I think are stored locally, because when I add an
event, the calendarsheet page doesn't get altered in any way.

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5502195.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] OpenOffice Server - Inadequate privileges.

2010-09-02 Thread Lockie

Hello all,

In the OpenOffice Server preferences I'm recieving an Inadequate
privileges error, and I have no idea why. I am definitely logged in as the
administrator, and I definitely have all the boxes ticked in Rights. I'm
using the colibri skin, and I'll outline what I did below:

I installed OpenOffice on our Windows server using 
http://code.google.com/p/openmeetings/wiki/OpenOfficeConverter#Windows these
instructions . After doing the soffice.exe test in the command prompt and
testing it with: netstat -anp tcp, I get the correct response:: TCP
127.0.0.1:8100 0.0.0.0:0 LISTENING, so in theory it should be running
properly.

My WEB-INF\xwiki.properties file has remained as default, except I changed
the paths since the defaults weren't working. They are as follows

#-# [Since 1.8RC3]
#-# Path to openoffice installation (serverType:0 only).
#-# If no path is provided, a default value will be calculated based on the
operating environment.
 openoffice.homePath=C:\Program Files (x86)\OpenOffice.org 3

#-# [Since 1.8RC3]
#-# Path to openoffice execution profile (serverType:0 only).
#-# If no path is provided, a default value will be calculated based on the
operating environment.
 openoffice.profilePath=C:\Program Files (x86)\OpenOffice.org
3\OpenOffice.org\3

The second one is long like that because I copied and pasted the user file
from the default which directed to
\\BWSRVR.CORP\Public\individuals\Administrator\Application
Data\OpenOffice.org\3 since it was returning the error still, into the
Program Files one on the local drive, but that didn't seem to change
anything. 

If I try doing Start, Stop, or Restart Server, I get that annoying
Inadequate privileges box. So, the OpenOffice preferences page looks like
this:

-
Inadequate privileges.
-
Server type
Internally managed (local)
Server port
8100
Auto start
Yes
Server path
C:\Program Files (x86)\OpenOffice.org 3
Server profile
C:\Program Files (x86)\OpenOffice.org 3\OpenOffice.org\3
Server state
Not connected

Actions
[]Start server (connect)
[]Stop server (disconnect) 
[]Restart server

I've been fiddling with different settings (but making sure I return them to
the defaults after) and searching around on the net, but I don't know what
else to try, and I really want this feature to work. Any help would be
greatly appreciated.

Thanks,
Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/OpenOffice-Server-Inadequate-privileges-tp5490134p5490134.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] OpenOffice Server - Inadequate privileges.

2010-09-02 Thread Lockie

Aghghgh it turns out that you have to use forward slashes not back slashes,
even if it is what appears to be a file path not a URL. Hahaha,
unbelievable!

Problem solved.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/OpenOffice-Server-Inadequate-privileges-tp5490134p5490170.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Help needed with customizing of Toucan skin

2010-08-27 Thread Lockie

Hi Kaya,

While I haven't worked with Toucan skin before, the easiest way to edit the
.css file of any skin is to get the Firebug addon for the Firefox browser.
Then its just a matter clicking on the html in the main panel, and seeing
what css is related to which part of the skin in the right panel.

http://getfirefox.com/
http://getfirebug.com/

Hope that helps,
Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Help-needed-with-customizing-of-Toucan-skin-tp5468570p5471583.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Different image in each panel header

2010-08-25 Thread Lockie

Okay I found out HTML/CSS works. Example:

#panelheader ('Panel Headerdiv id=imagepanel
/xwiki/skins/colibri/logo.png /div')

Think that answers my question. :)

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Different-image-in-each-panel-header-tp5463865p5464327.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Panels

2010-08-24 Thread Lockie

(Sorry, posted this reply in the wrong thread)

Ah nevermind I found the answer in the FAQ, was alot simpler than I thought:
-- 
#foreach ($item in $xwiki.searchDocuments(where doc.web='SpaceName'))
 * [$item]
#end

-- 
It makes a Web Home link though, how can I get rid of that? So far I'm
stuck at:
--

#set ($hiddenpage = [SpaceName.WebHome])

#foreach ($item in $xwiki.searchDocuments(where doc.web='SpaceName'))

#if ($hiddenpage.contains($item)
__something__

 * [$item]

#end
#end

--
Thanks for your patience

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Panels-tp5306756p5455654.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] RES: RES: Calendar Application on XE 2.4 not working properly

2010-08-24 Thread Lockie

I worked out a way to hide the form in a way so that the user doesn't have to
go to another page to fill it out. It hides the div and provides a link to
reveal it, so I guess it could be used for anything. I thought I'd just
share it for future reference.

Go to XWiki.CalendarSheet and EditObjects then add a JavaScriptExtension
object with the following properties:

Name: 
(blank)
Code:
function toggle() {
var ele = document.getElementById(toggleText);
var text = document.getElementById(displayText);
if(ele.style.display == block) {
ele.style.display = none;
text.innerHTML = Click to view and create events...;
}
else {
ele.style.display = block;
text.innerHTML = Hide form;
}
} 
Use this extension:
Always on this wiki
Parse content:
No
Caching policy:
Default

Then edit CalendarSheet in Source mode (Note: I converted mine from 1.0
syntax to 2.0 previously) and add these lines straight after
$cview.getHTMLCalendar($cparams, ):

Click to view events and make events... 
div id=toggleText style=display: none

Remove the ? from href above. Don't forget the /div tag at the end:
#end
/div
{{/html}}
{{/velocity}}
And I think that ends my questions about the calendar 

Cheers,
Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5459543.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Panels

2010-08-23 Thread Lockie


Sergiu Dumitriu-2 wrote:
 
 On 08/23/2010 06:46 AM, Lockie wrote:

 I was going to make a thread asking this but found this one. Is there any
 way
 to default panels as collapsed?
 
 All panels, or just some?
 

I'm looking at having them all closed and I'm using the colibri skin if it
helps.

Thanks,

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Panels-tp5306756p5454672.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] RES: RES: Calendar Application on XE 2.4 not working properly

2010-08-23 Thread Lockie


Raluca Stavro wrote:
 
 Yes, you can do that.
 You have to change the parameters for the getHTMLCalendar method.
 See
 http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-plugins/trunk/calendar/src/main/java/com/xpn/xwiki/plugin/calendar/CalendarPluginApi.java
 .
 So this is what you should do in your homepage:
 
 ...
 ## Set the calendar parameters
 ...
 ## Display calendar
 $cview.getHTMLCalendar($cparams,
 $xwiki.getDocument('MySpace.MyEventCalendarPage'), )
 
 Where 'MySpace.MyEventsPage' is 'Main.EventCalendar' by default.
 
 Raluca.
 

Thanks Raluca for all the help I really appreciate it. I don't really
understand what I'm meant to do though. I tried putting the code you
provided on the homepage and in different places but I can't seem to get it
to work. Can you tell me exactly where to put it, and am I meant to edit the
calendar parameters java code?

I have made a new page that users will use to fill out the calendar form. It
is called Main.Calendar and in it the only code is: 
{{include document=XWiki.CalendarSheet/}}

Then in Main.Home I have the Main.Calendar appearing below the dashboard:
{{include document=Main.Dashboard/}}
{{include document=Main.Calendar/}}

But rather than displaying the events made in Main.Calendar it only displays
events made on the actual Main.Home page.

All my pages are in 2.0 syntax and I'm using the colibri skin. I hope
nothing went wrong when I converted the calendar from 1.0 to 2.0 syntax. The
reason I need this is because I don't want the user to have to scroll down
on the home page, so if I can get the calendar form on another page, then I
can hide it on the home page with an external stylesheet, making everything
much more organised and neat. I managed to mirror the blog, recent changes,
and other pages on the home page but this one has me baffled.

Thanks again,

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5455028.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Panels

2010-08-23 Thread Lockie


Sergiu Dumitriu-2 wrote:
 
 
 Then you can create a JavaScript extension (see 
 http://platform.xwiki.org/xwiki/bin/DevGuide/SkinExtensionsTutorial ) 
 with the following code:
 
 document.observe('xwiki:dom:loaded', function() {
$$('.panel').each(function(item) {
  item.removeClassName('expanded');
  item.addClassName('collapsed');
});
 });
 
 and set the extension to be used Always on this wiki.
 
 
Thanks! That worked fine.

One final quick question- I have a panel for each space, and I need each of
these panels to automatically display a list of pages within their
respective space to work as a menu. The 
http://code.xwiki.org/xwiki/bin/view/Snippets/ChildParentSnippet
ChildParentSnippet  code seems to work in panels, but now I need help in
determining what part of it I can change so that it only picks up pages of
individual spaces. Because I'm making the panels manually, I can put the
space names into the code manually.

Thanks,
Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Panels-tp5306756p5455547.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] RES: RES: Calendar Application on XE 2.4 not working properly

2010-08-23 Thread Lockie

Ah nevermind I found the answer in the FAQ, was alot simpler than I thought:
--

#foreach ($item in $xwiki.searchDocuments(where doc.web='SpaceName'))
 * [$item]
#end

--
Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5455565.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] RES: RES: Calendar Application on XE 2.4 not working properly

2010-08-22 Thread Lockie

Ah, thanks.

I have a question though - I would like to mirror the calendar on my
homepage without having the entry form on it, and instead have a link to a
page where you can put events into the calendar. When I use {{include
document=XWiki.CalendarSheet/}} it creates a new instance of the calendar,
so if I add events directly to CalendarSheet they don't display on the
calendar on the homepage.

So, how can I make the entry form display its user input on a calendar on
another page?

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5451203.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Panels

2010-08-22 Thread Lockie

I was going to make a thread asking this but found this one. Is there any way
to default panels as collapsed?

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Panels-tp5306756p5451436.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] RES: RES: RES: RES: Calendar Application on XE 2.4notworking properly

2010-08-19 Thread Lockie

Not sure if this is what you're after, but I am able to insert a new calendar
on pages simply adding the line 

{{include document=XWiki.CalendarSheet/}} 

in Edit  WIKI.

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5442574.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] RES: RES: RES: RES: Calendar Application on XE 2.4notworking properly

2010-08-19 Thread Lockie

One other thing, make sure you have the correct syntax selected in the
dropdown. So if you have XWiki 1.0 Syntax selected in the dropdown menu then
it'd be #includeForm(XWiki.CalendarSheet) and 2.0 is {{include
document=XWiki.CalendarSheet/}}.

It looks like this Calendar had been made with 1.0 syntax so right now I'm
attempting to edit it to use with 2.0 syntax so I can display it on the
dashboard on the home page without various parts of it breaking.

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5442954.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] RES: RES: Calendar Application on XE 2.4 not working properly

2010-08-18 Thread Lockie

I got it to work, however I had to to put the 'Use This Extension' part to
'Always on this wiki'. I guess the 'Always on this page' part would work as
well if thats what you're after. I left the name part blank. 

Thanks Raluca it looks much better.

Lockie
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5438405.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] RES: Calendar Application on XE 2.4 not workingproperly

2010-08-17 Thread Lockie

I am also eagerly awaiting a more functional and better looking calendar, I
hope your patch gets through soon. I tried the 
http://dev.xwiki.org/xwiki/bin/view/Drafts/XWiki-Calendar GWT-Calendar 
aswell but I get a lot of errors, so either I'm doing something wrong or its
not functional yet...

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5434752.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users