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.


Can I upload a working directory (HTML + Flash) into OCPortal?

Login / Search

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

Fan in training

Hi-

I'd like to add a directory via FTP to my working 7.1.5 ocPortal site (ie, www.sampleOcPortalsite.com/custom_folder) and link users to it from within OcPortal.

I don't want to (and don't think I can) recreate all the HTML/linked Flash using comcode.

Also, I do not want to allow users to get to that directory unless authenticated/allowed via OcPortal.

I looked at tutorials and searched for this . . . no avail. Any help would be greatly appreciated!
Back to the top
 
Posted
Rating:
#76346
Avatar

Community saint

I think that is what the /pages/html_custom directory is for but I am not sure about how you would handle authentication. It's possible that once files are uploaded to this directory that they appear in the Permissions Tree Editor but I really don't know.

Hopefully someone who has done this will give a better answer.

Bob
Back to the top
 
Posted
Rating:
#76349
Avatar

Bear in mind there is an 'html' Comcode tag, so you can just slap HTML into a Comcode page. That's often easier.

But Bob is right, this is what html_custom is for. You'll need to make changes to the HTML. ocPortal will try and merge things like CSS, Javascript, and meta data, into it's own output, as well as the main body of the HTML, but it frankly often results in a mess because two things that were not designed to work together (particularly style wise, regarding how CSS is written) suddenly have to. You may find the URL base changes. I think it tries to be smart enough to detect if URLs should be relative to the html_custom directory, or possibly it expects them to be relative to the uploads/website_specific directory, I can't remember off hand.

Authentication is normal page authentication. E.g. if you have pages/html_custom/EN/foo.htm, there is a page called 'foo' and you can set permissions on that like any page.


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:
#76363
Avatar

Fan in training

Perfect - thanks Bob and Chris;

I went to the pages/html_custom/EN/ folder via FTP, uploaded my files and was able to see references to them in Site Tree Editor and Permissions Editor!!!

Some mild tweaking necessary - but was able to do exactly what I needed - thanks both!

Back to the top
 
Posted
Rating:
#76364
Avatar

Community saint

Glad it worked out for you especially since I was kind of guessing. Does go to show that Chris has given a lot of thought as to different use scenarios.

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

Quick reply   Contract

Your name:
Your message: