Re: [xwiki-users] Including and excluding linked text with tags
I think the Include Macro can help here... The include macro can show a portion of a page, so if you have a MasterPage with all your text divided in multiple Sections (for example with H1), then you could create a ApplicationPage and only include those sections from the MasterPage you want to show. For example: ApplicationPage, which will show section 1,2,4 and 5: {{include document=MasterPage section=HSection001/}} {{include document=MasterPage section=HSection002/}} {{include document=MasterPage section=HSection004/}} {{include document=MasterPage section=HSection005/}} For example: ApplicationPage2, which will show section 2,3 and 5: {{include document=MasterPage section=HSection002/}} {{include document=MasterPage section=HSection003/}} {{include document=MasterPage section=HSection005/}} If anything changes on the MasterPage, for example some text in section 2, then all the ApplicationPages will show that change immediatly. -- View this message in context: http://xwiki.475771.n2.nabble.com/Including-and-excluding-linked-text-with-tags-tp7588038p7588349.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] ToDo Macro erase page content while using the WYSIWYG editor
Hello, I really like the idea behind the ToDo Macro, as it is the easiest way to get todos strait into wiki pages and review them with the ToDo List. Unfortunately it seems there is a bug which make it nearly useless. As soon as you added more ToDos to one page and you added this pages with the WYSIWYG editor it could be that all content after and including the todos itself are erased while saving If you switch before between the Wiki editor and WYSIWYG editor you see in the wiki editor that it is already missing. In the WYSIWYG editor all content is shown normally but not saved. That means. I create a page - add some todos - someone else edid this page and put some additional content over the WYSIWYG editor to the page and save it - all content behind the todo can get lost. I tried it with different pages and also with different content. I just can say that it is not related to the content before or after the todo. Does someone see that before? Regards Kai ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki 5.2 Subwikis Wiki Template Error number 50035 in 5
The instructions are primary for manual installations. But I had installed xwiki via my distribution packed manager apt. Anyway I've done: psql -U postgres postgres=# \l List of databases Name| Owner | Encoding | Collate |Ctype| Access privileges ---+--+--+-+-+--- mydb | postgres | UTF8 | de_DE.UTF-8 | de_DE.UTF-8 | postgres | postgres | UTF8 | de_DE.UTF-8 | de_DE.UTF-8 | template0 | postgres | UTF8 | de_DE.UTF-8 | de_DE.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | de_DE.UTF-8 | de_DE.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres xwiki | postgres | UTF8 | de_DE.UTF-8 | de_DE.UTF-8 | (5 rows) postgres=# \connect xwiki postgres=# \du List of roles Role name | Attributes | Member of ---++--- postgres | Superuser, Create role, Create DB, Replication | {} xwiki || {} postgres=# GRANT ALL ON SCHEMA public TO xwiki; GRANT Without success! Versions == Ubuntu 12.04.3 LTS PostgreSQL Version: 9.1+129ubuntu1 xWiki Version: 5.2.2 -- View this message in context: http://xwiki.475771.n2.nabble.com/XWiki-5-2-Subwikis-Wiki-Template-Error-number-50035-in-5-tp7587602p7588352.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] Tag Rules
Hi Danilo, here's my take on this: On Thu, Dec 5, 2013 at 6:46 PM, Danilo Amaral de Oliveira danilo.olive...@energisa.com.br wrote: Hello People, How are you? I am providing the XWiki tool to my IT department. We will use it as central point for exchange technical information! In order to maintain an organized Wiki I am giving some tips to our users, for example: always use tags, try to kink other document and always verify the hierarchical relation of the document. But I have some minor doubts that you maybe help me. Do you establish some good practice to use tags? For example: try always use just substantive , insert at least 3 tags for each document, use just capital letters, etc I'd say the most important rules to follow with tags are the following: - *Avoid duplicates -* use the autosuggest to make sure you're not adding tags that are already there but spelled differently - *Make sure that tags are descriptive -* the tags have to have some meaning, people should be able to understand them easily - *Define a tag gardener -* someone who will look at the less used tags and will remove them on a monthly basis to avoid clutter Other question is about the navigator, what do you think that work better with XWiki, I am using Firefox but I don’t know if the chrome works better. What do you suggest? Firefox and Chrome are good choices. More information on this topic is available here: http://dev.xwiki.org/xwiki/bin/view/Community/BrowserSupportStrategy Best, Guillaume Danilo Grupo Energisa Danilo A. Oliveira Analista Suporte Aplicacao TI - CTZ-C e-mail: danilo.olive...@energisa.com.br | tel: (32) 3429-6342 Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador. Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] ToDo Macro erase page content while using the WYSIWYG editor
I have reproduced your issue with ToDo Macro 1.0 [1] on the last version of XWiki. Unfortunately, this macro is not supported by the XWiki team. Regards, Louis-Marie [1]: http://extensions.xwiki.org/xwiki/bin/view/Extension/Todo+Macro 2013/12/11 Kai Sen kai...@gmail.com Hello, I really like the idea behind the ToDo Macro, as it is the easiest way to get todos strait into wiki pages and review them with the ToDo List. Unfortunately it seems there is a bug which make it nearly useless. As soon as you added more ToDos to one page and you added this pages with the WYSIWYG editor it could be that all content after and including the todos itself are erased while saving If you switch before between the Wiki editor and WYSIWYG editor you see in the wiki editor that it is already missing. In the WYSIWYG editor all content is shown normally but not saved. That means. I create a page - add some todos - someone else edid this page and put some additional content over the WYSIWYG editor to the page and save it - all content behind the todo can get lost. I tried it with different pages and also with different content. I just can say that it is not related to the content before or after the todo. Does someone see that before? Regards Kai ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] RES: all pages without any Tags
Hello People, Just to notify, I have tried this extension but it is not working. I don’t know why but the consulting results still showing documents that have tags. I am using the XWiki 5.2.2 Danilo Grupo Energisa Danilo A. Oliveira Analista Suporte Aplicacao TI - DETI e-mail: danilo.olive...@energisa.com.br | tel: (32) 3429-6342 Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador. Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately. -Mensagem original- De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Em nome de Vincent Massol Enviada em: terça-feira, 3 de setembro de 2013 12:32 Para: XWiki Users Assunto: Re: [xwiki-users] all pages without any Tags Hi, On Sep 3, 2013, at 5:26 PM, Volker.Lapczynski v...@ahus.no wrote: This is working on XWiki Enterprise 5.2-milestone-1: Cool. Maybe you could contribute it as a snippet on extensions.xwiki.org? Thanks -Vincent {{velocity}} #set($sql = (where doc.fullName not in (select doc.fullName from XWikiDocument doc, BaseObject as tagObj, DBStringListProperty as tags join tags.list tag where doc.fullName = tagObj.name and tagObj.className = 'XWiki.TagClass' and tagObj.id = tags.id.id and tags.id.name='tags' and tag '')order by doc.space asc ) ) #set ($list = $xwiki.searchDocuments($sql)) #foreach($item in $xwiki.searchDocuments($sql)) #set ($recentDoc = $xwiki.getDocument($item).getTranslatedDocument()) ## We use HTML here because we don't have a tool to escape wiki syntax in document title. |$recentDoc.getSpace()|{{html}} $escapetool.xml($recentDoc.plainTitle) $recentDoc.getURL() {{/html}} #end {{/velocity}} Thank You! ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Conditional transclusion
You can use the Velocity macro, http://extensions.xwiki.org/xwiki/bin/view/Extension/Velocity+Macro#HExample2 , and you can check if the old version exists with $xwiki.exists($oldDocReference), see http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-oldcore/5.2.2/xwiki-platform-oldcore-5.2.2-javadoc.jar/!/com/xpn/xwiki/api/XWiki.html#exists%28java.lang.String%29 . Hope this helps, Marius On Tue, Dec 10, 2013 at 4:08 PM, Aye Jaye aye.j...@outlook.com wrote: I have these main documents which I want to consist of a bunch of subdocuments, which are included/transcluded (own context, so I'll use Display, I guess). Main | - A | - B This document has two versions, New and Old: Main_New | - A_new | - B_new Main_Old | - A_old | - B_old Which is all fine as long as there exists New documents. Now to the finicky part. In some cases, there will be no new document for B. I then want this to happen: Main_New | - A_new | - B_old Main_Old | - A_old | - B_old So, I want the Main document to include a sub-document of it's own type if it exists, and if not, it should pick the older document. The selection is based on the main documents properties. (Note: I'm having actual new/old documents, so it's not versions of the same document. Also, I have simplified my example a bit, the real case has multiple levels of inclusion. )Q: How do I go about creating a good conditional inclusion? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] ToDo Macro erase page content while using the WYSIWYG editor
On 11 Dec 2013 at 19:08:57, Guillaume Louis-Marie Delhumeau (gdelhum...@xwiki.com) wrote: I have reproduced your issue with ToDo Macro 1.0 [1] on the last version of XWiki. Unfortunately, this macro is not supported by the XWiki team. Note that this doesn’t mean you won’t get help here. The author of this extension is Ludovic Dubost and he often checks emails on this list so there’s still a chance he’ll notice it and provide a fix. Otherwise, if you have the knowledge you could provide a pull request on GitHub to fix the issue. Thank you -Vincent Regards, Louis-Marie [1]: http://extensions.xwiki.org/xwiki/bin/view/Extension/Todo+Macro 2013/12/11 Kai Sen kai...@gmail.com Hello, I really like the idea behind the ToDo Macro, as it is the easiest way to get todos strait into wiki pages and review them with the ToDo List. Unfortunately it seems there is a bug which make it nearly useless. As soon as you added more ToDos to one page and you added this pages with the WYSIWYG editor it could be that all content after and including the todos itself are erased while saving If you switch before between the Wiki editor and WYSIWYG editor you see in the wiki editor that it is already missing. In the WYSIWYG editor all content is shown normally but not saved. That means. I create a page - add some todos - someone else edid this page and put some additional content over the WYSIWYG editor to the page and save it - all content behind the todo can get lost. I tried it with different pages and also with different content. I just can say that it is not related to the content before or after the todo. Does someone see that before? Regards Kai ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users