HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Missing index.html files in exported/imported themes

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#73772 (In Topic #15413)
Avatar

Community saint

I exported a theme from my development site and imported it into my main site. While running down an issue with the "Recommend" function consistently timing out, I noticed that the index.html files didn't seem to make it into the imported theme on the main site.

Has anyone else noticed this?

Bob
Back to the top
 
Posted
Rating:
#73881
Avatar

Community saint

I've dug around a bit more and discovered that the exported theme tar is missing folders and index.html files. This is probably not a real problem except that is it inconsistent.

Following are the source directory, exported tar and destination directory created from the import.

Source directory:


Contents of the exported tar:


Directory created from the imported theme:


It is easy to understand why you would not include theme_cached. It is also somewhat understandable that the directories css, images and templates are not included but then why are they created when the Theme Wizard creates a theme?

I guess what I wonder most is why is the index.html file not created in the directory and its sub-directories. Isn't it pretty standard practice to always include an index in each directory?

Note that the index is also missing from the pages directory and its sub-directories.

I just really don't understand the inconsistency between a theme created by the Theme Wizard and one transferred from another site. It seems to me that they should be the same with the exception of the cache directory.

Bob
Back to the top
 
Posted
Rating:
#73886
Avatar

Will try and look into your questions in the next couple of days. This weekend has all been themes, and now I've got quite a lot of business stuff to do and catching up in general.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#73887
Avatar

Community saint

Thanks, Chris.

I've been watching the themes and have identified one which I might be able to use until I can get a completely custom theme.

You guys did good work on the themes. Let us know when they are all posted so I can review all my options.

Thanks again.

Bob

P.S. How about catching up on some sleep. I swear you are a beast when you have your mind set on something.
Back to the top
 
Posted
Rating:
#73920
Avatar

This is a small bug. index.html files just stop snooping, but most servers have directory indexes off anyway nowadays. By inclusion of index.html files now, the missing 'empty' folders will also be represented.

Attachment
adminzone/pages/modules/admin_addons.php
» Download: admin_addons.php (33 Kb, 83 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#73942
Avatar

Community saint

Thanks for this, Chris.

I know it's a small issue but I just hate inconsistencies. I also think seeing the regular patterns throughout the code structure helps people to better understand the way the hierarchy works.

Bob
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: