Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.
The following page has been changed by BobHarner: http://wiki.apache.org/lenya/HowToDefaultPublicationUsefulChanges The comment on the change is: Added internal anchors, menu at top and automatic section numbering ------------------------------------------------------------------------------ + #pragma section-numbers 2 ## page was renamed from DefaultPublicationUsefulChanges + = Useful changes to the default publication = - - == Introduction == Most Lenya users use the Default publication as a starting point to set up their publication. There are a number of things that one should either remember or make a conscious decision to ignore when starting a new publication that way. As many Lenya admins don't have to do this very often here is a little checklist of tweaks you may want or not want to inplement before you have your users start the editing: - = Recommended Tweaks in the CMS part = + * [#removelenya Remove the Try user "lenya" and password "levi" message on the login screen] + * [#clearcache Add the Cocoon Clear Cache Actions to the Lenya Admin screen] + * [#navtitle Hand the Navigation Title through to the browser] + * [#checkout Allow users to override checkouts by other users] + ---- + + [[Anchor(removelenya)]] == Remove the Try user "lenya" and password "levi" message on the login screen == '''Why?''' @@ -47, +53 @@ It makes sense to introduce a new key and not just change the text for "try-user-lenya" because it actually is a different message and will be much easier to find a diff if you ever want to find out later what you changed against the standard. + ---- + + [[Anchor(clearcache)]] == Add the Cocoon Clear Cache Actions to the Lenya Admin screen == This needs to be reworked a bit.. Does not work like described because the sitemap entry does not call the usecase. Also, according to Gregor Rothfuss [http://mail-archives.apache.org/mod_mbox/lenya-user/200506.mbox/[EMAIL PROTECTED] in this message on the mailing list]: "this is more of a historic page. back in cocoon 2.1.5 days, the cache sometimes had issues, but with 2.1.7, it is not really necessary to clean out the memory cache." @@ -132, +141 @@ Note: If you call the "Cocoon and Server Status" right after having cleared the Cache you will still find entries in the cache. To be more accurate: You will '''again''' find entries in the cache because in order to serve the page items got cached again already. So you will probably never see zero items in the cache in the Status page. - = Recommended Tweaks in the Publication itself = + ---- + [[Anchor(navtitle)]] == Hand the Navigation Title through to the browser == - It's just a detail, but by default pages delivered by Lenya don't show the navigation title in the browsers window title. + It's just a detail, but by default pages delivered by Lenya don't show the navigation title in the browsers window title. There have been a number of different approaches discussed on the lenya-users mailing list. Two are presented here: - There have been a number of different approaches discussed on the lenya-users mailing list. What makes most sense in most cases is to use the actual navigation title from the metadata. This is done like this: + === Method 1: Use the Navigation Title from the Metadata === Edit xhtml2xhtml.xsl to wrap the navigation title into a div tag: @@ -187, +197 @@ '''Note:''' If you use custom document types make sure you change the <yourdoctype>2xhtml.xsl stylesheets to generate the {{<div id="title">}} tag. - == Hand the Navigation Title through to the browser Method 2 == + === Method 2: Hand the Navigation Title through to the browser === This is a useful way of making the menu bar in the browser display the same text as found on the link in the menu, i.e. the navigation title NOT from the metadata. This means that your content editors need only maintain the document name in one place. @@ -215, +225 @@ It's worth noting that if you play with the navigation title, make a mistake, and end up returning a blank title, lenya tends to create HTML for the title in the form <head><title /></head>. Internet Explorer can't cope with this and will return a blank page. If you are getting blank pages in IE, check for this problem. - = Useful Tweaks in Special Contexts = - + ---- + [[Anchor(checkout)]] == Allow users to override checkouts by other users == '''Why?''' --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
