How to configure the placement of the sidebar when displaying books

14 views
Skip to first unread message

gerry

unread,
Apr 18, 2013, 1:37:18 AM4/18/13
to xtf-...@googlegroups.com
In putting together our Tibetan digital library, we notice that the sidebar containing the table of contents is automatically sized larger than what we want and contains a lot of white space (see attached image). We typically then go and reduce the size of the sidebar to cover up the white space so we can read more text. When we then select another table of contents entry, the sidebar automatically reverts back to the larger size.

Is there a way to configure XTF to keep the size of the table of contents sidebar reduced after a table of contents selection?

Thanks,

--Gerry
Screen Shot 2013-04-17 at 10.20.40 PM.png

dan haig

unread,
Apr 18, 2013, 9:32:36 AM4/18/13
to xtf-...@googlegroups.com
With css, no?

--
You received this message because you are subscribed to the Google Groups "XTF Users List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtf-user+u...@googlegroups.com.
To post to this group, send email to xtf-...@googlegroups.com.
Visit this group at http://groups.google.com/group/xtf-user?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Oystein Reigem

unread,
Apr 19, 2013, 3:47:46 AM4/19/13
to xtf-...@googlegroups.com
Hi Gerry,

The toc and the content are shown in two frames in a frameset that is defined in teiDocFormatter.xsl:

   ...
   <!-- ====================================================================== -->
   <!-- Frames Template                                                        -->
   <!-- ====================================================================== -->
   <xsl:template name="frames" exclude-result-prefixes="#all">
   ...
           <frameset cols="35%,65%">
           ...

So the toc automatically gets 35% of the width.

Perhaps a solution with a fixed width for the toc - e.g, 300 pixels - is better?

           <frameset cols="300,*">

If you rather want your application to remember the width set by the user you need some scripting (javascript), I think.

Cheers,

- Øystein -

Gerry Wiener

unread,
Apr 22, 2013, 10:37:14 PM4/22/13
to xtf-...@googlegroups.com
Hi Oyestein,

Great -- we modified the frameset cols and got just the results we needed! Thank you very much for your help.

--Gerry


dan haig

unread,
Apr 23, 2013, 9:13:22 AM4/23/13
to xtf-...@googlegroups.com
That's funny, we got rid of the frames first thing and I had forgotten that they were there out of the box. 

Oystein Reigem

unread,
Apr 23, 2013, 5:34:41 PM4/23/13
to xtf-...@googlegroups.com
I got rid of the frames also. Or rather my colleague did, before I took over his work. But I missed them too.

:-P

- Øystein -




Reply all
Reply to author
Forward
0 new messages