Loading...
 
Features / Usability

Features / Usability


Page Content TOC box?

posts: 30 United States


Hi,
Is it possible to create a Table of Contents (TOC) in a box, such as the "Page content" shown here http://www.bitweaver.org/wiki/ in Bitweaver, and here http://www.mediawiki.org/wiki/Main_Page on Media wiki. I really like the way the that Bitweaver puts the TOC in the "Page Contents" box, and then that whole TOC box at the side of the page and the text of the page is on the other side of the page.

Can Tikiwiki do anything like this?

Thanks,
Stephen




posts: 84 Singapore
Thanks. Works fine now. There were no lib/wikiplugins/wikiplugin_div.php file earlier.
posts: 131 Singapore

> > Float was added in one of the recent updates, I think.
> >
>
> Which recent updates? I could not get the float to work in my TikiWiki (ver 1.8.5). frown Have merely copied and pasted your code:
>

Page contents

Table of contents

    Heading 1

    Heading 2

    Heading 3

    >
    > It works fine here.


    It seems like you have to add width=25% for it to work. It did not work for me initially too...I'm using ver 1.9.0. strange...if I do not add the width=25% parameter the box will stretch across the whole page. Hope it works for you wink

    -- kwow

    posts: 30 United States

    Hi xavi,
    Thanks for the info about putting the line around the TOC "Page Contents" Box. That helps. Thanks for responding

    Stephen


    posts: 4656 Japan

    > Hi,
    > I'm wondering what the problem is: I tried to edit my message, and I got a white screen with this message: "Invalid variable value : forumId = 4comments_maxComments=1"
    >
    > I tried several times and got the same message each time. Is this a bug in the program, or am I doing something wrong?

    You aren't doing anything wrong (except for submitting an initial post that needed editing wink). Editing forum posts has been broken for quite a while. My experience has been that when I clicked Edit, I got a textarea with the post for editing, but then when I submitted it, the page displayed with the old post version. If you're getting an error message, maybe that means things are changing as someone's working on the problem. wink

    By the way, about the Page Contents box, to make it even more like your example boxes, you can also put a horizontal rule (three hyphens are the wiki syntax) on a line between the box title and the maketoc tag. I wanted to edit my post yesterday to include that bit of info, but didn't think it was worth an additional post.

    -- Gary

    posts: 30 United States

    Edit Errors

    Quote:

    You aren't doing anything wrong (except for submitting an initial post that needed editing wink). Editing forum posts has been broken for quite a while. My experience has been that when I clicked Edit, I got a textarea with the post for editing, but then when I submitted it, the page displayed with the old post version.

    Yes, I got several of these "old post" versions as I tried to post an edit. I'm glad that it's not just me. At least I know now that I shouldn't try to edit a previous message, but just post a new message instead.

    Quote:

    If you're getting an error message, maybe that means things are changing as someone's working on the problem. wink

    Yes, I got this error message also, in between the "old posts".

    TOC boxes like examples?

    Quote:

    By the way, about the Page Contents box, to make it even more like your example boxes, you can also put a horizontal rule (three hyphens are the wiki syntax) on a line between the box title and the maketoc tag. — Gary


    Gary, I tried to make this TOC with a line under the "Page Contents" title. The only way I could get it to put a line under the title is when the box went the full width of the page. I tried a number of different ways and couldn't get the line under the title in the small TOC box. I'm Using Tiki 1.85, would that make a difference? Here is a sample of the 3 ways I understood how to make a TOC here:http://www.carrscorner.com/tiki/tiki-index.php?page=Create+TOC

    1. . The top TOC, with no line around, with a grey background.
    2. . The Second TOC, with a line around, in a light background. (Like the one at the top right of this message.
    3. . The Third TOC, with a line around and a line under the "Page Contents" title. (I couldn't figure out how to make this one small like the other two above it on my above mentioned website. An example of this is also show directly under here.) Any ideas?


    This is and example of the Third TOC example:

    Page contents

    Upgrade or Wait?

    I currently am using Tiki 1.85. I have been trying to decide whether or not to upgrade to tiki 1.90. I have been talking with one of my friends (that I'm helping to set up a second Tiki website) about whether to upgrade or wait until a more stable release. I think that knowing about this inability to edit a previous message helps me to know that I should just wait for a more stable release.

    Expand Edit-Window Problem

    Another feature that needs fixing is the "expand editing window" in the wiki section of Tiki 1.90. Whenever I try to make the editing window larger, the buttons don't work. I hope both of these gets fixed in the newer versions.

    Thanks for all of your help. It is greatly appreaciated!

    Best Wishes,
    Stephen

    posts: 4656 Japan

    Nicely formatted post, Stephen. smile

    > Gary, I tried to make this TOC with a line under the "Page Contents" title. The only way I could get it to put a line under the title is when the box went the full width of the page. I tried a number of different ways and couldn't get the line under the title in the small TOC box. I'm Using Tiki 1.85, would that make a difference? Here is a sample of the 3 ways I understood how to make a TOC here:http://www.carrscorner.com/tiki/tiki-index.php?page=Create+TOC

    I don't have a 1.8.5 install to test with right now, so I'm not sure what the differences are in this area.

    This seems to be somewhat browser-dependant. I can see a line in a div of any width, such as on this forum page . . . but I'm using Opera. I looked at your TOC example page with Internet Explorer and see that your second and third divs are stretching the width of the center column, while they have the desired size and layout with Opera. The easy answer is to get every visitor to use a browser other than IE, but that's probably expecting too much. wink

    > #. The top TOC, with no line around, with a grey background.
    > #. The Second TOC, with a line around, in a light background. (Like the one at the top right of this message.
    > #. The Third TOC, with a line around and a line under the "Page Contents" title. (I couldn't figure out how to make this one small like the other two above it on my above mentioned website. An example of this is also show directly under here.) Any ideas?

    If you add a "width=30%" parameter (or whatever percentage), you can keep the box on the right-hand side of the page, and the underline still appears. I checked this with IE also. Having to put maketoc on a new line under the hr tag adds unwanted vertical space between the box title and content, but is unavoidable as both tags must be at the left margin to work right. I think a custom plugin might be able to solve some of these finer points.

    > !!Upgrade or Wait?
    > I currently am using Tiki 1.85. I have been trying to decide whether or not to upgrade to tiki 1.90. I have been talking with one of my friends (that I'm helping to set up a second Tiki website) about whether to upgrade or wait until a more stable release. I think that knowing about this inability to edit a previous message helps me to know that I should just wait for a more stable release.

    I wouldn't call 1.9.0 unstable; it has quite a few new features, and IIRC 1.8.5 had its share of quirks, too, so I guess upgrading depends on your specific needs, etc.

    > !!Expand Edit-Window Problem
    > Another feature that needs fixing is the "expand editing window" in the wiki section of Tiki 1.90. Whenever I try to make the editing window larger, the buttons don't work. I hope both of these gets fixed in the newer versions.

    Version 1.9.1 is on the way, too, but it's not good to wish too hard for any particular feature or fix — that seems to jinx the process; it's better to accept whatever comes with zenlike tranquility. wink

    -- Gary

    posts: 30 United States

    Quote

    If you add a "width=30%" parameter (or whatever percentage), you can keep the box on the right-hand side of the page, and the underline still appears.

    I set the width=45% and it's looking great right now! See the TOC box here.

    Quote:

    Version 1.9.1 is on the way, too

    Do you know when it might be released?

    Quote:

    ..but it's not good to wish too hard for any particular feature or fix — that seems to jinx the process; it's better to accept whatever comes with zenlike tranquility. wink-- Gary


    Sounds like good advice Gary. I need to keep reminding myself of that.
    Thanks again for all the great help!

    Best Wishes,
    Stephen

    posts: 131 Singapore

    > Quote

    >
    If you add a "width=30%" parameter (or whatever percentage), you can keep the box on the right-hand side of the page, and the underline still appears.

    > I set the width=45% and it's looking great right now! See the TOC box here.
    >

    Hi Stephen,
    How do you do a background color in the box?? Say yellow?? Can it be done.
    Been learning a lot from the day you started this post. biggrin

    Thanks a million,
    kwow

    posts: 4656 Japan

    > > Quote

    > >
    If you add a "width=30%" parameter (or whatever percentage), you can keep the box on the right-hand side of the page, and the underline still appears.

    > > I set the width=45% and it's looking great right now! See the TOC box here.
    > >
    >
    > Hi Stephen,
    > How do you do a background color in the box?? Say yellow??

    • That's what the bg=>#CCCCCC (for example) in the parentheses is for. Use any HTML colorname or hex code (the word yellow is ok, or #FFFF00).

    --Gary


    posts: 30 United States

    Hi,
    I am working on two Tiki 1.85 websites. The TOC boxes that I was creating in regards to the messages in this topic thread are working fine: have a look: Example on Website A: working TOC boxes.

    However, when I try the same thing on another Tiki 1.85 website, the TOC boxes don't work. Have a look Example on Website B: TOC boxes that aren't working.

    What can the problem be, and how might I get the TOC boxes on Website B to work correctly?

    Thanks,
    Stephen

    posts: 4656 Japan

    > What can the problem be, and how might I get the TOC boxes on Website B to work correctly?

    It looks like the DIV plugin tag isn't being recognized at Website B. Can you double-check to make sure the same wikiplugin_div.php file is in the lib/wiki-plugins directory at that website?

    -- Gary


    posts: 30 United States

    > > What can the problem be, and how might I get the TOC boxes on Website B to work correctly?
    >
    > It looks like the DIV plugin tag isn't being recognized at Website B. Can you double-check to make sure the same wikiplugin_div.php file is in the lib/wiki-plugins directory at that website?
    >
    > — Gary
    >
    >

    Thanks Gary, I had a look in the lib/wiki-plugins directory and the "wikiplugin_div.php file" isn't even in the directory. So I guess that is the problem. Could the fact the this 1.85 version was installed by Fantastico have caused it to be omitted? The other website, where the TOC box works, was installed manually by the website owner.

    Anyway, how would I get a copy of the "wikiplugin_div.php" file to put in that directory? But, even as I say this, yesterday I have just installed version 1.90 and might not need it anyway.

    Thanks,
    Stephen


    posts: 9
    This has been very helpful. Does anybody know if there is a way to make the content of the toc (or maketoc) expandable and collapsable, particularly with this code
    Page contents
    ?
    posts: 9
    > This has been very helpful. Does anybody know if there is a way to make the content of the toc (or maketoc) expandable and collapsable, particularly with this code
    Page contents
    ?


    I actually figured that one out now. However I'm killing myself to get it formatted right. Either everything stays right, or goes left. Could anybody help me make this (my site) look more similar to this?

    posts: 4656 Japan

    You could float the Apresentação box to the right.

    The Tikipedia theme comes with a MAKETOCBOX wiki plugin that is pretty similar to the Wikipedia page contents box. You could try it. (See http://themes.tikiwiki.org/Tikipedia. If you log in there, you can look at the wiki page source if you have any questions about how that page is done.)

    The Real Madrid page (Wikipedia) has lighter headline fonts — but you'd need to edit the tikipedia.css file to match them and I don't know if you want to go that far.

    Also, don't forget the THUMBDIV plugin for image thumbnails. It also is part of the Tikipedia theme files and duplicates the Wikipedia thumbnail style.

    --Gary

    posts: 9

    > You could float the Apresentação box to the right.
    >
    > The Tikipedia theme comes with a MAKETOCBOX wiki plugin that is pretty similar to the Wikipedia page contents box. You could try it. (See http://themes.tikiwiki.org/Tikipedia. If you log in there, you can look at the wiki page source if you have any questions about how that page is done.)
    >
    > The Real Madrid page (Wikipedia) has lighter headline fonts — but you'd need to edit the tikipedia.css file to match them and I don't know if you want to go that far.
    >
    > Also, don't forget the THUMBDIV plugin for image thumbnails. It also is part of the Tikipedia theme files and duplicates the Wikipedia thumbnail style.
    >
    > --Gary

    Awesome, awesome, awesome!!!
    Thanks a bunch, Gary. That is wonderful!
    Now I just need to figure out the categories part...


    posts: 9
    So, in the framework of tikipedia, Gary, how and where do I write the code that would put the text + category links on top (Themes for Tiki CMS/ Groupware » Tikipedia Category: Theme Demo » Tikipedia Wikipedia look and feel ), as well as the box on the bottom with related (?) linksquestion
    posts: 4656 Japan

    > So, in the framework of tikipedia, Gary, how and where do I write the code that would put the text + category links on top (Themes for Tiki CMS/ Groupware » Tikipedia Category: Theme Demo » Tikipedia Wikipedia look and feel ), as well as the box on the bottom with related (?) linksquestion

    Just activate "Show Category Path" and "Show Category Objects" on the Admin Features page (tiki-admin.php?page=features). I think this is what you mean.

    -- Gary

    posts: 9

    > > So, in the framework of tikipedia, Gary, how and where do I write the code that would put the text + category links on top (Themes for Tiki CMS/ Groupware » Tikipedia Category: Theme Demo » Tikipedia Wikipedia look and feel ), as well as the box on the bottom with related (?) linksquestion
    >
    > Just activate "Show Category Path" and "Show Category Objects" on the Admin Features page (tiki-admin.php?page=features). I think this is what you mean.
    >
    > — Gary


    BINGObiggrin
    Sorry about my stupidity as a rookie.redface
    But the learning curve is pretty good, and I'm excited razz


    Page: 2/2