Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^3: Table of Contents in Newest Nodes

by particle (Vicar)
on Jun 02, 2004 at 15:07 UTC ( #359477=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Table of Contents in Newest Nodes
in thread Table of Contents in Newest Nodes

i'd rather see something like the sample html below. i don't understand the use of an unordered list with anchor tags and hard breaks instead of list items, and i think a table offers more control. note that i added a row header, "Table of Contents." also, i renamed the existing css class and added others, and added a comma-space-hard break after New Notes.

<table class="nnTOC" cellspacing="0"> <tr> <th class="nnTOCtop" name="toc_top"><a href="#toc_top">Table of Conten +ts</a></th> </tr> <tr> <td class="nnTOCbody"> There are <br /> <a href="#toc_New Discussion">5&nbsp;New&nbsp;Discussions</a>, <br /> <a href="#toc_New Questions">21&nbsp;New&nbsp;Questions</a>, <br /> <a href="#toc_New Meditations">1&nbsp;New&nbsp;Meditation</a>, <br /> <a href="#toc_New Patches">5&nbsp;New&nbsp;Patches</a>, <br /> <a href="#toc_New Perl Announcements">1&nbsp;New&nbsp;Perl&nbsp;Announ +cement</a>, <br /> <a href="#toc_New Cool Uses For Perl">1&nbsp;New&nbsp;Cool&nbsp;Use&nb +sp;For&nbsp;Perl</a>, <br /> <a href="#toc_New Code">1&nbsp;New&nbsp;Code</a>, <br /> <a href="#toc_New Notes">234&nbsp;New&nbsp;Notes</a>, <br /> and <a href="#toc_New Users">12&nbsp;New&nbsp;Users</a><br /> not yet reviewed... </table>

here's how it looks:

Table of Contents
There are
5 New Discussions,
21 New Questions,
1 New Meditation,
5 New Patches,
1 New Perl Announcement,
1 New Cool Use For Perl,
1 New Code,
234 New Notes,
and 12 New Users
not yet reviewed...

no css changes are neccessary to view this properly in any browser. with a little css magic, it's possible to make the TOC body appear on fewer lines: <style> .nnTOCbody br { display: none; }</style>

let me know what you think.

~Particle *accelerates*

Replies are listed 'Best First'.
Re^4: Table of Contents in Newest Nodes
by ysth (Canon) on Jun 10, 2004 at 17:31 UTC
    While adding optional counts to the banner format may soon make this unneeded, I'm trying to do it via css now.

    Using: .nnSummary br { display: none; } and the long format Newest Nodes doesn't seem to have any effect. Can anyone tell me what I'm doing wrong?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://359477]
[1nickt]: hippo no reason why not other than wanting to check an assumption :-)
[hippo]: For a self-contained application which can therefore ensure thread safety it seems like a sensible approach.
[choroba]: No, if there are no threads, then the user wants to use MCE. If there are threads, the user can choose.
[1nickt]: choroba Understood. I'm wondering about the logic in a cpanfile. If the perl doesn't support threads, it's easy: require MCE. If the perl does support threads, as you say the user has a choice, so require both? Or, assume that irrespective of the choide
[1nickt]: ... choice, the threaded-perl user *probably* wants to use threads, therefore only require threads and leave MCE out, allowing the user to manually install if desired?

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2017-10-18 13:20 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (244 votes). Check out past polls.