[xwiki-users] xwiki 2.0 issues
Hi, some questions: 1) section editing Edit button is also displayed for unregistered users (when nobody is logged in and has edit rights). disabled section editing in xwiki.cfg Edit button is still there 2) Title handling tryed to disable it in xwiki.cfg Get Title and Heading always but was awaiting old behavior. Also had a problem with a long heading: Entwicklung der empirischen Sozialforschung in Deutschland seit 1945 - Aufgaben für die Zukunft Head it as Title and as heading 1 (also tried heading 2). Was always displayed twice (title + heading). Is there a length restriction for the title. Thanks hel. ----- semantic-web.hel.at [email protected] -- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3729506.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, Title handling. hel-o wrote:
Entwicklung der empirischen Sozialforschung in Deutschland seit 1945 - Aufgaben für die Zukunft
It's not the lenght of the title it's the german umlaut üäö. The title handling ist not working when there's one in the title. hel. ----- semantic-web.hel.at [email protected] -- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3730344.html Sent from the XWiki- Users mailing list archive at Nabble.com.
No answer? Ok, one more thing. Just tried found that when i use only heading (or title) only one is dispayed in Headings/Titles with german umlaut. But when i use heading the umlaut isn't displayed correctly in the breadcrumb, when i use title it's OK. Any suggestions. Thanks hel. ----- semantic-web.hel.at [email protected] -- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3737653.html Sent from the XWiki- Users mailing list archive at Nabble.com.
On Sep 29, 2009, at 7:20 PM, hel-o wrote:
No answer?
Ok, one more thing. Just tried found that when i use only heading (or title) only one is dispayed in Headings/Titles with german umlaut.
But when i use heading the umlaut isn't displayed correctly in the breadcrumb, when i use title it's OK.
ah ok so that's it.... See http://jira.xwiki.org/jira/browse/XWIKI-4417 Thanks -Vincent
Thanks, that answers one question. But can you tell me why i get the section edit button also i'm not logged in http://n2.nabble.com/file/n3741174/sectionedit.png I tried to disable section edit in xwiki.cfg #-# This parameter will activate the sectional editing. xwiki.section.edit=0 But its still there. And is there a way to bring title handling back to the behavior befor 2.0 Thanks hel. vmassol wrote:
On Sep 29, 2009, at 7:20 PM, hel-o wrote:
No answer?
Ok, one more thing. Just tried found that when i use only heading (or title) only one is dispayed in Headings/Titles with german umlaut.
But when i use heading the umlaut isn't displayed correctly in the breadcrumb, when i use title it's OK.
ah ok so that's it....
See http://jira.xwiki.org/jira/browse/XWIKI-4417
Thanks -Vincent _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
----- semantic-web.hel.at [email protected] -- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3741174.html Sent from the XWiki- Users mailing list archive at Nabble.com.
On Tue, Sep 29, 2009 at 10:22 AM, Vincent Massol <[email protected]> wrote:
I marked http://jira.xwiki.org/jira/browse/XE-376 as a duplicate of http://jira.xwiki.org/jira/browse/XWIKI-4417 XE-376 duplicates/closes http://jira.xwiki.org/jira/browse/XE-336 as well. XE-376: characters entered as document title must be escaped or a cascade of bugs occur. Niels http://nielsmayer.com
Hi, i'm still wondering if the new title handling is really working how it should be. My main issue is, that its not possible anymor (as far as i can see) to have different title and heading (e.g. title -> short form of heading). Also it's not possible to disable the new title handling and get back to the old behavior. It's a little bit annoying cause i use title and headings quite a lot and now evertything is messed up and i get doubled titles everywhere. hel. ----- semantic-web.hel.at [email protected] -- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3781448.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Hel, On Wed, Oct 7, 2009 at 2:14 PM, hel-o <[email protected]> wrote:
Hi,
i'm still wondering if the new title handling is really working how it should be. My main issue is, that its not possible anymor (as far as i can see) to have different title and heading (e.g. title -> short form of heading).
Do you mean a title different from the link in the breadcrumb? If this is what you mean then yes, you can no longer have a title that's different from the breadcrumb. We could maybe improve how breadcrumbs are displayed and truncate them when they're too long. You can have a level 1 heading right at the start of your page after the title as long as it's different from the main title. Also it's not possible to disable the new title handling and get back to the
old behavior.
Well, actually it somehow is: if you don't use the title field at all, the first heading of your documents will be considered a title like it used to be.
It's a little bit annoying cause i use title and headings quite a lot and now evertything is messed up and i get doubled titles everywhere.
Sorry about that. I was (and still am) on of the strong proponents of the new behavior. I've heard many users complain about title handling in the past and I think the current version addresses these longstanding issues. However I know it's annoying for existing users such as you and I'd like to apologize for that. Guillaume
hel.
----- semantic-web.hel.at [email protected]
-- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3781448.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/
Hi, and thanks for your answer. Now i know what works and what does not work anymore. Guillaume Lerouge wrote:
Do you mean a title different from the link in the breadcrumb? If this is what you mean then yes, you can no longer have a title that's different from the breadcrumb. We could maybe improve how breadcrumbs are displayed and truncate them when they're too long.
In fact i think you are right, cause the title was not used as page title in the past, it was the title thats displayed in the breadcrumb. So mayby it shouldn`t have been called title or changed to the behavior we have now. Still sometimes it may be necessary to have a short title for the breadcrumb and a full title for the page. Don't know if its a good idea to truncate the title because that gives now control over the part displayed in the breadcrumb and if it makes sense. Guillaume Lerouge wrote:
You can have a level 1 heading right at the start of your page after the title as long as it's different from the main title.
Well, actually it somehow is: if you don't use the title field at all, the first heading of your documents will be considered a title like it used to be.
In the moment only heading 1 and 2 are used as title if theres no title given. I sometimes have pages that have heading 3 or 4 as title -> when theres no title the page name is used -> not good You know this is hypertext and i dont want to have endless topics but i also want to have the headings set to the correct level if i export my topics for print output and i think that is necessary if you use the wiki for documentation or writing more complex documents. There's also the problem that xwiki at the moment is not able to display special characters (äüö) in the breadcrumb if you don't use the title. Guillaume Lerouge wrote:
Sorry about that. I was (and still am) on of the strong proponents of the new behavior. I've heard many users complain about title handling in the past and I think the current version addresses these longstanding issues. However I know it's annoying for existing users such as you and I'd like to apologize for that.
I know that sometimes things have to be changed and mayby this was changed for the better, but at least existing users should be informed about consequences and the release notes should reflect the new behavior. Looking at this discussion and the release notes for 2.0 they don't. http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise20#HNewT... By the way (because i don't only want to complain all the time) xwiki 2.0 is really a great release and with every release working with xwiki becomes even better. Thanks hel. ----- semantic-web.hel.at [email protected] -- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3786511.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Hel, actually I think there is a fix for your title issue if you really want to get back to the old behavior: 1. Go to XWiki.XWikiSkins 2. Go to Edit > Class 3. Use the panel on the right to add a TextArea property named contentview.vm 4. Save the page 5. Go to your skin page (usually XWiki.DefaultSkin unless you changed it) 6. Go to Edit > Objects 7. Click to edit the XWiki.XWikiSkins object 8. Scroll to the bottom of the page 9. There is an empty field named "contentview.vm" located at the bottom. Paste the following code into it: ### ### Display document contents in "view" mode. ### ### TODO: Web service? ### <div id="xwikicontent"> ## ------------------------------- ## Compute the content to display ## ------------------------------- ## Honor the syntax if it's passed in the request. #set($outputSyntax = $xwiki.getAvailableRendererSyntax($request.outputSyntax, $request.outputSyntaxVersion)) #if ($outputSyntax) ## If the passed syntax is not an HTML-compatible syntax we need to HTML-escape it so that it can be ## displayed fine in HTML (since at the point this vm file is called we're already inside an HTML page with ## panels on the side, header, etc). #set($syntaxType = $outputSyntax.type.toIdString()) #if (($syntaxType == "xhtml") || ($syntaxType == "html")) #set ($renderedContent = $cdoc.getRenderedContent($outputSyntax)) #else ## Make sure to print correctly the result when it's not HTML #set ($renderedContent = "<pre>$escapetool.html($cdoc.getRenderedContent($outputSyntax))</pre>") #end #else #set ($renderedContent = $cdoc.getRenderedContent()) #end ## ---------------------------------------------------------------------------- ## Compute title to display and modify rendered content accordingly. ## ---------------------------------------------------------------------------- ###template("titlevars.vm") ## ---------------------------- ## Display the title ## ---------------------------- ##<div id="document-title"><h1>$titleToDisplay</h1></div> ## ---------------------------- ## Display the rendered content ## ---------------------------- $renderedContent ## ----------------------------------------------------------------------------------- ## Display the footnotes if the document is in 1.0 syntax and if there are any defined ## ----------------------------------------------------------------------------------- #set($footnotes = "#putFootnotes()") $xwiki.renderText($footnotes, $doc) </div> 1. Save the page 2. Force-refresh any page on your wiki 3. You should be back to the old behavior :-) Let me know if this worked for you, Guillaume On Thu, Oct 8, 2009 at 9:47 AM, hel-o <[email protected]> wrote:
Hi,
and thanks for your answer. Now i know what works and what does not work anymore.
Guillaume Lerouge wrote:
Do you mean a title different from the link in the breadcrumb? If this is what you mean then yes, you can no longer have a title that's different from the breadcrumb. We could maybe improve how breadcrumbs are displayed and truncate them when they're too long.
In fact i think you are right, cause the title was not used as page title in the past, it was the title thats displayed in the breadcrumb. So mayby it shouldn`t have been called title or changed to the behavior we have now.
Still sometimes it may be necessary to have a short title for the breadcrumb and a full title for the page. Don't know if its a good idea to truncate the title because that gives now control over the part displayed in the breadcrumb and if it makes sense.
Guillaume Lerouge wrote:
You can have a level 1 heading right at the start of your page after the title as long as it's different from the main title.
Well, actually it somehow is: if you don't use the title field at all,
the
first heading of your documents will be considered a title like it used to be.
In the moment only heading 1 and 2 are used as title if theres no title given. I sometimes have pages that have heading 3 or 4 as title -> when theres no title the page name is used -> not good
You know this is hypertext and i dont want to have endless topics but i also want to have the headings set to the correct level if i export my topics for print output and i think that is necessary if you use the wiki for documentation or writing more complex documents.
There's also the problem that xwiki at the moment is not able to display special characters (äüö) in the breadcrumb if you don't use the title.
Guillaume Lerouge wrote:
Sorry about that. I was (and still am) on of the strong proponents of the new behavior. I've heard many users complain about title handling in the past and I think the current version addresses these longstanding issues. However I know it's annoying for existing users such as you and I'd like to apologize for that.
I know that sometimes things have to be changed and mayby this was changed for the better, but at least existing users should be informed about consequences and the release notes should reflect the new behavior. Looking at this discussion and the release notes for 2.0 they don't.
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise20#HNewT...
By the way (because i don't only want to complain all the time) xwiki 2.0 is really a great release and with every release working with xwiki becomes even better.
Thanks hel.
----- semantic-web.hel.at [email protected]
-- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3786511.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/
Hi, Please note that you should do this only very temporarily since this is no longer the correct strategy. You should try to migrate ASAP to the new strategy: - use titles - remove previous level 1 headers - move all other level N headers to level N-1 headers. Thanks -Vincent On Oct 12, 2009, at 10:41 PM, Guillaume Lerouge wrote:
Hi Hel, actually I think there is a fix for your title issue if you really want to get back to the old behavior:
1. Go to XWiki.XWikiSkins 2. Go to Edit > Class 3. Use the panel on the right to add a TextArea property named contentview.vm 4. Save the page 5. Go to your skin page (usually XWiki.DefaultSkin unless you changed it) 6. Go to Edit > Objects 7. Click to edit the XWiki.XWikiSkins object 8. Scroll to the bottom of the page 9. There is an empty field named "contentview.vm" located at the bottom. Paste the following code into it:
### ### Display document contents in "view" mode. ### ### TODO: Web service? ### <div id="xwikicontent"> ## ------------------------------- ## Compute the content to display ## ------------------------------- ## Honor the syntax if it's passed in the request. #set($outputSyntax = $xwiki.getAvailableRendererSyntax($request.outputSyntax, $request.outputSyntaxVersion)) #if ($outputSyntax) ## If the passed syntax is not an HTML-compatible syntax we need to HTML-escape it so that it can be ## displayed fine in HTML (since at the point this vm file is called we're already inside an HTML page with ## panels on the side, header, etc). #set($syntaxType = $outputSyntax.type.toIdString()) #if (($syntaxType == "xhtml") || ($syntaxType == "html")) #set ($renderedContent = $cdoc.getRenderedContent($outputSyntax)) #else ## Make sure to print correctly the result when it's not HTML #set ($renderedContent = "<pre>$escapetool.html($cdoc.getRenderedContent($outputSyntax))</ pre>") #end #else #set ($renderedContent = $cdoc.getRenderedContent()) #end ## ---------------------------------------------------------------------------- ## Compute title to display and modify rendered content accordingly. ## ---------------------------------------------------------------------------- ###template("titlevars.vm") ## ---------------------------- ## Display the title ## ---------------------------- ##<div id="document-title"><h1>$titleToDisplay</h1></div> ## ---------------------------- ## Display the rendered content ## ---------------------------- $renderedContent ## ----------------------------------------------------------------------------------- ## Display the footnotes if the document is in 1.0 syntax and if there are any defined ## ----------------------------------------------------------------------------------- #set($footnotes = "#putFootnotes()") $xwiki.renderText($footnotes, $doc) </div>
1. Save the page 2. Force-refresh any page on your wiki 3. You should be back to the old behavior :-)
Let me know if this worked for you,
Guillaume
On Thu, Oct 8, 2009 at 9:47 AM, hel-o <[email protected]> wrote:
Hi,
and thanks for your answer. Now i know what works and what does not work anymore.
Guillaume Lerouge wrote:
Do you mean a title different from the link in the breadcrumb? If this is what you mean then yes, you can no longer have a title that's different from the breadcrumb. We could maybe improve how breadcrumbs are displayed and truncate them when they're too long.
In fact i think you are right, cause the title was not used as page title in the past, it was the title thats displayed in the breadcrumb. So mayby it shouldn`t have been called title or changed to the behavior we have now.
Still sometimes it may be necessary to have a short title for the breadcrumb and a full title for the page. Don't know if its a good idea to truncate the title because that gives now control over the part displayed in the breadcrumb and if it makes sense.
Guillaume Lerouge wrote:
You can have a level 1 heading right at the start of your page after the title as long as it's different from the main title.
Well, actually it somehow is: if you don't use the title field at all,
the
first heading of your documents will be considered a title like it used to be.
In the moment only heading 1 and 2 are used as title if theres no title given. I sometimes have pages that have heading 3 or 4 as title -> when theres no title the page name is used -> not good
You know this is hypertext and i dont want to have endless topics but i also want to have the headings set to the correct level if i export my topics for print output and i think that is necessary if you use the wiki for documentation or writing more complex documents.
There's also the problem that xwiki at the moment is not able to display special characters (äüö) in the breadcrumb if you don't use the title.
Guillaume Lerouge wrote:
Sorry about that. I was (and still am) on of the strong proponents of the new behavior. I've heard many users complain about title handling in the past and I think the current version addresses these longstanding issues. However I know it's annoying for existing users such as you and I'd like to apologize for that.
I know that sometimes things have to be changed and mayby this was changed for the better, but at least existing users should be informed about consequences and the release notes should reflect the new behavior. Looking at this discussion and the release notes for 2.0 they don't.
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise20#HNewT...
By the way (because i don't only want to complain all the time) xwiki 2.0 is really a great release and with every release working with xwiki becomes even better.
Thanks hel.
----- semantic-web.hel.at [email protected]
Thanks for both replies. First of all, I'd like to use the new strategy but in my opinion it's not ready for use now and has some restrictions. My problem is not that i didn't use titles. I do use titles quit a lot and think that the use of titles is somhow restricted now. Further more, i'd like to choose the level of the heading of my pages more flexible. (Not only heading 1 or heading 2) I'll try the suggested way to bring back the old behavior to let you know if it works. But i think i'll switch back as soon as the encoding bug (http://jira.xwiki.org/jira/browse/XWIKI-4417) ist fixed. Thanks hel. vmassol wrote:
Hi,
Please note that you should do this only very temporarily since this is no longer the correct strategy. You should try to migrate ASAP to the new strategy: - use titles - remove previous level 1 headers - move all other level N headers to level N-1 headers.
Thanks -Vincent
On Oct 12, 2009, at 10:41 PM, Guillaume Lerouge wrote:
Hi Hel, actually I think there is a fix for your title issue if you really want to get back to the old behavior:
1. Go to XWiki.XWikiSkins 2. Go to Edit > Class 3. Use the panel on the right to add a TextArea property named contentview.vm 4. Save the page 5. Go to your skin page (usually XWiki.DefaultSkin unless you changed it) 6. Go to Edit > Objects 7. Click to edit the XWiki.XWikiSkins object 8. Scroll to the bottom of the page 9. There is an empty field named "contentview.vm" located at the bottom. Paste the following code into it:
----- semantic-web.hel.at [email protected] -- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3821187.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi hel, On Oct 14, 2009, at 9:53 AM, hel-o wrote:
Thanks for both replies.
First of all, I'd like to use the new strategy but in my opinion it's not ready for use now and has some restrictions.
What restrictions?
My problem is not that i didn't use titles. I do use titles quit a lot and think that the use of titles is somhow restricted now.
What restrictions?
Further more, i'd like to choose the level of the heading of my pages more flexible. (Not only heading 1 or heading 2)
WDYM? I don't understand. We have 6 levels of headings. Thanks -Vincent
I'll try the suggested way to bring back the old behavior to let you know if it works. But i think i'll switch back as soon as the encoding bug (http://jira.xwiki.org/jira/browse/XWIKI-4417) ist fixed.
Thanks hel.
vmassol wrote:
Hi,
Please note that you should do this only very temporarily since this is no longer the correct strategy. You should try to migrate ASAP to the new strategy: - use titles - remove previous level 1 headers - move all other level N headers to level N-1 headers.
Thanks -Vincent
On Oct 12, 2009, at 10:41 PM, Guillaume Lerouge wrote:
Hi Hel, actually I think there is a fix for your title issue if you really want to get back to the old behavior:
1. Go to XWiki.XWikiSkins 2. Go to Edit > Class 3. Use the panel on the right to add a TextArea property named contentview.vm 4. Save the page 5. Go to your skin page (usually XWiki.DefaultSkin unless you changed it) 6. Go to Edit > Objects 7. Click to edit the XWiki.XWikiSkins object 8. Scroll to the bottom of the page 9. There is an empty field named "contentview.vm" located at the bottom. Paste the following code into it:
Tried to explain that in in my post that was followed by the fix Guillaume Lerouge provided (thanks again). But again the main issues for me are: - No possibility to have different Title and Breadcrumb - No multilanguage support -> see encoding problem - Only heading 1 and 2 possible as heading of page, if different heading and no title -> page name in breadcrumb hel. vmassol wrote:
Hi hel,
On Oct 14, 2009, at 9:53 AM, hel-o wrote:
Thanks for both replies.
First of all, I'd like to use the new strategy but in my opinion it's not ready for use now and has some restrictions.
What restrictions?
----- semantic-web.hel.at [email protected] -- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3821310.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Hel, On Oct 14, 2009, at 10:32 AM, hel-o wrote:
Tried to explain that in in my post that was followed by the fix Guillaume Lerouge provided (thanks again). But again the main issues for me are:
- No possibility to have different Title and Breadcrumb
But Breadcrumb is the title. I don't understand the need and use case. Could you explain? Could you also explain what you'd like to have?
- No multilanguage support -> see encoding problem
This is a bug. It'll be fixed soon enough.
- Only heading 1 and 2 possible as heading of page, if different heading and no title -> page name in breadcrumb
Ok true. To be honest, I would personally remove the level 2 as a header candidate since I don't see any logical reason to have it. Could you explain your need to have level 3-6 headers to be considered as dynamic titles? Thanks -Vincent
hel.
vmassol wrote:
Hi hel,
On Oct 14, 2009, at 9:53 AM, hel-o wrote:
Thanks for both replies.
First of all, I'd like to use the new strategy but in my opinion it's not ready for use now and has some restrictions.
What restrictions?
Hi, vmassol wrote:
- No possibility to have different Title and Breadcrumb
But Breadcrumb is the title. I don't understand the need and use case. Could you explain? Could you also explain what you'd like to have?
breadcrumb is breadcrumb title is title (at least i see a difference in the function -> title=title of page, breadcrumb=navigation aid) . In most cases it will be appropriate that the title is displayed in the breadcrumb. But when i have e.g. very long titles it may be better to have a short form of the title in the breadcrumb. vmassol wrote:
- Only heading 1 and 2 possible as heading of page, if different heading and no title -> page name in breadcrumb
Ok true. To be honest, I would personally remove the level 2 as a header candidate since I don't see any logical reason to have it. Could you explain your need to have level 3-6 headers to be considered as dynamic titles?
If i use the wiki for documentation and to create structured hypertext, i will have my document at severel levels in the wiki (which has some real gread advantages -> topics reusable in severel contexts, topics interlinkable in strucure and "cross structure" ...) But i will also have the need to create printable versions of my documentation form time to time. XWiki has a real good export mechanism (with still some need of improvement) where i can also export page structures (includechildpages). If i use this i'd like to have the structure also reflected in the titles (in this case headings). So a title in topic in level 3 should become heading 3 ... If all topics have heading 1 the exported document doesn't reflect the wiki structure anymore. Hope i made my points clear hel. ----- semantic-web.hel.at [email protected] -- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3827784.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Hel, On Thu, Oct 15, 2009 at 9:45 AM, hel-o <[email protected]> wrote:
Hi,
vmassol wrote:
- No possibility to have different Title and Breadcrumb
But Breadcrumb is the title. I don't understand the need and use case. Could you explain? Could you also explain what you'd like to have?
breadcrumb is breadcrumb title is title (at least i see a difference in the function -> title=title of page, breadcrumb=navigation aid) . In most cases it will be appropriate that the title is displayed in the breadcrumb. But when i have e.g. very long titles it may be better to have a short form of the title in the breadcrumb.
I still think the right solution for this would be to truncate titles in the breadcrumb, so that "A very long title for my page that I want to be real long for testing" would become: some page >> another page >> A very long title for my page th... >> some children page WDYT?
vmassol wrote:
- Only heading 1 and 2 possible as heading of page, if different heading and no title -> page name in breadcrumb
Ok true. To be honest, I would personally remove the level 2 as a header candidate since I don't see any logical reason to have it. Could you explain your need to have level 3-6 headers to be considered as dynamic titles?
If i use the wiki for documentation and to create structured hypertext, i will have my document at severel levels in the wiki (which has some real gread advantages -> topics reusable in severel contexts, topics interlinkable in strucure and "cross structure" ...)
But i will also have the need to create printable versions of my documentation form time to time. XWiki has a real good export mechanism (with still some need of improvement) where i can also export page structures (includechildpages). If i use this i'd like to have the structure also reflected in the titles (in this case headings). So a title in topic in level 3 should become heading 3 ...
If all topics have heading 1 the exported document doesn't reflect the wiki structure anymore.
For this use case I think it should be the job of the exporter to maintain a "right" title structure by automatically recalculating all titles and turning them into level 1, 2, 3 etc titles on the fly according to the logic of the final document. Thus the child page of a child page of the original page would have its title automatically transformed into a heading 3 and its heading 1 turned into heading 4 and heading 2 into heading 5 so that the exported document looks good. This way the page would look good while on its own but also when exported. Wouldn't this be a better solution? Guillaume
Hope i made my points clear hel.
----- semantic-web.hel.at [email protected]
-- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3827784.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/
Hi, Guillaume Lerouge wrote:
I still think the right solution for this would be to truncate titles in the breadcrumb, so that
"A very long title for my page that I want to be real long for testing" would become:
some page >> another page >> A very long title for my page th... >> some children page
WDYT?
I agree, this will work in most cases (in fact in almost all cases;). Guillaume Lerouge wrote:
For this use case I think it should be the job of the exporter to maintain a "right" title structure by automatically recalculating all titles and turning them into level 1, 2, 3 etc titles on the fly according to the logic of the final document.
Thus the child page of a child page of the original page would have its title automatically transformed into a heading 3 and its heading 1 turned into heading 4 and heading 2 into heading 5 so that the exported document looks good.
This way the page would look good while on its own but also when exported.
Wouldn't this be a better solution?
That would be great, but seems to add a rather complex task to the export. In the end it's a question on how much control the user has over the content and how its displayed and how much is controlled automatically by the wiki (which may be seen as a restriction, especially when things that worked before don't work anymore:). hel. ----- semantic-web.hel.at [email protected] -- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3828836.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Thanks. It didn't work for me, but i've found one more fix for this - open your style sheet and add the following: #document-title { display: none; } And the document title disappears. Mandatory document titles mess with minimalistic design, you should introduce an option to disable them without hacking magic. Guillaume Lerouge wrote:
Hi Hel, actually I think there is a fix for your title issue if you really want to get back to the old behavior:
1. Go to XWiki.XWikiSkins 2. Go to Edit > Class 3. Use the panel on the right to add a TextArea property named contentview.vm 4. Save the page 5. Go to your skin page (usually XWiki.DefaultSkin unless you changed it) 6. Go to Edit > Objects 7. Click to edit the XWiki.XWikiSkins object 8. Scroll to the bottom of the page 9. There is an empty field named "contentview.vm" located at the bottom. Paste the following code into it:
### ### Display document contents in "view" mode. ### ### TODO: Web service? ### <div id="xwikicontent"> ## ------------------------------- ## Compute the content to display ## ------------------------------- ## Honor the syntax if it's passed in the request. #set($outputSyntax = $xwiki.getAvailableRendererSyntax($request.outputSyntax, $request.outputSyntaxVersion)) #if ($outputSyntax) ## If the passed syntax is not an HTML-compatible syntax we need to HTML-escape it so that it can be ## displayed fine in HTML (since at the point this vm file is called we're already inside an HTML page with ## panels on the side, header, etc). #set($syntaxType = $outputSyntax.type.toIdString()) #if (($syntaxType == "xhtml") || ($syntaxType == "html")) #set ($renderedContent = $cdoc.getRenderedContent($outputSyntax)) #else ## Make sure to print correctly the result when it's not HTML #set ($renderedContent = "<pre>$escapetool.html($cdoc.getRenderedContent($outputSyntax))</pre>") #end #else #set ($renderedContent = $cdoc.getRenderedContent()) #end ## ---------------------------------------------------------------------------- ## Compute title to display and modify rendered content accordingly. ## ---------------------------------------------------------------------------- ###template("titlevars.vm") ## ---------------------------- ## Display the title ## ---------------------------- ##<div id="document-title"><h1>$titleToDisplay</h1></div> ## ---------------------------- ## Display the rendered content ## ---------------------------- $renderedContent ## ----------------------------------------------------------------------------------- ## Display the footnotes if the document is in 1.0 syntax and if there are any defined ## ----------------------------------------------------------------------------------- #set($footnotes = "#putFootnotes()") $xwiki.renderText($footnotes, $doc) </div>
1. Save the page 2. Force-refresh any page on your wiki 3. You should be back to the old behavior :-)
Let me know if this worked for you,
Guillaume
On Thu, Oct 8, 2009 at 9:47 AM, hel-o <[email protected]> wrote:
Hi,
and thanks for your answer. Now i know what works and what does not work anymore.
Guillaume Lerouge wrote:
Do you mean a title different from the link in the breadcrumb? If this
is
what you mean then yes, you can no longer have a title that's different from the breadcrumb. We could maybe improve how breadcrumbs are displayed and truncate them when they're too long.
In fact i think you are right, cause the title was not used as page title in the past, it was the title thats displayed in the breadcrumb. So mayby it shouldn`t have been called title or changed to the behavior we have now.
Still sometimes it may be necessary to have a short title for the breadcrumb and a full title for the page. Don't know if its a good idea to truncate the title because that gives now control over the part displayed in the breadcrumb and if it makes sense.
Guillaume Lerouge wrote:
You can have a level 1 heading right at the start of your page after
the
title as long as it's different from the main title.
Well, actually it somehow is: if you don't use the title field at all, the first heading of your documents will be considered a title like it used to be.
In the moment only heading 1 and 2 are used as title if theres no title given. I sometimes have pages that have heading 3 or 4 as title -> when theres no title the page name is used -> not good
You know this is hypertext and i dont want to have endless topics but i also want to have the headings set to the correct level if i export my topics for print output and i think that is necessary if you use the wiki for documentation or writing more complex documents.
There's also the problem that xwiki at the moment is not able to display special characters (äüö) in the breadcrumb if you don't use the title.
Guillaume Lerouge wrote:
Sorry about that. I was (and still am) on of the strong proponents of
the
new behavior. I've heard many users complain about title handling in the past and I think the current version addresses these longstanding issues. However I know it's annoying for existing users such as you and I'd like to apologize for that.
I know that sometimes things have to be changed and mayby this was changed for the better, but at least existing users should be informed about consequences and the release notes should reflect the new behavior. Looking at this discussion and the release notes for 2.0 they don't.
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise20#HNewT...
By the way (because i don't only want to complain all the time) xwiki 2.0 is really a great release and with every release working with xwiki becomes even better.
Thanks hel.
----- semantic-web.hel.at [email protected]
-- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3786511.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3917890.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (5)
-
Guillaume Lerouge -
hel-o -
kuchumovn -
Niels Mayer -
Vincent Massol