Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Bare PerlMonks, great for small devices

by davido (Archbishop)
on Mar 27, 2005 at 20:58 UTC ( #442703=note: print w/replies, xml ) Need Help??

in reply to Bare PerlMonks, great for small devices

Thanks tye. This is great. Time to dust off the Zaurus PDA once again. ...and now I can browse from the cell phone in a way that minimizes per-kilobyte charges. Good job.

Not sure if it's just my use of the Dark theme, but followups cannot be read unless you click directly on their title.


  • Comment on Re: Bare PerlMonks, great for small devices

Replies are listed 'Best First'.
Re^2: Bare PerlMonks, great for small devices (CSS)
by tye (Sage) on Mar 28, 2005 at 05:26 UTC

    It doesn't output the pre-amble CSS (user CSS and links to the style sheets). I'm a bit reluctant to add so much extra data to a format meant for use on devices that might object (my phone already complains "too large" for some things). (Update) It also doesn't output some enclosing table(s). The former is probably (I haven't investigated, but you should feel free to) why the text color was not changed to a light color and the latter is probably why you can read the main node (because it avoids changing the background color to black).

    style=bare has been supported for a long time and I've used it some for quite a while (it was just inconvenient). Now that I'm using it much more, I've already got several plans for it. I'd like each "bare" page to end (or begin) with just one link to a navigation menu. I'm thinking this link will take you to a list of nodelet titles and you click on the title of the nodelet you want to see. We might even eventually make this smart enough so that selecting the "approval nodelet" (for example) would make the nodelet act as if you are viewing it on the node that you clicked from.

    I'd also like the "bare" style to display much less depth in threads (like text one reply deep and just titles two replies deep).

    We also need an alternate format for Message Inbox that doesn't use a table (I also wanted it to not use a <form>, but the items that motivated that desire have disappeared so I may change my mind -- but I still somewhat like the idea of just listing a few messages, each with a link that takes you to a page for just that message that shows all of the details and that contains a link to "archive", a link to "delete", and a form to reply at the end).

    It'd be cool if Recently Active Threads would default to showing only the root and the most recent reply per thread if style is "bare" (which is also the style I'd use most with it, even when not "bare") and if Newest Nodes would skip all but the top few "Newest Notes" (and it still needs to separate new notes between those in new threads and those in old threads).

    - tye        

      It'd be cool if Recently Active Threads would default to showing only the root and the most recent reply per thread if style is "bare"

      If you can expand on what you want a little then ill do a patch for you. You only want the root and the absolute most recent post that is a descendent of that root?

      Also how can I tell if the page is displaytype=bare? Is there a variable set somewhere that Ive forgotten or never encountered?


        Yes, just the two nodes per thread (one node for threads with no replies). I can't think of anything to expand on beyond that.

        $q->param("style") should be "bare". If that doesn't work already, then we'll need to move some code out of "general container" so this parameter gets sets sooner.


        - tye        

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://442703]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2018-06-24 23:01 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.