[pmwiki-users] Edit, Preview, and Save Without Scrolling
H. Fox
HaganFox at Users.SourceForge.net
Tue Jan 25 17:18:19 CST 2005
I'm working on another skin and I have a question about previewing.
Is it possible to append "#preview" to the URL generated by the Preview
button on an Edit Page?
Here's why: You should be able to preview and save a page without
scrolling.
The PreviewFirst recipe merely postpones scrolling. Instead of
{click Preview} => scroll => view => {click Save}
you get
{click Preview} => view => scroll => {click Save}.
I'm trying for a more usable
{click Preview} => view => {click Save}.
One way to do this is to
1) place an anchor (<a name='preview' id='preview'></a>) next to
the Save button and then
2) have the Preview button append #preview to the URL it produces.
#1 is easy to do in a skin.php file. Is #2 possible?
Example: If you shrink your browser to 800x600 and follow the link on
this page
http://www.pmwiki.org/wiki/Test/LightSkinEditPage
you should be able to click the top "Preview" button and have it do
exactly what it does now, except the page will jump down so the buttons
just below the large text area (including the Save button) are at very
top of your browser's viewable area. From there you could just click
the Save button.
Edit. Preview. Save. No scrolling necessary -- at least not for pages
without much content.
Thanks,
Hagan
ps: It would be helpful in at least two ways if the <br /> that follows
the Button Bar were in $PageEditFmt rather than $EditMessageFmt.
pps: Is there some resource that explains how to use $[language]
variables in skin.php files?
More information about the pmwiki-users
mailing list