Hello - I'm new to XWiki

6 messages Options
Embed this post
Permalink
MAI QUOC, Phuong-Tram

Hello - I'm new to XWiki

Reply Threaded More More options
Print post
Permalink
Hello, i'm new to XWiki

I am more used to MediaWiki, thanks to Wikipedia and i was looking for two features from MediaWiki :

- the Category thing : the ability to filter pages by category. Maybe Xwiki does have this functionnality but i have search macro and snippets and FAQs but i can't find how Xwiki named this functionnality.

- the Modele thing : I would like to create several pages on a same modele : like zoologic classification record : all pages should use the same template : name, nature, classification, sub classification etc… Is it possible to create a canvas with XWiki (maybe a page) and include the page with parameters so, once opened, the page will have all the fields fill by the parameters ?

 

 

Cordialement

Best Regards

 

MAI Phương Trâm

Nouvelles Frontières Informatique

=====================

NOUVELLES FRONTIERES

74, rue de Lagny

API 4A10

93107 MONTREUIL CEDEX

+33(0)1 48 51 81 21

 

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Regan Gill

Macro in Syntax 2.0

Reply Threaded More More options
Print post
Permalink
Hi All,

We upgraded our internal wiki from xwiki 1.6 to xwiki 1.9 recently and
discovered that our old macro syntax doesn't work any longer because we
have the default syntax set to 2.0. I had added some custom macros, one
of which added links to documents stored in a particular location. This
was connecting our svn document storage with the xwiki documentation and
was simple enough for all my users to use.

##
## Insert a link to a document in the documentation repository
## Usage
## doclink( "repo_path_to_doc"  "display_name")
##
#macro(doclink $path $name)
<a href="/docs_repo/$path">$name</a>#end

My users didn't have to worry about how the repository was managed on my
xwiki server or use html.

Now I need to have them do this

{{velocity}}{{html}}#doclink("repo_path_to_doc"
"display_name){{/html}}{{/velocity}}

Instead of

#doclink( "repo_path_to_doc"  "display_name")

It may not seem like a big deal to a developer, but it is less user
friendly. I want to continue with the new syntax, but I was wondering if
this is going to be the permanent syntax for macros.

Thanks,
Regan
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
vmassol

Re: Macro in Syntax 2.0

Reply Threaded More More options
Print post
Permalink
Hi,

On Jul 3, 2009, at 3:29 AM, Regan Gill wrote:

> Hi All,
>
> We upgraded our internal wiki from xwiki 1.6 to xwiki 1.9 recently and
> discovered that our old macro syntax doesn't work any longer because  
> we
> have the default syntax set to 2.0. I had added some custom macros,  
> one
> of which added links to documents stored in a particular location.  
> This
> was connecting our svn document storage with the xwiki documentation  
> and
> was simple enough for all my users to use.
>
> ##
> ## Insert a link to a document in the documentation repository
> ## Usage
> ## doclink( "repo_path_to_doc"  "display_name")
> ##
> #macro(doclink $path $name)
> <a href="/docs_repo/$path">$name</a>#end
>
> My users didn't have to worry about how the repository was managed  
> on my
> xwiki server or use html.
>
> Now I need to have them do this
>
> {{velocity}}{{html}}#doclink("repo_path_to_doc"
> "display_name){{/html}}{{/velocity}}
>
> Instead of
>
> #doclink( "repo_path_to_doc"  "display_name")
>
> It may not seem like a big deal to a developer, but it is less user
> friendly. I want to continue with the new syntax, but I was  
> wondering if
> this is going to be the permanent syntax for macros.

The plan is to provide a way to expose wiki content in pages as  
macros. This planned in 2.0 milestone 2 (ie in about 3-4 weeks).

The idea is that you would add some Macro Objects to a page and  
describe the macro using that objects (name, parameters, default  
values, content, etc). Once this is done the macro will be available  
as any rendering macro, i.e using wiki syntax {{mymacro..../}} or from  
the WYSIWYG editor.

Thanks
-Vincent
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Ludovic Dubost-2

Re: Macro in Syntax 2.0

Reply Threaded More More options
Print post
Permalink
In reply to this post by Regan Gill
Regan Gill a écrit :

> Hi All,
>
> We upgraded our internal wiki from xwiki 1.6 to xwiki 1.9 recently and
> discovered that our old macro syntax doesn't work any longer because we
> have the default syntax set to 2.0. I had added some custom macros, one
> of which added links to documents stored in a particular location. This
> was connecting our svn document storage with the xwiki documentation and
> was simple enough for all my users to use.
>
> ##
> ## Insert a link to a document in the documentation repository
> ## Usage
> ## doclink( "repo_path_to_doc"  "display_name")
> ##
> #macro(doclink $path $name)
> <a href="/docs_repo/$path">$name</a>#end
>
> My users didn't have to worry about how the repository was managed on my
> xwiki server or use html.
>
> Now I need to have them do this
>
> {{velocity}}{{html}}#doclink("repo_path_to_doc"
> "display_name){{/html}}{{/velocity}}
>
> Instead of
>
> #doclink( "repo_path_to_doc"  "display_name")
>  
You can insert the {{html}} element inside the macro to remove the need
for the velocity item.

