pandemonium_engine/modules/web/doc_classes/BrowsableFolderServeWebPage.xml

33 lines
1.5 KiB
XML
Raw Normal View History

2022-08-21 00:40:49 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-08-26 22:41:21 +02:00
<class name="BrowsableFolderServeWebPage" inherits="FolderServeWebPage" version="4.1">
2022-08-21 00:40:49 +02:00
<brief_description>
The [BrowsableFolderServeWebPage] class adds folder listing functionality on top of [FolderServeWebPage].
2022-08-21 00:40:49 +02:00
</brief_description>
<description>
The [BrowsableFolderServeWebPage] class adds folder listing functionality on top of [FolderServeWebPage]. Fundamentally it's the same as the Apache webserver's directory listing.
As an example let's take this folder:
[code]content_folder/
-- ct/
---- ctf.jpg
-- file1.md
-- test.jpg[/code]
A [FolderServeWebPage] is pointed to the [code]content_folder[/code] folder, it's set as a child of a [WebRoot], and it's uri segment is [code]served_files[/code]:
[code]Opening: http://127.0.0.1/served_files will send a generated html directory listing.
Opening: http://127.0.0.1/served_files/file1.md will send page1.md.
Opening: http://127.0.0.1/served_files/test.jpg will send page2.md.
Opening: http://127.0.0.1/served_files/ct will send a generated html directory listing.
Opening: http://127.0.0.1/served_files/ct/ctf.jpg will send ctf.jpg.[/code]
2022-08-21 00:40:49 +02:00
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="should_render_menu" type="bool" setter="set_should_render_menu" getter="get_should_render_menu" default="true">
Whether to call [code]render_menu()[/code] when a directory listing is returned.
2022-08-21 00:40:49 +02:00
</member>
</members>
<constants>
</constants>
</class>