Back to Wiki Lite [DEPRECATED] Support

Briddle
Briddle

Does this plugin support categories? (FAQ)

Yes. You can configure multiple wiki by setting the subfolder parameter in the wiki component.

The menu of a wiki shows a list of pages that is ordered alphabetically but you can group subjects together by prepending the names of similar Wiki pages (e.g. "installation on windows" and "installation on mac" will place those pages below eachother in the menu).

Last updated

s.andreev62729
s.andreev62729

Is there a way to list all categories, grouped in folders in one page?

Briddle
Briddle

Hi,

Not by default, but you could extend the plugin with your own plugin to offer additional functionality or create this list yourself in the code section of a page (within onStart() function).

Thanks.

s.andreev62729
s.andreev62729

Can you give me a hint on how can I get all folders(categories) onStart()? Not really a backend developer and quite new to october. I would really appreciate your help here. Best Regards!

Briddle
Briddle

Hi,

In the Code Tab:

function onStart()
{
    //returns all files within a given directory including all sub-directories
    $this['posts'] = Storage::allFiles($directory);
}

In the Markup Tab:

<h2>All posts</h2>
<ul>
    {% for post in posts %}
        <li>{{ post }}</li>
    {% endfor %}
</ul>

See: https://octobercms.com/docs/services/filesystem-cdn#directories

Or use native PHP:

https://www.php.net/manual/en/function.scandir.php

Last updated

s.andreev62729
s.andreev62729

Really appreciate the help. Thanks a lot :)

Best Regards, Simeon

1-6 of 6