Thread: [Hypercontent-users] Hello World Type Application-using hypercontent
Brought to you by:
alexvigdor
From: tom t. <j_l...@ya...> - 2006-09-06 06:47:47
|
Hello World Type Application, I want to get a quick hello world type demo (prototype) using Hypercontent. Can't I get that through using HTML and images etc. Is it mandotary that it should always go with XML,DTDs and XSLTs. I made a simple project definition but it failed. Also it complain about 'You are not authorized to do this operation', Is there any place these been documented (steps)to get a simple project going on HyperContent. My intention is to demonstrte, HyperContent 2.0 with CAS and uPortal. I created new project, and login as admin user. What is the support for the jsp pages, can we have jsp pages, will it render? <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE cms-project SYSTEM "http://hypercontent.sourceforge.net/dtd/hypercontent2_0.dtd"> <cms-project> <build> <filesystem-def name="myproject Site Build" type="local"> <argument index="0" value="${repository.base}/myproject-build/" /> <argument index="1" value="autocreate"/> </filesystem-def> </build> <publish> <filesystem-def name="myproject Site Publish" type="local"> <argument index="0" value="${repository.base}/myproject-publish/" /> <argument index="1" value="autocreate"/> </filesystem-def> </publish> <resource-directory path="/html" label="htmlfiles"> <content type="text/html"/> <output content-type="text/html" /> </resource-directory> </cms-project> __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Carl P B. <C.P...@hu...> - 2006-09-06 09:11:13
|
Hello HyperContent does require the use of DTDs XML and XSL to function. This is what makes it so flexible. I have updated the demo site from Hull in the WIKI (V2-development.zip) which is pretty much a 'Hello World' type of site. It includes the basic standard functions I have set up here at Hull and a few test pages to demo dynamic creation of navigation. The site does have Hull branding but you can change this very easily with a little knowledge of XSL. In /confing/xsl/common.xsl and /confing/xsl/commonhome.xsl The instructions to get this site running are as follows: Download the project Zip from the WIKI http://www.ja-sig.org/wiki/display/HYP/HyperContent+2.0+Demo+Site+from+H ull+University=20 Go to your HyperContent installation projects site http://localhost:8080/projects Login with Admin Admin Input a project repository name into the field labelled 'Create a new project' and press [enter] Give your project a mount-point. (Use development for the purpose of the Hull test site) Replace ${repository.base}/project-repository/ with your project repository details ${repository.base}/development/ Enter the 'metadata' screen by clicking the link located after 'list' and 'search'=20 Fill in the form and click 'save'. (Give HyperContent 10 seconds or so) Go to the address in a web browser (http://localhost:8080/development/) You will see two directories 'config' and 'workflow-data' >From the root of the site go into the workflow options(not the directory) At the bottom of the screen under Zip I/O, browse for the development zip file which you have downloaded =20 Set 'Force overwrite' to true Click upload wait for the site to upload. =20 If you click on the index file at the root of the site you will be able to see and use the site You will need to set your build and publish paths in the project definition if you want to put the site onto another web server. You may want to set up some groups and permissions, this is set up /config/groups.xml and /config permissions.xml If you have any problems please let me know. I will try and find some time to document how to set up a project although from the test site you should be able to see the process, I have some info in our WIKI here in Hull which might not be suitable as a starting point. Many Thanks Carl ************************************* Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************* -----Original Message----- From: hyp...@li... [mailto:hyp...@li...] On Behalf Of tom tom Sent: 06 September 2006 07:48 To: hyp...@li... Subject: [Hypercontent-users] Hello World Type Application-using hypercontent Hello World Type Application, =20 I want to get a quick hello world type demo (prototype) using Hypercontent. Can't I get that through using HTML and images etc. Is it mandotary that it should always go with XML,DTDs and XSLTs. =20 I made a simple project definition but it failed. =20 Also it complain about 'You are not authorized to do this operation', Is there any place these been documented (steps)to get a simple project going on HyperContent. =20 =20 My intention is to demonstrte, HyperContent 2.0 with CAS and uPortal.=20 =20 I created new project, and login as admin user. =20 What is the support for the jsp pages, can we have jsp pages, will it render? =20 =20 =20 <?xml version=3D"1.0" encoding=3D"UTF-8"?> <!DOCTYPE cms-project SYSTEM "http://hypercontent.sourceforge.net/dtd/hypercontent2_0.dtd"> <cms-project> <build> <filesystem-def name=3D"myproject Site Build" type=3D"local"> <argument index=3D"0" value=3D"${repository.base}/myproject-build/" /> <argument index=3D"1" value=3D"autocreate"/> </filesystem-def> </build> <publish> <filesystem-def name=3D"myproject Site Publish" type=3D"local"> <argument index=3D"0" value=3D"${repository.base}/myproject-publish/" /> <argument index=3D"1" value=3D"autocreate"/> </filesystem-def> </publish> =09 =09 <resource-directory path=3D"/html" label=3D"htmlfiles"> <content type=3D"text/html"/> <output content-type=3D"text/html" /> </resource-directory> =09 </cms-project> __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Hypercontent-users mailing list Hyp...@li... https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: al <al...@bi...> - 2006-09-06 19:09:17
|
On Tue, 5 Sep 2006 23:47:40 -0700 (PDT), tom tom wrote > I want to get a quick hello world type demo > (prototype) using Hypercontent. Can't I get that > through using HTML and images etc. Is it mandotary > that it should always go with XML,DTDs and XSLTs. You do not have to use XML, DTDs and XSL if all you want is plain WYSIWYG HTML. > > I made a simple project definition but it failed. > > Also it complain about 'You are not authorized to do > this operation', Is there any place these been > documented (steps)to get a simple project going on > HyperContent. For more info on configuring permissions, see http://hypercontent.sourceforge.net/help/project/permissions.html There are some other good documents in that section to help you get started, but some pages are unfortunately still blank. > > My intention is to demonstrte, HyperContent 2.0 with > CAS and uPortal. > > I created new project, and login as admin user. > > What is the support for the jsp pages, can we have > jsp > pages, will it render? There is not currently a JSP renderer in HyperContent. > <resource-directory path="/html" label="htmlfiles"> > <content type="text/html"/> > <output content-type="text/html" /> > </resource-directory> You're very close! The missing key here is a wildcard in the pattern. <resource-directory path="/html/*.html" label="Html File" publish="true"> <content type="text/html"/> </resource-directory> Note that with publish="true", you do not have to specify an output if you just want the raw file output. You would need an output if you wanted to perform any processing, or change the content type retured from the server. This is handy for DTDs, for example, since browser don't recognize their content type. <resource-directory label="DTD" path="/config/dtd/*" publish="false"> <content type="application/xml-dtd" /> <output basedir="/" content-type="text/plain" /> </resource-directory> File patterns are similar to ant patterns; you could also specify your path as "/**/*.html", and this would allow users to put HTML files in any directory at any level. Cheers, Alex |
From: tom t. <j_l...@ya...> - 2006-09-07 06:49:51
|
Alex, I did exactly what u said, next thing I want to add a html file using the UI, cant I do it? I did add a one html file manually to the repository but it doent show in the UI. How can we view the html page (what is the url that I should give from outside app like uPortal, what is the URL should I give, my project definition now look like this <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE cms-project SYSTEM "http://hypercontent.sourceforge.net/dtd/hypercontent2_0.dtd"> <cms-project> <resource-directory path="/**/*.html" label="Html File" publish="true"> <content type="text/html"/> </resource-directory> </cms-project> Carl, Ur demo zip works fine but I want to do my own hello world app. cause unfortunately more work needs to be done to the Help and HyperContent documentation, till that I want to learn my self what is going on. --- al <al...@bi...> wrote: > On Tue, 5 Sep 2006 23:47:40 -0700 (PDT), tom tom > wrote > > > I want to get a quick hello world type demo > > (prototype) using Hypercontent. Can't I get that > > through using HTML and images etc. Is it > mandotary > > that it should always go with XML,DTDs and > XSLTs. > > You do not have to use XML, DTDs and XSL if all you > want is plain WYSIWYG HTML. > > > > > I made a simple project definition but it failed. > > > > Also it complain about 'You are not authorized to > do > > this operation', Is there any place these been > > documented (steps)to get a simple project going > on > > HyperContent. > > For more info on configuring permissions, see > http://hypercontent.sourceforge.net/help/project/permissions.html > > There are some other good documents in that section > to help you get started, but some pages are > unfortunately still blank. > > > > > My intention is to demonstrte, HyperContent 2.0 > with > > CAS and uPortal. > > > > I created new project, and login as admin user. > > > > What is the support for the jsp pages, can we > have > > jsp > > pages, will it render? > > There is not currently a JSP renderer in > HyperContent. > > > <resource-directory path="/html" > label="htmlfiles"> > > <content type="text/html"/> > > <output content-type="text/html" /> > > </resource-directory> > > You're very close! The missing key here is a > wildcard in the pattern. > > <resource-directory path="/html/*.html" label="Html > File" publish="true"> > <content type="text/html"/> > </resource-directory> > > Note that with publish="true", you do not have to > specify an output if you just want the raw file > output. You would need an output if you wanted to > perform any processing, or change the content > type retured from the server. This is handy for > DTDs, for example, since browser don't recognize > their content type. > > <resource-directory label="DTD" path="/config/dtd/*" > publish="false"> > <content type="application/xml-dtd" /> > <output basedir="/" content-type="text/plain" /> > </resource-directory> > > File patterns are similar to ant patterns; you could > also specify your path as "/**/*.html", and this > would allow users to put HTML files in any directory > at any level. > > Cheers, > Alex > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support > web services, security? > Get stuff done quickly with pre-integrated > technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Alex V. <al...@bi...> - 2006-09-07 10:53:53
|
On Sep 7, 2006, at 2:49 AM, tom tom wrote: > Alex, > I did exactly what u said, next thing I want to add a > html file using the UI, cant I do it? You should be able to add it using the "add" menu on the right side when you're in your project and logged in with sufficient privileges (e.g. admin). 1) go to http://{www.yourserver.edu}/hypercontent/{your-project} 2) log in 3) click "add" then select "HTML File" 4) give the file a name 5) edit and save. The URL for the content will then be http://{www.yourserver.edu}/hypercontent/{your-project}/{your-page}.html > > I did add a one html file manually to the repository > but it doent show in the UI. Flat files are note recognized as valid by the versioning file system; it uses a special directory structure to store data. Good luck getting this working - your project definition looks fine, so you shouldn't be far off. I'm off to the airport for a four day weekend, so I'll check back on this thread Monday. Cheers, Alex |