Directory Folders in Articles or a Module?

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
Dometheus
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Oct 08, 2007 6:08 pm

Directory Folders in Articles or a Module?

Post by Dometheus » Sat Nov 18, 2017 5:59 pm

Hello,

I have a 22gb folder (located in /images/folder-name) with over 22,000 PDF files inside of 26 Folders and have over 650 subfolders folders all with PDF files in them. (it's a lot of data, to say the least) There are only 25 main folders, but the subfolders have many folders and subfolders and PDF files for people to get to by clicking on a directory (folder) name to see the sub-content.

What I am looking to do is somehow to be able to list these folders as Folder icons (in an article or module) with collapsible accordion style effects to open and close the root folders (located in /images/folder-name) displayed. Once the folder is clicked on the PDF files or other subfolders open or a list of PDF files appears. (in the article or module)

Am I making any sense?

I want to be able to use this inside of an article, or is possibly in the side module position pertaining to the specific folders and files located in a directory structure of the main: (located in /images/folder-name)


Hope this makes sense. Any help would be appreciated for sure!

User avatar
xfsgpr
Joomla! Ace
Joomla! Ace
Posts: 1099
Joined: Mon Feb 14, 2011 4:02 am
Location: London

Re: Directory Folders in Articles or a Module?

Post by xfsgpr » Sat Nov 18, 2017 9:38 pm

Joomla uses Bootstrap 2.3.2 so this code will work for you:

Code: Select all

<div class="accordion" id="accordion2">
        <div class="accordion-group">
          <div class="accordion-heading">
            <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
              Collapsible Group Item #1
            </a>
          </div>
          <div id="collapseOne" class="accordion-body collapse in">
            <div class="accordion-inner">
              Accordion Inner
            </div>
          </div>
        </div>
        <div class="accordion-group">
          <div class="accordion-heading">
            <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
              Collapsible Group Item #2
            </a>
          </div>
          <div id="collapseTwo" class="accordion-body collapse">
            <div class="accordion-inner">
              Accordion Inner
            </div>
          </div>
        </div>
      </div>
I suggest acclimatize yourself with how Bootstrap works. Start here:

<http://bootstrapdocs.com/v2.3.2/docs/ja ... l#collapse>

Dometheus
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Oct 08, 2007 6:08 pm

Re: Directory Folders in Articles or a Module?

Post by Dometheus » Sat Nov 18, 2017 11:22 pm

Thank you so much for the information, going to read up on it now.
Then it is off to implement. I will respond when finished testing.

Again Thanks! :p

Dometheus

Dometheus
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Oct 08, 2007 6:08 pm

Re: Directory Folders in Articles or a Module?

Post by Dometheus » Sat Nov 18, 2017 11:55 pm

If I am mistaken this is just a simple accordion code for articles you want to put other articles, pictures and text into right? I will use this with (Accordion) the endless lists of PDF files in each folder so thank you for that!

I might be wrong and a novice but I think I'm trying to do something completely different (there are paid extensions I could use to do this). I just don't have the extra money right now to purchase the extension. So I thought I could just use some code to point to folders and files on my Shared Hosting Account and show them in articles, or an I way off base here?

Here is the extension I looked at purchasing so you can see what I am kind of looking for: https://extensions.joomla.org/extension ... tory-tree/

Here is a screenshot of "Directory Tree" extension with folders and PDF (they use PNG for screenshot)files showing together in the article. I just want to be able to add PDF files and folders from my hosted server account to an article with code if possible.
Screenshot at IMGUR of extension Directory tree to get a better Idea: https://i.imgur.com/R2qSbiX.png

If this is not possible with some code in the article then I will just have to wait and purchase the extension to solve my issues with Files and folders.

Thanks again for taking the time to try and assist me with this problem.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30930
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Directory Folders in Articles or a Module?

Post by Per Yngve Berg » Sun Nov 19, 2017 10:50 am


kevinix
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Nov 08, 2017 4:06 am

Re: Directory Folders in Articles or a Module?

Post by kevinix » Mon Nov 20, 2017 4:58 am

With Phoca we have to manually do it right?

Dometheus
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Oct 08, 2007 6:08 pm

Re: Directory Folders in Articles or a Module?

Post by Dometheus » Mon Nov 20, 2017 11:41 pm

kevinix wrote:With Phoca we have to manually do it right?

Yep all manual.

I just want to pull from a directory file and folders. Guess I will just wait and get the extension I mentioned earlier.
Thanks for the help.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30930
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Directory Folders in Articles or a Module?

Post by Per Yngve Berg » Tue Nov 21, 2017 8:28 am

There is a Multiple File Add Function

Dometheus
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Oct 08, 2007 6:08 pm

Re: Directory Folders in Articles or a Module?

Post by Dometheus » Wed Nov 22, 2017 12:33 am

Per Yngve Berg wrote:There is a Multiple File Add Function
I understand that but it adds only files not folders (or at least I could not figure out how to do folders).

Looks like I would need to recreate all the folders. (650+ folders) and upload the contents from each folder when information is already on the server ready to be accessed in an article or extension.

I just want to be able to see the contents of a folder (PDF and Folders) in Joomla showing folders and files together in a clickable list for people to read with a PDF reader or navigate to a subfolder without re-creating the folders again.

Dometheus
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Oct 08, 2007 6:08 pm

Re: Directory Folders in Articles or a Module?

Post by Dometheus » Mon Nov 27, 2017 3:52 pm

Is there no Joomla Guru that can help me out? :pop


Locked

Return to “Extensions for Joomla! 3.x”