Unstoppable Domains

Is this possible? (WARNING: could be a stupid question!)

Spacemail by SpaceshipSpacemail by Spaceship
Watch

neilfahey

Established Member
Impact
0
Hi guys,

Well I'm not sure how to approach this or where to find the information I need so I thought here might be a good place to ask...

The new intranet I have developed for work is set up with layers. There is a menu of categories and when you click on a category, the main body of the page changes (it's a layer) to a list of documents...

Staff want to be able to add to it themselves, rather than me needing to be the one that updates it every day BUT I don't want them to mess up the code of the rest of the page.

Is there a way that the visible layer could display another HTML file? So that I could let them edit the list of documents without having access to the rest of the code?

Hope that makes sense... Any suggestions would be a great help!

Thanks heaps!
Neil
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
If I realize what you're talking about, then yes. In php you can do it with...
<?php
include 'file.txt';
?>

Just make sure the file extension is a .php.
 
0
•••
Oh my god!! :) Didn't expect that...

So in the layer (ie. within the div tags) I would just put:

<?php
include 'officialdocs.txt';
?>

Is that right? Could it be 'officialdocs.htm' instead? (It would be a list of links)

So would turning it into a .php file make any difference to the way it currently works? (it's currently a .htm file)
 
0
•••
No, it would not change it at all. And, yes, you can change it to .htm. Any filew works there. You will find that the include function just acts as if the writing in officialdocs.htm is in the main file. In the html of the main page, it will look just as normal, won't even show the php tags. If you need anymore help with this, feel free to ask.
 
0
•••
Thanks for that!!! It does work but do you have any idea why it is changing the positioning of my layer? If you look at - [URL REMOVED] - you'll get an idea of how it works...

The copy that is there is pre-php but it's just to show you what I'm talking about. On my local copy, I've done everything you said but when you click on the button, the layer comes up to the left (overlapping the buttons).

Cheers
Neil
 
Last edited:
0
•••
use tables..
 
0
•••
that'd probably be a good idea.
 
0
•••
Palyriot said:
that'd probably be a good idea.
If you require limited access to the Site , Why not do it using a CMS like Joomla!/Mambo or using a Blog/Wiki Application.

Plus I love your URL (not)
 
0
•••
legend2 and palyriot: How could I achieve the same thing with tables? Without the whole screen needing to load up again every time? I take it that means you don't know why it is moving to the left?

barefoottech: Are those CMS's free? Do you require a lot of knowledge to set them up? I briefly looked into a couple of CMS's but I figured that it would be easier to develop this way (so far it's been a piece of cake!)... By the way, the URL is temporary - you may remember this is an intranet so it wont be on the internet at all...
 
0
•••
neilfahey said:
lbarefoottech: Are those CMS's free? Do you require a lot of knowledge to set them up? I briefly looked into a couple of CMS's but I figured that it would be easier to develop this way (so far it's been a piece of cake!)... By the way, the URL is temporary - you may remember this is an intranet so it wont be on the internet at all...
Yes Free GPL Software
Easy well a couple of the .info's site in my signature were regged, hosted,installed ,modded and setup in under 3 hours total. That easy enough??

And I realised about the URL ,i was kidding (I am a iPrimus dealer) :hehe:
 
0
•••
Thanks barefoottech... I'll have a look into those then. I doubt I have the knowledge to set them up in under 3 hours though!!! Could I use one of them and make it look like the link above? 'Cos that's the design the school wants...
 
0
•••
neilfahey said:
Thanks barefoottech... I'll have a look into those then. I doubt I have the knowledge to set them up in under 3 hours though!!! Could I use one of them and make it look like the link above? 'Cos that's the design the school wants...
yes
 
0
•••
cheers...
 
0
•••
I just realised you need MySQL - that's not free is it?
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back