Wednesday 27 August 2003 3:50:13 pm
Hello, I am a developer trying to deploy EZPublish to my company's website. I have created 2 virtual sites, we'll call them 'site1', and 'site1.admin', and set up URI based access to these sites, so to access these sites, I go to the following URL(s):
http://localhost/index.php/site1 http://localhost/index.php/site1.admin Okay, so with the creation of those 2 new sites, I have added design templates in
<ez publish root>/design/site1 <ez publish root>/design/site1.admin Okay, with that said, I have been able to configure the 'pagelayout.tpl' file for the site1 website to display the string "Hello world", and that's it, to test that it is using the correct template, and I have got this part to work. The problem that I am having now is where to go next. I would like to begin creating sections, but I have a few questions as I am having trouble creating sections. Question #1: By default, EZPublish comes with a 'demo, standard, admin, and user' site. The admin site allows you to add sections, content objects, etc etc. My question is--are the sections and content objects and such that I add in the 'regular admin' section that comes with the default installation, useable in my 'site1' website that I created? That is, do I need to create the content objects using a special admin interface that is only available to the 'site1' site? I have had trouble with this, as I tried creating a book content class via the default admin interface, and it came back with a class ID of 14. Then when I tried to view that class object in my 'site1' site, I was not able to view it. Question #2: Okay, how do I even create sections? I mean, if I create them through the admin interface (and let's assume that once I create a section through the default admin interface that the section object ID is available to all the other "virtual sites" like my 'site1'), how do I assign templates to that particular section such that whenever I access that section, a different template comes up? Moreover, how do I even access that newly created section? I sort of understand that design templates can go in the "<ez publish root>/design/<your site>/override/templates/node/<line or full>/" directories, but what do I do then? How do I:
1) Assign templates to my newly created section 2) Access my newly created section Any help that someone could give on this issue would be MUCH appreciated, as I have not been able to figure this out by reading the documentation at all.
Thanks in advance,
Chris A. Mattmann
Associate Software Engineer, Earth Science Data Systems
Jet Propulsion Laboratory chris.mattmann@jpl.nasa.gov
|