toc
toc
{{toc(????)}}
Masters
haw to add toc with all open sub levels as sitemap
http://daiart.ru/?&sitemap
sorry for stupid question
Masters
haw to add toc with all open sub levels as sitemap
http://daiart.ru/?&sitemap
sorry for stupid question
Aleksei
Re: toc
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“ Ludwig's XH-Templates for MultiPage & OnePage
Re: toc
Quick idea (not tested):
1. Create a single hidden page (e.g. :sitemap-page)with
and use in your template:Then set your styling for
In this very case the items are numbered automatically. So you may remove/restyle the "counters".
1. Create a single hidden page (e.g. :sitemap-page)with
Code: Select all
{{{li($hc,'sitemaplevel')}}}
Code: Select all
<div class="navigation">
<?php echo newsbox('sitemap-page');?>
</div>
Code: Select all
/* navigation numbering */
.navigation ul { counter-reset: item; list-style: none; margin-left: 0; }
.navigation > ul li { display: block;}
.navigation li:before { content: counters(item, ".") " "; counter-increment: item; color: #fff; padding-right:1rem;}
ul.sitemaplevel1 li{font-size: 1rem; color: white;}
ul.sitemaplevel1 li span:after{content: "\25ba"; float: right;}
ul.sitemaplevel1 li a{color: orange;}
ul.sitemaplevel1 li a:hover{color: #fff;}
ul.sitemaplevel1 li:hover{background: #000; color:#fff;}
ul.sitemaplevel1 li ul li:hover{background: #444; color:#fff;}
ul.sitemaplevel1 li ul li ul li:hover{background: #666; color:#fff;}
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: toc
It is also possible. But it has only very little in common with an automatically generated "TOC" and it is also too complicated, though. Further editing and adjusting of a website would require often adjustments in the template. It is then easier create a subpage with a manually written list of pages and call this page separately in a newsbox.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: toc
I suppose this is not what you are looking for either, but I don't know any other solution now.
Paste on the page in the source code view.
Code: Select all
{{{submenu();}}}
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“ Ludwig's XH-Templates for MultiPage & OnePage
Re: toc
Resume:
1. The function toc() generates the TOC automatically.
2. The function sitemap() generates the sitemap automatically.
3. To use the sitemap feature only for some specific part of TOC requires:
a) rewite the toc() and/or sitemap() functions
b) redesign the respective CSS classes
Anyway, because of touching the automatically generated values, it requires checking/rewriting/redesigning everything after any deeper changes in the webpage content.
It seems to me the simplest:
1. exclude the toc and sitemap functions from the template completely.
2. Write the hidden "TOC" page manually as desired - with all levels and create links to all respective subpages targetting to the "content".
3. Place this "TOC" page into a newsbox (as TOC replacement).
This solution requires permanently checking/adjusting of the "TOC" page, however.
Partially is also possible to use the toc() function with hidden lover levels and use the submenu() function only on desired pages. In this case the content of the subpages will only be visible on the page with the submenu() function on it.
One more possibility is to use the "TOC" in two columns with the submenu() in the 2nd column. But, again, the submenu only comes on if there are any subpages available for the item clicked in the 1st column.
1. The function toc() generates the TOC automatically.
2. The function sitemap() generates the sitemap automatically.
3. To use the sitemap feature only for some specific part of TOC requires:
a) rewite the toc() and/or sitemap() functions
b) redesign the respective CSS classes
Anyway, because of touching the automatically generated values, it requires checking/rewriting/redesigning everything after any deeper changes in the webpage content.
It seems to me the simplest:
1. exclude the toc and sitemap functions from the template completely.
2. Write the hidden "TOC" page manually as desired - with all levels and create links to all respective subpages targetting to the "content".
3. Place this "TOC" page into a newsbox (as TOC replacement).
This solution requires permanently checking/adjusting of the "TOC" page, however.
Partially is also possible to use the toc() function with hidden lover levels and use the submenu() function only on desired pages. In this case the content of the subpages will only be visible on the page with the submenu() function on it.
One more possibility is to use the "TOC" in two columns with the submenu() in the 2nd column. But, again, the submenu only comes on if there are any subpages available for the item clicked in the 1st column.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: toc
No unfortunately not, the code would first have to be adapted accordingly, by our programmers (@Christoph, @Holger, @Olaf, @Manu), Keyword MyLi.
An alternative would be:
In a page add.
Code: Select all
<div class="lck-sitemap">{{{li($hc, 'sitemaplevel');}}}</div>
.lck-sitemap .sitemaplevel1 > li > a:first-of-type {
display: none;
}
This hides all menulevel 1 and shows only level 2 to 9, but all of the website.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“ Ludwig's XH-Templates for MultiPage & OnePage