[xwiki-devs] change default page data like 'page created by xxx user' and 'page last modified at xxx time'.
1] I need to change "Created by xxx on 2009/09/09 00:00" displayed at every page bottom (where xxx is any creator of page). By default, on every new page, creator should display name "MyOrganizationName" irrespective of the creator. 2] Need to remove user details from "Last modified by SuperUser on 2016/05/12 13:06". It should display only "Last modified on 2016/05/12 13:06". 3] Need to remove whole "Last modified by SuperUser on 2016/05/12 13:06" line from a specific page (Home page in my case). -- View this message in context: http://xwiki.475771.n2.nabble.com/change-default-page-data-like-page-created... Sent from the XWiki- Dev mailing list archive at Nabble.com.
These messages are created via translation keys, and you can change then by adding a "translation" page to your wiki. a) to find out the keys, e.g. search for them im l10n.xwiki, org. e.g. : http://l10n.xwiki.org/xwiki/bin/view/L10N/Search?application=&name=&key=&ori... there you can see the key is 'core.footer.creation' and the translation for en is "Created by {0} on {1}" b) to create a "translation page", create a new empty page in your wiki, then go to the object editor and add an an object of type "XWiki.TranslationDocumentClass" and set scope to "Wiki" or "Global" Save the page and then edit the page again in the Wiki editor (or the "source" tab of the WYSIWYG editor) and add one line for each text you want to adapt, e.g. core.footer.creation=Created by MyOrganizationName on {1} Using the same trick for single pages is possible in principle, but then you would have make the translation to be marked as "On Demand" and add some velocity code on the home page to tell that the home page demands this translation. How these translation pages work is documented here http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplicat... if it is enough to hide the text via CSS, just add a "XWiki.StyleSheetExtension" object on that page and set the usage to "on this page only" this is documented as part of the "skin extension" mechanism: http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial#HMi...
1] I need to change "Created by xxx on 2009/09/09 00:00" displayed at every page bottom (where xxx is any creator of page). By default, on every new page, creator should display name "MyOrganizationName" irrespective of the creator.
2] Need to remove user details from "Last modified by SuperUser on 2016/05/12 13:06". It should display only "Last modified on 2016/05/12 13:06".
3] Need to remove whole "Last modified by SuperUser on 2016/05/12 13:06" line from a specific page (Home page in my case).
-- View this message in context: http://xwiki.475771.n2.nabble.com/change-default-page-data-like-page-created... Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
Thanx. It worked for 1) and 2) part of the question. But I could not do it for part 3) i.e. removing 'created by' and 'modified by' from Home page. -- View this message in context: http://xwiki.475771.n2.nabble.com/change-default-page-data-like-page-created... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Did you try the solution via CSS? I think this should work, as the relevant sections have CSS classes not used elsewhere. Aside for that I have to admit that I have no good idea how to hide content for a single page only -- except for some pretty wild hacks with the page rendering templates that I really prefer to avoid.
Thanx. It worked for 1) and 2) part of the question. But I could not do it for part 3) i.e. removing 'created by' and 'modified by' from Home page.
-- View this message in context: http://xwiki.475771.n2.nabble.com/change-default-page-data-like-page-created... Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
participants (2)
-
Clemens Klein-Robbenhaar -
superuser