Folder and Files Structure

Issues related to previewing and publishing your web site.
MorningLight
 
 
Posts: 120
Joined: Tue Jul 04, 2017 12:15 pm

Re: Folder and Files Structure

Post by MorningLight » Sun Mar 18, 2018 5:26 pm

Yes Pablo, my apologies for this.
The new link to a ZIP file was sent to your mail.

User avatar
Pablo
 
Posts: 12199
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Folder and Files Structure

Post by Pablo » Sun Mar 18, 2018 6:07 pm

Thanks for the project.
Where did you link the file?
Can you please describe exactly where I need to look?

MorningLight
 
 
Posts: 120
Joined: Tue Jul 04, 2017 12:15 pm

Re: Folder and Files Structure

Post by MorningLight » Sun Mar 18, 2018 6:23 pm

Sure Pablo.

If you see the links existing in the INDEX page (the links to PDF, PPTX, ZIP files), I wrote something like:

C:\xxxxxxxxxxxx\xxxxxxxxxxxxxxx\AULAS\Topicos\3 - Acordo de Chaves em Canais Inseguros\xxxxxxxxxx\Chaves ... Assimétricos.pdf

So, I want the file be published and found at this folder:

ROOT (where index is)/aulas/3

I mean, copy all files from my local above to a structure below AULAS/3

Now, I put the AULAS folder in FILE PUBLISHER (I guess because of this the folder and files are being copied) and in SITE MANAGER as well.
I also redirect ASSET MANAGER to see the above structure.

But when I publish the entire WEBSITE, the PPTX (and other) files are duplicated into ROOT.

I don't know really WHY the link in INDEX page are not pointing anymore to ROOT folder (where INDEX is). It's correct, but yesterday, after press PUBLISH, all links were redirected to ROOT too. It may be related to ASSETS MANAGER or SITE MANAGER changes I performed...

User avatar
Pablo
 
Posts: 12199
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Folder and Files Structure

Post by Pablo » Sun Mar 18, 2018 6:40 pm

It looks like you are making it more difficult than it really is.
I wrote something like:
C:\xxxxxxxxxxxx\xxxxxxxxxxxxxxx\AULAS\Topicos\3 - Acordo de Chaves em Canais Inseguros\xxxxxxxxxx\Chaves ... Assimétricos.pdf
Why didn't you link to the file in the Site Manager. Wasn't that the whole purpose of adding the files to the Site Manager in the first place?

If you select a file from your local computer then there is no way for the software to know that you want to put in inside a different folder.
There is no relation between the structure files on your hard disk and the web site structure. You will need to create (and use) the structure of the Site Manager.

Solution:
- remove the file link
- create the link with the 'Page in this project'. Select the file you have added in the Site Manager.
- the link will now be valid.

MorningLight
 
 
Posts: 120
Joined: Tue Jul 04, 2017 12:15 pm

Re: Folder and Files Structure

Post by MorningLight » Sun Mar 18, 2018 6:42 pm

Pablo, let's make it simpler:

- Suppose I have a file in C:\LocalFolder\aaa.pdf
- I want it below my root in a specific folder (ROOT/lessons/3)
- I want to make some links using MaterialIcon, like: ROOT/lessons/3/Myfile.pdf

What I need to do?
- Create this structure in SiteManager and "Import External File" before create the link in page?
- Assets Manager: do I need to reference it in the correct folder (/lessons/3) ?
- File Manager: even the file and folder being present in SITE MANAGER, do I need to reference the file also there?

Thanks a lot for your help Pablo!

MorningLight
 
 
Posts: 120
Joined: Tue Jul 04, 2017 12:15 pm

Re: Folder and Files Structure

Post by MorningLight » Sun Mar 18, 2018 6:43 pm

Pablo wrote:
Sun Mar 18, 2018 6:40 pm
It looks like you are making it more difficult than it really is.

Solution:
- remove the file link
- create the link with the 'Page in this project'. Select the file you have added in the Site Manager.
- the link will now be valid.
Hmmm.... I understood.
I will try ot here.

Thank you again my friend!

MorningLight
 
 
Posts: 120
Joined: Tue Jul 04, 2017 12:15 pm

Re: Folder and Files Structure

Post by MorningLight » Sun Mar 18, 2018 6:51 pm

It functioned perfectly !!

It was really much more simple I had done.

Thank you VERY MUCH again for your support in a Sunday.
My best wishes to you.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests