View previous topic :: View next topic |
Author |
Message |
lella -
Joined: 27 Mar 2019 Posts: 4
|
Posted: Wed Mar 27, 2019 2:43 am Post subject: How to edit the default directory listing? |
|
|
Hi. I would like to use the default directory listing, but I need to add a line to the footer. Is there a way to edit it without creating a custom template? |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1296
|
Posted: Mon Apr 01, 2019 6:42 pm Post subject: Re: How to edit the default directory listing? |
|
|
lella wrote: | Hi. I would like to use the default directory listing, but I need to add a line to the footer. Is there a way to edit it without creating a custom template? |
Creating a custom template is required in such a case. But you can simply fill the template by copying the default values for the header, body and footer as listed in https://aprelium.com/data/doc/2/abyssws-win-doc-html/dirlist.html .
After that add the line you want to the footer and it should be fine.
For example, instead of the default footer:
Code: | </TABLE>
</BODY>
</HTML> |
you could use:
Code: |
</TABLE>
<BR>
<P>Copyright XXXXXX - 2019 - All rights reserved</P>
</BODY>
</HTML> |
_________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com |
|
Back to top |
|
|
lella -
Joined: 27 Mar 2019 Posts: 4
|
Posted: Wed Apr 03, 2019 1:50 am Post subject: |
|
|
Thank you very much for the help, but unfortunately after following your instructions the resulting directory listing doesn't look at all like the default one. I guess the header and body line values from https://aprelium.com/data/doc/2/abyssws-win-doc-html/dirlist.html aren't the same like the ones used in the standard listing. |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1296
|
Posted: Thu Apr 04, 2019 3:27 pm Post subject: |
|
|
lella wrote: | Thank you very much for the help, but unfortunately after following your instructions the resulting directory listing doesn't look at all like the default one. I guess the header and body line values from https://aprelium.com/data/doc/2/abyssws-win-doc-html/dirlist.html aren't the same like the ones used in the standard listing. |
The sample header, body line and footer there are simplified versions. The default versions used in the server are as follows:
Header
Code: | <!-- #config sizefmt="abbrev" -->
<!-- #config timefmt="%b %d, %Y %X" -->
<!DOCTYPE html>
<HTML>
<HEAD>
<META CHARSET="utf-8">
<META NAME="viewport" CONTENT="width=device-width, initial-scale=1">
<TITLE>Index of <!-- #echo var="URL" encoding="reverse-url" --></TITLE>
</HEAD>
<BODY>
<H2>Index of <!-- #echo var="URL" encoding="reverse-url" --></H2>
<HR>
<TABLE BORDER=0 STYLE="font-family: monospace; font-size: smaller;">
<TR><TH>Name</TH><TH>Size</TH><TH>Date</TH><TH>MIME Type</TH></TR>
|
Body line
Code: | <TR>
<TD STYLE="padding-right: 1em"><A HREF="<!-- #echo var="DIRLIST_FILE_URL" -->"><!-- #echo var="DIRLIST_FILE_NAME" --></A></TD>
<TD NOWRAP ALIGN="RIGHT\" STYLE="padding-right: 1em"><!-- #echo var="DIRLIST_FILE_SIZE" --></TD>
<TD NOWRAP STYLE="padding-right: 1em"><!-- #echo var="DIRLIST_FILE_LOCAL_DATE" --></TD>
<TD><!-- #echo var="DIRLIST_FILE_MIME_TYPE" --></TD>
</TR>
|
Footer
Code: | </TABLE>
<P>
Footer goes here
</P>
</BODY>
</HTML>
|
_________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com |
|
Back to top |
|
|
lella -
Joined: 27 Mar 2019 Posts: 4
|
Posted: Sat Apr 06, 2019 9:37 pm Post subject: |
|
|
Awesome, thank you very much! |
|
Back to top |
|
|
|