How to edit the default directory listing?

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
lella
-


Joined: 27 Mar 2019
Posts: 4

PostPosted: Wed Mar 27, 2019 2:43 am    Post subject: How to edit the default directory listing? Reply with quote

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 View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 921

PostPosted: Mon Apr 01, 2019 6:42 pm    Post subject: Re: How to edit the default directory listing? Reply with quote

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 View user's profile Send private message
lella
-


Joined: 27 Mar 2019
Posts: 4

PostPosted: Wed Apr 03, 2019 1:50 am    Post subject: Reply with quote

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 View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 921

PostPosted: Thu Apr 04, 2019 3:27 pm    Post subject: Reply with quote

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 View user's profile Send private message
lella
-


Joined: 27 Mar 2019
Posts: 4

PostPosted: Sat Apr 06, 2019 9:37 pm    Post subject: Reply with quote

Awesome, thank you very much!
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group