And as Vincent says in 2.0 there will be the bridge to velocity macro to
simplify things and allow macros to be exposed in the Wysiwyg, which is
what will actually help democratize macros.

Ludovic

> It may not seem like a big deal to a developer, but it is less user
> friendly. I want to continue with the new syntax, but I was wondering if
> this is going to be the permanent syntax for macros.
>
> Thanks,
> Regan
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
>  


--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Anca Luca

Re: Hello - I'm new to XWiki

Reply Threaded More More options
Print post
Permalink
In reply to this post by MAI QUOC, Phuong-Tram
MAI QUOC, Phuong-Tram wrote:
> Hello, i'm new to XWiki
>
> I am more used to MediaWiki, thanks to Wikipedia and i was looking for two features from MediaWiki :
>
> - the Category thing : the ability to filter pages by category. Maybe Xwiki does have this functionnality but i have search macro and snippets and FAQs but i can't find how Xwiki named this functionnality.

XWiki allows grouping documents in "spaces", some sort of directories for the
docs, for simple, one-level categories.

Also, you can attach tags to documents (see the information tab at the bottom of
a document) which you can use for filtering afterwards (checkout the tag cloud
on the main page of your wiki /xwiki/bin/view/Main/WebHome).

>
> - the Modele thing : I would like to create several pages on a same modele : like zoologic classification record : all pages should use the same template : name, nature, classification, sub classification etc… Is it possible to create a canvas with XWiki (maybe a page) and include the page with parameters so, once opened, the page will have all the fields fill by the parameters ?
>

For the model, you can define classes (types) and instances of the types
(objects) in documents, as well as templates to create documents of these types
and sheets to configure how these types are displayed.

Checkout the FAQ and TODO application tutorials here:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Tutorials . Be warned that
they are slightly outdated, since changes happened in the mean time (for
example, they use xwiki/1.0 syntax documents although in the current version the
default is 2.0). But the model and the concepts are the same.

Happy hacking,
Anca

>  
>
>  
>
> Cordialement
>
> Best Regards
>
>  
>
> MAI Phương Trâm
>
> Nouvelles Frontières Informatique
>
> =====================
>
> NOUVELLES FRONTIERES
>
> 74, rue de Lagny
>
> API 4A10
>
> 93107 MONTREUIL CEDEX
>
> +33(0)1 48 51 81 21
>
>  
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
MAI QUOC, Phuong-Tram

Re: Hello - I'm new to XWiki

Reply Threaded More More options
Print post
Permalink
Thank you very much
These clues will help me a lot



-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Anca Paula Luca
Sent: Friday, July 03, 2009 11:03 AM
To: XWiki Users
Subject: Re: [xwiki-users] Hello - I'm new to XWiki

MAI QUOC, Phuong-Tram wrote:
> Hello, i'm new to XWiki
>
> I am more used to MediaWiki, thanks to Wikipedia and i was looking for two features from MediaWiki :
>
> - the Category thing : the ability to filter pages by category. Maybe Xwiki does have this functionnality but i have search macro and snippets and FAQs but i can't find how Xwiki named this functionnality.

XWiki allows grouping documents in "spaces", some sort of directories for the
docs, for simple, one-level categories.

Also, you can attach tags to documents (see the information tab at the bottom of
a document) which you can use for filtering afterwards (checkout the tag cloud
on the main page of your wiki /xwiki/bin/view/Main/WebHome).

>
> - the Modele thing : I would like to create several pages on a same modele : like zoologic classification record : all pages should use the same template : name, nature, classification, sub classification etc… Is it possible to create a canvas with XWiki (maybe a page) and include the page with parameters so, once opened, the page will have all the fields fill by the parameters ?
>

For the model, you can define classes (types) and instances of the types
(objects) in documents, as well as templates to create documents of these types
and sheets to configure how these types are displayed.

Checkout the FAQ and TODO application tutorials here:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Tutorials . Be warned that
they are slightly outdated, since changes happened in the mean time (for
example, they use xwiki/1.0 syntax documents although in the current version the
default is 2.0). But the model and the concepts are the same.

Happy hacking,
Anca

>  
>
>  
>
> Cordialement
>
> Best Regards
>
>  
>
> MAI Phương Trâm
>
> Nouvelles Frontières Informatique
>
> =====================
>
> NOUVELLES FRONTIERES
>
> 74, rue de Lagny
>
> API 4A10
>
> 93107 MONTREUIL CEDEX
>
> +33(0)1 48 51 81 21
>
>  
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users