By CallumMcL
Description
In a wiki that I'm a part of, we have very little control over our page titles. If you have a similar issue, the following code should point you in the right direction to create custom titles that can utilize WikiDot text decoration such as colour, weight, and italics.
NOTE: Many wikidots may have different a layout for the page title. The following layout code is only a guide, you may need to fiddle around with it before it resembles your own wikidot's page title layout.
Code
[[module CSS]]
#page-title {
visibility: hidden;
}
[[/module]]
[!-- THESE LAYOUT TAGS ARE JUST A GUIDE --]
[[div style="width:85%;height:59px;position:absolute;font-size:200%;left:256px;top:63px;border-bottom:#666666 1px solid"]]
Your Text Here
[[/div]]
In action
CallumMcL's Custom Title
Thanks to tsangk for this great snippet: conditional-blocks
text above inserted with:
[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]
Other snippets posted by CallumMcL
Pretty Tables - 29 May 2013 06:14
Rate this solution
If you think this solution is useful — rate it up!
Don't forget that in ListPages etc it is the original pagename which will be displayed, not your custom replacement.
It would be better for a site admin to relax the permissions slightly in the site manger to allow members to rename pages. But that only affects the url. If you can edit the page and add a CSS module then you have the relevant permissions already to change the page title so I don't really see the need for this snippet.
Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.
Sorry guys, don't add the extra div to pad. It's from an older version of the code where the title would float. I don't know how to edit the post.
EDIT: I figured out how to edit the page, and removed the redundant div.
public int a(int c) { b(c); }
public int b(int d) { a(d); }