Browse Source

CEpages: automatically add anchors

dev01
Dom SP 3 years ago
parent
commit
92def6efa4
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/modules/filesinfolders.php

+ 3
- 1
app/modules/filesinfolders.php View File

@@ -649,6 +649,7 @@ class FilesInFolders {
$target = array_shift($request);
$class = array_shift($request);
$folder = $this->folder.$target."/";
$anchor_name=array_pop(explode("/",$target));
$fff = new \Modules\FilesInFolders(
$folder,
array(
@@ -660,8 +661,9 @@ class FilesInFolders {
);
$fff->prepare_files();
$fff->fill_content();
$new = sprintf("<div class=\"content_element_page %s\">\n%s\n</div>",
$new = sprintf("<div class=\"content_element_page %s\"><a name=\"%s\"></a>\n%s\n</div>",
$class,
$anchor_name,
implode("\n",$fff->content['default']));
break;

Loading…
Cancel
Save