Banner


Trying to replicate, unsuccessfully, in a wiki page, the same recent changes and search links and box as at the top right of this page template.

The goal is to create a Site.TopBar to replace the current template based wikihead and wikicmd, thus giving PmWiki even more flexibility. This is intended to be similar to the Site.SideBar.

>>rfloat font-size=small<<
%rel=nofollow accesskey=$[ak_recentchanges]% [[{*$Group}/RecentChanges | $[Recent Changes] ]]%% - [[{$SiteGroup}/Search | $[Search] ]]: (:searchbox size=20:)
>><<

How do I customise the Search button and get everything to stay on one line?

You could try a table:

||class='rfloat' width=*
|| %rel=nofollow accesskey=$[ak_recentchanges]% [[{*$Group}/RecentChanges | $[Recent Changes] ]]%% - [[{$SiteGroup}/Search | $[Search] ]]:|| (:searchbox size=20:)||
Recent Changes - Search:

Often a form becomes its own block, so any text to appear on the same line has to be part of the form:

(:input form action={$ScriptUrl} method=get class='rfloat':)
%accesskey=$[ak_recentchanges]% [[{*$Group}/RecentChanges | $[Recent Changes] ]]%% -
[[{$SiteGroup}/Search | $[Search] ]]:
(:input hidden n '{$FullName}' :)
(:input hidden action 'search' :)
(:input text q class='inputbox searchbox' :)
(:input submit value='$[Go]' class='inputbutton searchbutton' :)
(:input end:)

Recent Changes - Search:

 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.03 00.02 MarkupToHTML begin
 3: 00.03 00.03 MarkupToHTML begin
 4: 00.04 00.03 MarkupToHTML end
 5: 00.04 00.03 MarkupToHTML begin
 6: 00.04 00.04 MarkupToHTML end
 7: 00.04 00.04 MarkupToHTML begin
 8: 00.04 00.04 MarkupToHTML end
 9: 00.05 00.05 MarkupToHTML end
10: 00.05 00.05 MarkupToHTML begin
11: 00.06 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
12: 00.07 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls end
13: 00.07 00.06 MarkupToHTML end
14: 00.07 00.06 MarkupToHTML begin
15: 00.08 00.07 MarkupToHTML end
16: 00.08 00.07 now
Peak memory: 3,173,392 bytes