Active
Project:
Table of Contents
Version:
6.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2010 at 15:18 UTC
Updated:
18 Jun 2010 at 19:09 UTC
I am using a node that displays a view with insert the view method. The TOC renders on the page fine but my custom parameters in my TOC tag gets ignored and seems to be overridden by global settings. My global setting has the checkbox "Allow users to override the settings within the table of contents tag itself" checked.
So for example I have a TOC tag like this:
[toc list: ul; title: Test; hidden: 0;]
With the code above, I get a numbered list, the title says "Table of Contents" and hide is showing. Those are all settings in global.
I am not sure if I am doing something wrong. thank you.
Comments
Comment #1
danny englanderNote that I also have the option: "Do not automatically add a table of content" selected as well in global.
Comment #2
AlexisWilke commentedHi Highrockmedia,
I wrote a page about the options. I don't see what would be wrong in what you wrote in your sample here. That is, the title should say "Test". The "hidden" parameter is wrong, however. You meant to use hideshow=0;
http://www.m2osw.com/doc_table_of_contents_tag_settings
I test with that very string and it worked for me. Of course, I have the latest version (the development version.) Since you marked this issue as a 3.x-dev, I suppose you do too.
At this point, I don't really have a solution to this problem. Maybe that you setup the override properly in one Input filter but not the one you're using on that very page?
Thank you.
Alexis
Comment #3
danny englanderOk thanks, I will check that. I also noticed in the example given in the filter it uses a ":" in the syntax but you seem to use "="
so for example is it:
minlevel=2";or
minlevel: 2;Comment #4
AlexisWilke commentedYes. It should work with either equal (=) or colon (:).
The Perl regular expression uses [=:], if you know anything about regex, that means both characters are interchangeable.
You can also add spaces after that character, and they will be ignored. So minlevel= 2; works too.
Thank you.
Alexis