hypercontent-users Mailing List for HyperContent (Page 23)
Brought to you by:
alexvigdor
You can subscribe to this list here.
2004 |
Jan
|
Feb
(4) |
Mar
(6) |
Apr
(4) |
May
(3) |
Jun
(1) |
Jul
(7) |
Aug
(4) |
Sep
(31) |
Oct
(11) |
Nov
(30) |
Dec
(22) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(23) |
Feb
(11) |
Mar
(22) |
Apr
(13) |
May
(31) |
Jun
(27) |
Jul
(32) |
Aug
(4) |
Sep
(25) |
Oct
(21) |
Nov
(31) |
Dec
(28) |
2006 |
Jan
(14) |
Feb
(12) |
Mar
(17) |
Apr
(21) |
May
(6) |
Jun
(4) |
Jul
(26) |
Aug
(24) |
Sep
(19) |
Oct
(24) |
Nov
(34) |
Dec
(17) |
2007 |
Jan
(10) |
Feb
(43) |
Mar
(60) |
Apr
(10) |
May
(20) |
Jun
(2) |
Jul
(17) |
Aug
(38) |
Sep
(45) |
Oct
(5) |
Nov
(4) |
Dec
(5) |
2008 |
Jan
|
Feb
(1) |
Mar
|
Apr
(10) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(4) |
Sep
(1) |
Oct
(5) |
Nov
(1) |
Dec
(1) |
2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Carl B. <C.P...@hu...> - 2005-11-18 10:06:41
|
Thanks Adam. I thought that might be it, I should have just given it a go. All working great now. Adam Carl wrote: > Change the order in the project definition. Place the base output first. > > > Adam > > On Nov 17, 2005, at 11:25 AM, Carl Barrow wrote: > >> Hi Alex >> >> As you probably saw from the site I sent over. I have three >> outputs, a base site, a text only site and a pdf for each xml >> file. When I'm editing the site in H/C2 the pdf view is always the >> default view and I have to click WYSIWYG to get the base site view >> with navigation (which now works great thanks). It would be best if >> the base site view was default. Is there somewhere that I can set >> this? >> >> Cheers >> Carl >> >> -- >> ************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by the JBoss Inc. Get Certified Today >> Register for a JBoss Training Course. Free Certification Exam >> for All Training Attendees Through End of 2005. For more info visit: >> http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> > > Adam Carl > CUIT Web Services > ac...@co... > > > -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Adam C. <ac...@co...> - 2005-11-17 18:30:11
|
Change the order in the project definition. Place the base output first. Adam On Nov 17, 2005, at 11:25 AM, Carl Barrow wrote: > Hi Alex > > As you probably saw from the site I sent over. I have three > outputs, a base site, a text only site and a pdf for each xml > file. When I'm editing the site in H/C2 the pdf view is always the > default view and I have to click WYSIWYG to get the base site view > with navigation (which now works great thanks). It would be best > if the base site view was default. Is there somewhere that I can > set this? > > Cheers > Carl > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > Adam Carl CUIT Web Services ac...@co... |
From: Carl B. <C.P...@hu...> - 2005-11-17 18:26:23
|
Hi Alex As you probably saw from the site I sent over. I have three outputs, a base site, a text only site and a pdf for each xml file. When I'm editing the site in H/C2 the pdf view is always the default view and I have to click WYSIWYG to get the base site view with navigation (which now works great thanks). It would be best if the base site view was default. Is there somewhere that I can set this? Cheers Carl -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-11-16 14:48:26
|
Hi Carl, The navigation problem is occurring because you haven't = specified the=20 full URL of the navigation DTD in your project definition. It should=20 look like this: <xml-doc=20 definition=3D"http://hypercontent.sourceforge.net/dtd/navigation.dtd"=20 path=3D"/sitemap.xml" root=3D"nav-template"> The system recognizes that specific DTD location and treats the file=20 accordingly; under 1.4 you were able to use a different DTD location=20 because you had specified the "filter" tag, but the filtering is now=20 automatic and based on that URL. The URL is mapped to a local copy of=20= the DTD by the system, so this won't introduce any network=20 dependencies. This change is also backwards compatible with 1.4. In terms of the static links, I was thinking of something like this: in the left nav, replace /cass/about_us/why_study_at_hull.html with {$baseurl}/about_us/why_study_at_hull.html -Alex On Nov 16, 2005, at 6:18 AM, Carl Barrow wrote: > Hi Alex > > Sorry I didn=92t get back sooner. > > The links that I have on the template need to be absolute, I can=92t=20= > think of a > way of doing it without. I have included links to the site definition=20= > and > repository for a site that shows an example of both problems. The top=20= > menu > items and the breadcrumb are generated from sitemap.xml, but don=92t=20= > show up when > editing in the H/C2 WYSIWYG, the menu items on the left are hard=20 > coded in the > xsl template. > > > Cheers > Carl > > >> -------- Original Message -------- >> Subject: Re: [Hypercontent-users] HyperContent 2 RC Questions >> Date: Mon, Alex Vigdor <av...@co...> >> From: =09 >> To: 'Hypercontent-users' users <hypercontent-users@l14 Nov 2005=20 >> 10:44:25 > -0500ists.sourceforge.net> >> References: <113...@we...> >> >> >> >> Hi Carl, >> I'm glad you've had a chance to look at RC1. I think you have = found=20 >> a >> bug in the FTP client - we only use SFTP here, so that wasn't as >> rigorously tested. I've attached an updated version of the >> FTPUnixFileSystemImpl - drop it into the source tree, and when you = run >> the ant script it will recompile and deploy the changes. This should >> solve that error, which was caused by a failure to check if a value = is >> null. Let me know how it works; I'll wait to check it into CVS until >> then. >> HC2 selectively rewrites the links on your page in the inline = frame; >> it only changes relative links (links starting with "."). If you = have >> any sort of absolute link (including links starting with "/") HC2 >> leaves it alone, so even if it points to another page managed by HC2=20= >> it >> won't be recognized. Try setting it up as a relative link and it >> should work. >> For the navigation problem, I'd have an easier time debugging it = if I >> could see it in context. If you could zip up the repository of a >> project with the problem, I'll install it locally and have a look. >> >> Cheers, >> Alex >> >> >> >> >> --=20 >> ************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> >> ************************************ >> >> > > > ************************************ > Carl Barrow > Web Developer > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ |
From: Carl B. <C.P...@hu...> - 2005-11-14 16:24:44
|
Hi Alex Thanks, the new FTPUnixFileSystemImpl.java file did the trick. It does still say file not found on your first build but then goes though to complete without errors. I'll check out the navigation issues tomorrow morning and get back to you on that.... Cheers Carl Alex Vigdor wrote: > Hi Carl, > I'm glad you've had a chance to look at RC1. I think you have > found a bug in the FTP client - we only use SFTP here, so that wasn't > as rigorously tested. I've attached an updated version of the > FTPUnixFileSystemImpl - drop it into the source tree, and when you run > the ant script it will recompile and deploy the changes. This should > solve that error, which was caused by a failure to check if a value is > null. Let me know how it works; I'll wait to check it into CVS until > then. > HC2 selectively rewrites the links on your page in the inline > frame; it only changes relative links (links starting with "."). If > you have any sort of absolute link (including links starting with "/") > HC2 leaves it alone, so even if it points to another page managed by > HC2 it won't be recognized. Try setting it up as a relative link and > it should work. > For the navigation problem, I'd have an easier time debugging it > if I could see it in context. If you could zip up the repository of a > project with the problem, I'll install it locally and have a look. > > Cheers, > Alex > >------------------------------------------------------------------------ > >/** > * Copyright (c) 2003 Columbia University in the City of New York. > * > * Permission is hereby granted, free of charge, to any person obtaining > * a copy of this software and associated documentation files (the > * "Software"), to deal in the Software without restriction, including > * without limitation the rights to use, copy, modify, merge, publish, > * distribute, sublicense, and/or sell copies of the Software, and to > * permit persons to whom the Software is furnished to do so, subject to > * the following conditions: > * > * The above copyright notice and this permission notice shall be > * included in all copies or substantial portions of the Software. > * > * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF > * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. > * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY > * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, > * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE > * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. > * > */ >package org.hypercontent.filesystem.impl; > >//java imports >import java.io.*; >import java.util.*; >import java.text.*; > > >// used for FTP commands >import com.enterprisedt.net.ftp.*; > >import org.hypercontent.filesystem.FileSystemException; > >import org.hypercontent.filesystem.*; >import org.hypercontent.util.Paths; >/** > * <p>FTPUnixFileSystemImpl contains methods to perform operations > * on a UNIX FTP file system. </p> > * > * <p>Columbia University </p> > * > * @author Adam Carl ac...@co... > * @author Alex Vigdor av...@co... > * @version $Revision: 1.3 $ > */ > >public class FTPUnixFileSystemImpl extends RemoteFileSystemImpl implements IRemoteClient{ > > private String chmod; > private FTPClient ftpClient; > private String FTP_STATUS_CMD = "NOOP"; > private FTPTransferType transferMode = FTPTransferType.BINARY; > private static String[] replyCodes = new String[] {"200"}; > > protected IRemoteClient getClient() { > return this; > } > > public FTPUnixFileSystemImpl(){ > super(); > } > > /** > * Mounts the File System > * @throws FileSystemException > */ > public void connect(RemoteConnection conn) throws FileSystemException{ > // set up host > try{ > ftpClient = new FTPClient(); > ftpClient.setRemoteHost(conn.host); > } > catch (FTPException ftpe){ > FileSystemException fe = new FileSystemException(X_GENERAL_ERROR); > throw fe; > } > catch (IOException ioe){ > FileSystemException fe = new FileSystemException(X_IO_ERROR); > throw fe; > } > > synchronized (ftpClient){ > // open connection > try{ > ftpClient.connect(); > ftpClient.login(conn.username, conn.password); > ftpClient.setConnectMode(FTPConnectMode.PASV); > ftpClient.setType(transferMode); > } > catch (FTPException ftpe){ > FileSystemException fe = new FileSystemException(X_BAD_MOUNT_ARGUMENTS,ftpe); > throw fe; > } > catch (IOException ioe){ > FileSystemException fe = new FileSystemException(X_BAD_MOUNT_ARGUMENTS,ioe); > throw fe; > } > > // now try and change to directory > try{ > ftpClient.chdir(conn.root); > } > // would fail if directory does not exist > catch (Exception ioe){ > FileSystemException fe = new FileSystemException(X_BAD_MOUNT_ARGUMENTS, ioe); > throw fe; > } > } > } > > /** > * Unmounts the File System > * > */ > public void disconnect(){ > synchronized (ftpClient){ > try{ > ftpClient.quit(); > } > catch (Exception e){} > } > } > > public boolean isConnected() { > try { > checkFileSystemConnectionStatus(); > return true; > } > catch(FileSystemException e) { > return false; > } > } > > > /* > * given the logical path of a directory, return String[] of the > * logical paths of its elements. Make sure directories end in / > * and throw an exception if the directory is not found > */ > public RemoteFile[] ls(String dir) throws FileSystemException{ > try{ > FTPFile[] listing; > synchronized (ftpClient){ > try{ > ftpClient.chdir(dir); > } > catch(Exception e){ > throw new FileSystemException(X_DIRECTORY_NOT_FOUND,dir); > } > listing = ftpClient.dirDetails(dir); > } > ArrayList files = new ArrayList(listing.length); > for (int x=0;x<listing.length;x++){ > FTPFile ftpFile = listing[x]; > RemoteFile file = new RemoteFile(); > file.date= ftpFile.lastModified(); > file.name=ftpFile.getName(); > file.isFile = !ftpFile.isDir(); > if(!file.isFile){ > file.name = Paths.concat(file.name,"/"); > } > files.add(file); > } > > RemoteFile[] rfiles = (RemoteFile[]) files.toArray(new RemoteFile[0]); > > return rfiles; > } > catch (FTPException ftpe){ > checkFileSystemConnectionStatus(); > throw new FileSystemException(X_GENERAL_ERROR,ftpe); > } > catch (IOException ioe){ > checkFileSystemConnectionStatus(); > throw new FileSystemException(X_IO_ERROR,ioe); > } > catch(ParseException e){ > throw new FileSystemException(X_GENERAL_ERROR,e); > } > } > > public void chmod(String mask, String path) throws FileSystemException { > chmod = "SITE chmod " + mask + " "; > try{ // set permissions > ftpClient.quote(chmod + path, replyCodes); > } > catch (FTPException ftpe) { > throw new FileSystemException(X_GENERAL_ERROR,ftpe); > } > catch(IOException e) { > throw new FileSystemException(X_IO_ERROR,e); > } > } > > /** > * Stores data to a file on the File System. Use the newFile metod > * to create a file before calling this method. > * > * @throws FileSystemException > */ > public void store(InputStream data,String path) throws FileSystemException{ > String fullDirectory = getParentDirectory(path); > synchronized (ftpClient){ > try{ > ftpClient.chdir(fullDirectory); > ftpClient.put(data,path); > } > catch (FTPException ftpe){ > if (ftpe.getReplyCode() == 550){ > throw new FileSystemException(X_DIRECTORY_NOT_FOUND,ftpe,fullDirectory); > } > checkFileSystemConnectionStatus(); > throw new FileSystemException(X_GENERAL_ERROR,ftpe); > } > catch (IOException ioe){ > checkFileSystemConnectionStatus(); > throw new FileSystemException(X_IO_ERROR,ioe); > } > finally{ > try{ > data.close(); > } > catch(IOException e){} > } > } > } > > public IDataLoader getDataLoader(String path) { > return new FTPFileDataLoader(ftpClient,path); > } > > public void deleteFileEdition(String path, int index, String actor) throws FileSystemException{ > deleteFile(path,actor); > } > > /** > * Removes a file from the File System > * @param path Path and filename of the file to remove > * @throws FileSystemException > */ > public void delete(String path) throws FileSystemException{ > try{ > ftpClient.delete(path); > } > catch (FTPException ftpe){ > checkFileSystemConnectionStatus(); > throw new FileSystemException(X_GENERAL_ERROR,ftpe); > } > catch (IOException ioe){ > checkFileSystemConnectionStatus(); > throw new FileSystemException(X_IO_ERROR,ioe); > } > } > > /** > * Create a new directory on the File System > * @param path Path and directory of the directory to create > * @throws FileSystemException > */ > public void mkdir(String path) throws FileSystemException{ > try{ > ftpClient.mkdir(path); > } > catch (FTPException ftpe){ > switch (ftpe.getReplyCode()){ > case 550: > throw new FileSystemException(X_DIRECTORY_NOT_FOUND,path); > default: > checkFileSystemConnectionStatus(); > throw new FileSystemException(X_GENERAL_ERROR,ftpe); > } > } > catch (IOException ioe){ > checkFileSystemConnectionStatus(); > throw new FileSystemException(X_GENERAL_ERROR,ioe); > } > } > > public void rmdir(String path) throws FileSystemException { > try { > ftpClient.rmdir(path); > } > catch(IOException e) { > checkFileSystemConnectionStatus(); > throw new FileSystemException(X_IO_ERROR,e); > } > catch(FTPException e) { > checkFileSystemConnectionStatus(); > throw new FileSystemException(X_GENERAL_ERROR,e); > } > } > > /* > * Checks to see if the FTP Server can receive a command > */ > protected void checkFileSystemConnectionStatus() throws FileSystemException > { > if(ftpClient==null){ > throw new FileSystemException(X_FILESYSTEM_NOT_MOUNTED); > } > synchronized(ftpClient){ > // send a NOOP comamnd to ftp server. If active will reply with 200 > // the NOOP command just tells the FTP seerver to respond with "Ok" > try{ > ftpClient.quote(FTP_STATUS_CMD, replyCodes); > } > > // for some reason ftp server is no longer available, throw mount exception, > // probably timed out > catch(Exception e){ > throw new FileSystemException(X_FILESYSTEM_NOT_MOUNTED,e); > } > } > } > >} > > -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-11-14 15:45:09
|
Hi Carl, I'm glad you've had a chance to look at RC1. I think you have found a bug in the FTP client - we only use SFTP here, so that wasn't as rigorously tested. I've attached an updated version of the FTPUnixFileSystemImpl - drop it into the source tree, and when you run the ant script it will recompile and deploy the changes. This should solve that error, which was caused by a failure to check if a value is null. Let me know how it works; I'll wait to check it into CVS until then. HC2 selectively rewrites the links on your page in the inline frame; it only changes relative links (links starting with "."). If you have any sort of absolute link (including links starting with "/") HC2 leaves it alone, so even if it points to another page managed by HC2 it won't be recognized. Try setting it up as a relative link and it should work. For the navigation problem, I'd have an easier time debugging it if I could see it in context. If you could zip up the repository of a project with the problem, I'll install it locally and have a look. Cheers, Alex |
From: Carl B. <C.P...@hu...> - 2005-11-14 13:02:02
|
Hi Alex I hope you had a good break. I have now set up HyperContent 2 at hull and although I havent had a long look at it and all its features I have migrated a couple of site from H/C 1.4 which seemed very straight forward. I have a come across a some small problems which I cant seem to solve. 1 although I have all the pft setting correct I get an error on build: The requested URL /esig/hypertest/build/pdf/index.pdf was not found on this server. [org.hypercontent.filesystem.impl.FTPUnixFileSystemImpl.checkFileSystemConnectionStatus(FTPUnixFileSystemImpl.java:301), org.hypercontent.filesystem.impl.FTPUnixFileSystemImpl.isConnected(FTPUnixFileSystemImpl.java:129), org.hypercontent.filesystem.impl.RemoteFileSystemImpl.mount(RemoteFileSystemImpl.java:91), org.hypercontent.filesystem.FileSystemFactory.mountFileSystemManager(FileSystemFactory.java:165), org.hypercontent.filesystem.FSMount.getManager(FSMount.java:86), org.hypercontent.workflow.exec.impl.AbstractBatchExecutable.execute(AbstractBatchExecutable.java:188), org.hypercontent.workflow.exec.impl.AbstractExecutable.runWithException(AbstractExecutable.java:127), org.hypercontent.workflow.exec.impl.AbstractExecutable.run(AbstractExecutable.java:147), org.hypercontent.workflow.queue.impl.ExecutableQueueRunner.run(ExecutableQueueRunner.java:106), org.hypercontent.workflow.thread.CPQThread.run(CPQThread.java:60)] 2 when viewing a site in H/C2 I can navigate though the content in the WYSIWYG view. If I use static links which are part of the xsl template (/my-directory/my-file.html), although they allow me to navigate the site is doesnt actually change to the corresponding content when I click edit. 3- Most of the sites here at hull have navigation auto generated using the following code (or something similar) <xsl:template name="left-navigation"> <xsl:for-each select="$navigation/nav-item/nav-item[starts-with(/cms:wrapper/cms:source/ @directory,@directory)]"> <xsl:for-each select="nav-item"> <xsl:variable name="onSelf" select="@location = $sourceItem/@location"/> <xsl:variable name="style"> <xsl:choose> <!-- this is self --> <xsl:when test="$onSelf"> <xsl:text></xsl:text> </xsl:when> <!-- normal link --> <xsl:otherwise> <xsl:text></xsl:text> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="$onSelf"> <!--just have a span here if you want the links to vanish on click <span style="{$style}"> <xsl:value-of select="@label"/> </span> --> <xsl:call-template name="navigation-link-side"> <xsl:with-param name="style" select="$style"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="navigation-link-side"> <xsl:with-param name="style" select="$style"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:for-each> </xsl:template> <xsl:template name = "navigation-link-side"> <xsl:param name = "nav-item" select = "."/> <xsl:attribute name = "href"> <xsl:choose> <xsl:when test = "starts-with($nav-item/@location,'/')"> <xsl:value-of select = "concat($baseurl,$nav-item/@base,'.html')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select = "$nav-item/@location"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:if test = "$nav-item/@target"> <xsl:attribute name = "target"> <xsl:value-of select = "$nav-item/@target"/> </xsl:attribute> </xsl:if> <xsl:value-of select = "$nav-item/@label"/> </a </xsl:template> When I use the WYSIWYG view to look at the site in H/C2 this navigation isnt rendered with the rest of the page. Is there anything that I can do to fix this? Cheers Carl ************************************ Carl Barrow Web Developer e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Adam C. <ac...@co...> - 2005-11-11 15:27:45
|
Michael, I believe smtp.univ.edu was just a place holder. You need to replace it with your university or company mail server. You can find this value in the hypercontent.properties file. Adam On Nov 10, 2005, at 11:25 AM, Carl Barrow wrote: >> smtp.univ.edu Adam Carl CUIT Web Services ac...@co... |
From: Carl B. <C.P...@hu...> - 2005-11-10 16:27:14
|
Hi Michael I have been so busy here at Hull I haven't had much of a chance to look at HyperContent 2 yet, I have version 1.4 in production that doesn't have email included. I have installed V2 on a server and migrated a site but that is as far as it goes. So unfortunately I can't help really, perhaps just make sure that you have your smtp settings set correctly. Alex should be back in work next week. Can anyone else help out? Thanks Carl Michael Ayodele wrote: > > > > > Hey Carl I was wondering if you might be able to help me. I am trying > to test out sending work requests from admin user to an author user. > However I am getting this error: > > > > Unknown SMTP host: smtp.univ.edu; nested exception is: > java.net.UnknownHostException: smtp.univ.edu > > > > Michael Ayodele > -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-11-02 23:16:37
|
Hello all, I just wanted to let everyone know I'll be away without access to e-mail starting tomorrow morning (the 2nd) until Monday the 14th. Sorry to disappear so quickly after a release, but that's how it happens some time. Cheers, Alex |
From: Alex V. <av...@co...> - 2005-11-02 17:00:10
|
Hi Carl, I think you should be able to accomplish that with a combination of @directory and @pattern. The exact XPATH would depend on how your pattern is defined in the project definition, but assuming it is "/*/*/index.xml": <xsl:when test="($sourceItem/@pattern='/*/*/index.xml') and (starts-with($sourceItem/@directory,'/qualityhandbook/'))"> . . . Cheers, Alex On Nov 2, 2005, at 11:45 AM, Carl Barrow wrote: > Hi Alex > > The following xsl checks a path and puts in a list of files for that > page : > <xsl:when test="$sourceItem/@location = > '/qualityhandbook/section_a/index.xml'"> > <xsl:call-template name="body-navigation-quality"/> > </xsl:when> > > It works fine. Do you know of a way to say any index file at that > level under qualtiyhandbook should use that body-navigation-template? > I tried > <xsl:when test="$sourceItem/@location = > '/qualityhandbook/*/index.xml'"> > <xsl:call-template name="body-navigation-quality"/> > </xsl:when> > > But that did't work. > > Cheers Carl > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2005-11-02 16:46:39
|
Hi Alex The following xsl checks a path and puts in a list of files for that page : <xsl:when test="$sourceItem/@location = '/qualityhandbook/section_a/index.xml'"> <xsl:call-template name="body-navigation-quality"/> </xsl:when> It works fine. Do you know of a way to say any index file at that level under qualtiyhandbook should use that body-navigation-template? I tried <xsl:when test="$sourceItem/@location = '/qualityhandbook/*/index.xml'"> <xsl:call-template name="body-navigation-quality"/> </xsl:when> But that did't work. Cheers Carl -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-11-02 08:37:49
|
Hello all, You can find a link for the new HyperContent 2.0 Release Candidate distribution from the HyperContent home page at http://hypercontent.sourceforge.net This release candidate contains a lot of bug fixes and enhancements driven by our first few weeks of production use here at Columbia. We currently have about a dozen users using the system daily, and are training more every week. Notable additions since the last beta release include image watermarking support, simpler filesystem configuration, highlighted search results and two new sample projects. For the full list of changes, visit http://sourceforge.net/project/shownotes.php?release_id=367743 Cheers, Alex |
From: Alex V. <av...@co...> - 2005-10-31 18:07:39
|
Hi Mike, You could host a website in HC2, but for your average site it = makes=20 more sense to publish it out to be hosted by a dedicated web server,=20 which is usually Apache. uPortal is not a web server, but a portal=20 server which can aggregate information and applications from multiple=20 back-end sources, including Apache or HyperContent. As such, uPortal=20 is not well suited to hosting complete web sites, but rather "bite=20 size" bits of information and functionality that can be arranged in a=20 configureable way based upon a user's rights and responsibilities. You=20= might manage some of these discrete portlets in HC2 and serve them=20 directly to uPortal, for example if you want to require authentication=20= to view that particular information, since you can configure single=20 sign-on between uPortal and HC2. You could also publish static portlet=20= content from HC2 to an Apache server, which uPortal could then pull=20 form. HC2 has a flexible workflow for delivering content; the "build"=20= and "publish" model is presented by default for maximum backwards=20 compatibility with HC1.4, but at Columbia we're actually migrating most=20= sites to a one-step publish, where the site as it appears in HC2 is=20 rendered directly into the public web space. You could also set up=20 multiple "build" or staging steps, which would primarily useful for=20 very sensitive information that might need to go through several steps=20= of vetting. The crashing sounds a bit strange; one possible solution would = be to=20 boost the JVM memory in the ant "build.xml" script - you'll see it's=20 currently set to 'maxmemory=3D"256m"', which really should be adequate=20= for the sample. Make suer to check the "hypercontent.log" for error=20 messages. Another probably more useful idea would be to download the=20 latest code from CVS; while those don't remind me of any particular=20 bugs that have been fixed since the 2.0b4 release, there have been a=20 ton of overall fixes resulting from our production migration these last=20= few weeks. The current code in CVS is exactly what we're running in=20 production; you can find info on how to download it from the web site. =20= The CVS files are in the exact same structure as the distribution, but=20= lack the sample project, which you can add in yourself. There are two ways to add users in HC2; if you use an external=20 authentication provider such as CAS, the users are automatically added=20= to the system once they have logged in the first time. To add a user=20 manually to HC2, you need to create a file under the "users" directory.=20= You'll see an example of where these go if you click the "Admin User"=20= link after logging in using the sample admin user. Basically, the file=20= has to live beneath a couple of directories that represent the first,=20 then the first and second letters of the user name. E.g. http://localhost:8080/users/m/my/myuser/user.xml You would add this by starting at http://localhost:8080/users/ If the first letter of the username is not already in the list, use the=20= "add" menu to add "First letter". It will then appear in the list;=20 click it, then add "First two letters". Click that directory, then=20 add "User" and enter the username. This will bring you to the VCard=20 editor where you can search LDAP for the user's info, upload a .vcf=20 file from your PIM, or manually enter it by clicking "Start from=20 scratch". The main things to worry about in the VCard editor are the=20 Full Name, which is displayed when the user logs in, and the email=20 address for workflow notifications. You'll see a second editor called=20= "Change Password" where you can enter a password for the user. Once=20 you have done this, save the user file, and you are ready to log in as=20= that user. Once you have users in the system, in order for them to do anything you=20= will have to add them to groups in the groups file (/config/groups.xml=20= in each project) and/or assign permissions to them or their groups in=20 the permissions files (/config/permissions.xml). I think there's more=20= discussion of the groups and permissions in the mailing list archives. Cheers, Alex On Oct 31, 2005, at 11:10 AM, michael ayodele wrote: > I think I am a little confused with the roles of hypercontent and=20 > uportal. Let me see if I got this right. Hypercontent is a web=20 > application platform that allows groups of people to work together in=20= > order to build a consistent web application. Hypercontent just creates=20= > the website, and does not host the website. Once a website is complete=20= > it must be built and then published to a host server(uportal) where=20= > it is actually used by end users. And uportal is a serverside=20 > framework for handling accesses by many users=A0for university = websites.=20 > Hopefully you can help me fill in gaps and misunderstandings. > =A0 > Also things I found using hypercontent > - whenever I try to=A0build the sample project=A0it builds half of it = then=20 > crashes=A0 > - When I try to download the entire sample project zip(in workflow)=A0it= =20 > crashes > =A0 > Other Questions > - How do I create new users and their passwords and permissions? > =A0 > Thanks Alex > =A0 > On 10/28/05, Alex Vigdor <av...@co...> wrote: HI Mike, >> =A0=A0=A0=A0=A0=A0 There isn't currently a plugin for rendering JSPs, = but it=20 >> should be >> possible.=A0=A0Similarly, there is no built-in database access, but = you >> should be able to accommodate that via plugins. >> >> There are 2 APIs you should look at: >> >> org.hypercontent.project.engine.IPipelineStage >> =A0=A0=A0=A0=A0=A0 - sample implementations under=20 >> org.hypercontent.project.engine.stage >> =A0=A0=A0=A0=A0=A0 - can be added into any view by binding into a = pipeline; see >> "/config/pipelines.xml" in the bootstrap project for how all the >> built-in screens are configured >> =A0=A0=A0=A0=A0=A0 - this is where you would query the database to = pre-populate a=20 >> form. >> You could render the information into XML and follow with an XSL = stage >> for presentation, >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 or bind the values into = java objects and place them in=20 >> a >> VelocityContext for presentation with a Velocity template (see >> VelocityStage.getContext()) >> =A0=A0=A0=A0=A0=A0 - you could develop a stage which would render = with a JSP,=20 >> though this >> would probably take more work >> =A0=A0=A0=A0=A0=A0 - the stage "process" method gives you a Task = which has a=20 >> buffer of >> type "IWriteableAsset".=A0=A0You control what comes out of the stage = by >> setting the >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 IDataLoader on the buffer; = this is simply an object=20 >> that returns an >> InputStream with your data (e.g. your XML rendered information).=A0=A0I= f >> you're using velocity, >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 all you have to do is add = your objects into the=20 >> context and follow up >> with a VelocityStage that runs through a .vm template that references >> those objects. >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 If you were to develop a = JSP stage, you would create=20 >> an IDataLoader >> implementation that presents the output of the JSP as an InputStream. >> >> org.hypercontent.form.IFormProcessor >> =A0=A0=A0=A0=A0=A0 - this is where you collect data from user form = inputs >> =A0=A0=A0=A0=A0=A0 - you could write a form processor to store the = form inputs in=20 >> a >> database >> =A0=A0=A0=A0=A0=A0 - see samples under "org.hypercontent.form" >> =A0=A0=A0=A0=A0=A0 - these are bound into views in the pipelines file = once again;=20 >> you >> assign them a key like "my-form", and assign individual form inputs = to >> it like so: >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 XSL: >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = <input name=3D"{$my-form}name"/> >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Velocity >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = <input name=3D"${my-form}name"/> >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Your processor will see it = with the name "name": the=20 >> prefix is used >> by the framework to route individual inputs to individual processors. >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 In this way, you could = have different inputs in the=20 >> same form routed >> to separate logical processors, e.g. >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = <input name=3D"${my-form}name"/> >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = <input name=3D"${my-other-form}name"/> >> >> All the built in application screens are developed with these two=20 >> APIs, >> so there are plenty of examples.=A0=A0There are some screen-specific >> stages, like "ManagePrepStage", and other commonly reused stages like >> "XSLTransformStage", "VelocityStage" and "TrimStage".=A0=A0You can = chain >> any number of stages in any way, so the possibilties are endless! >> >> -Alex >> >> >> On Oct 28, 2005, at 12:14 PM, michael ayodele wrote: >> >> > How would one go about querying and storing information in=20 >> databases? >> > Thanks again for all your help. >> > >> > Michael Ayodele |
From: Alex V. <av...@co...> - 2005-10-28 17:26:47
|
HI Mike, There isn't currently a plugin for rendering JSPs, but it should = be=20 possible. Similarly, there is no built-in database access, but you=20 should be able to accommodate that via plugins. There are 2 APIs you should look at: org.hypercontent.project.engine.IPipelineStage - sample implementations under = org.hypercontent.project.engine.stage - can be added into any view by binding into a pipeline; see=20 "/config/pipelines.xml" in the bootstrap project for how all the=20 built-in screens are configured - this is where you would query the database to pre-populate a = form. =20 You could render the information into XML and follow with an XSL stage=20= for presentation, or bind the values into java objects and place them in a=20= VelocityContext for presentation with a Velocity template (see=20 VelocityStage.getContext()) - you could develop a stage which would render with a JSP, = though this=20 would probably take more work - the stage "process" method gives you a Task which has a buffer = of=20 type "IWriteableAsset". You control what comes out of the stage by=20 setting the IDataLoader on the buffer; this is simply an object that = returns an=20 InputStream with your data (e.g. your XML rendered information). If=20 you're using velocity, all you have to do is add your objects into the context = and follow up=20 with a VelocityStage that runs through a .vm template that references=20 those objects. If you were to develop a JSP stage, you would create an = IDataLoader=20 implementation that presents the output of the JSP as an InputStream. org.hypercontent.form.IFormProcessor - this is where you collect data from user form inputs - you could write a form processor to store the form inputs in a=20= database - see samples under "org.hypercontent.form" - these are bound into views in the pipelines file once again; = you=20 assign them a key like "my-form", and assign individual form inputs to=20= it like so: XSL: <input name=3D"{$my-form}name"/> Velocity <input name=3D"${my-form}name"/> Your processor will see it with the name "name": the = prefix is used=20 by the framework to route individual inputs to individual processors. In this way, you could have different inputs in the same = form routed=20 to separate logical processors, e.g. <input name=3D"${my-form}name"/> <input name=3D"${my-other-form}name"/> All the built in application screens are developed with these two APIs,=20= so there are plenty of examples. There are some screen-specific=20 stages, like "ManagePrepStage", and other commonly reused stages like=20 "XSLTransformStage", "VelocityStage" and "TrimStage". You can chain=20 any number of stages in any way, so the possibilties are endless! -Alex On Oct 28, 2005, at 12:14 PM, michael ayodele wrote: > How would one go about querying and storing information in databases? > Thanks again for all your help. > =A0 > Michael Ayodele= |
From: Alex V. <av...@co...> - 2005-10-27 16:19:30
|
Hi Mike, You can manually wipe out the contents of the project repository = and=20 restart; this will leave the project mounted with a fresh repository. =20= If you want to remove the mount as well, you'll need to delete the=20 directory under which you specfied it in "/projects/" in the bootstrap=20= directory. -Alex On Oct 27, 2005, at 12:14 PM, michael ayodele wrote: > I wanted to remove some of the projects I created and start over what=20= > is the best way to do this > =A0 > Mike Ayodele= |
From: Carl B. <C.P...@hu...> - 2005-10-21 12:55:50
|
Hi Alex I'm publishing all the files, everything is set up correct, I have no idea why it doesn't work. I don't think it's actually anything to do with H/C. I persuaded them to host the site here on the Hull campus in the end. That makes more sense for us anyways. Cheers Carl Alex Vigdor wrote: > Hi Carl, > Are you publishing all, or just a file? If you're publishing all, > do all the files fail, or just some? There was a bug I've fixed in > the 2.0 code base that may have been inherited from 1.4, where you > could get false negatives on (S)FTP connections after they had been > open more than 2 minutes. Are you sure your argument index 3 (the > path on the remote server) is set up properly? > > Cheers, > Alex > > On Oct 20, 2005, at 10:44 AM, Carl Barrow wrote: > >> Hi Alex >> >> I have just setup a new site that is located on a server on our >> other campus. I have everything setup correctly but it just says it >> can't find the directories when I build. ftp access is subnet >> restricted but I had the sorted out. It there anything else that >> they might need to do to make it work ? >> >> Cheers >> Carl >> >> The error is as follows: >> There was an error processing this operation; >> /SCAR/scartest/index.xml: The system cannot find the file specified. >> >> There was an error processing this operation >> Recorded Exception: com.enterprisedt.net.ftp.FTPException: >> /SCAR/scartest/index.xml: The system cannot find the file specified. >> at >> com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocke >> t.java:577) >> at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:1411) >> at >> edu.columbia.filesystem.impl.FTPUnixFileSystemImpl.ls(FTPUnixFileSystem >> Impl.java:239) >> at >> edu.columbia.filesystem.impl.RemoteFileSystemImpl.dir(RemoteFileSystemI >> mpl.java:211) >> at >> edu.columbia.filesystem.impl.RemoteFileSystemImpl.isDirectory(RemoteFil >> eSystemImpl.java:596) >> at >> edu.columbia.hypercontent.engine.AbstractRequestImpl.run(AbstractReques >> tImpl.java:127) >> at >> edu.columbia.hypercontent.RequestTracker$Worker.run(RequestTracker.java >> :313) >> >> >> -- >> ************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Carl B. <C.P...@hu...> - 2005-10-21 08:25:42
|
Hi Michael The XML and XSL part of HyperContent is the hard part as Alex said. But with that comes a greater amount of flexibility. There isn’t anything that I’ve needed to do that I haven’t been able to achieve, things like automatic generation of navigation, pdf files and breadcrumb trails. We are now hosing around thirty sites and are in the process of building our main university site in HyperContent. I too was relatively new to XML and XSL when I started using HyperContent but thanks to Alex at Columbia I have managed to become proficient. I find it a very flexible and adaptable way of working. I will try and help out with any of your XSL queries if you post them up to the email list. Good luck ! Carl Alex Vigdor wrote: > Hi Michael, > If you're looking specifically at the home page, you'll notice in the > project definition that the home navigation file data is included: > > <include data="yes" metadata="no" source="/config/home-navigation.xml"/> > > This means that you can refer to its root element in xsl like so: > > <xsl:variable name="home-navigation" > select="/cms:wrapper/cms:include[@path='/config/home-navigation.xml']/navigation"/> > > > However, there may be a way to leverage the XSL that's there if you > want to change the class name for left nav links at a certain depth. > As you may notice, "class" is a parameter to the "nav-item-link" > template, so it makes sense to determine an alternate class name, if > appropriate, in the XSL that calls this template. > > You'll find this template is activated in the "nav-item-rows" template > at line 215: > > <xsl:call-template name="nav-item-link"/> > > If you want to change the classname for sub-menu links, you could > check the value of the "indent" variable that is already used to > indicate depth > > <xsl:choose> > <xsl:when test="$indent = 10"> > <xsl:call-template name="nav-item-link"> > <xsl:with-param name="class" select="'leftNavSub'"/> > </xsl:call-template> > </xsl:when> > <xsl:otherwise> > <xsl:call-template name="nav-item-link"/> > </xsl:otherwise> > </xsl:choose> > > -Alex > > On Oct 20, 2005, at 12:21 PM, michael ayodele wrote: > > Thanks for your help. I have another question. Okay I understand > what you just said about changing the css. I guess your right the > hard part is the XSL. I have added a new class style to the css. > And I think I have located the section in common.xsl that I need > to change: > > < > xsl:template name="nav-item-link"> > > <xsl:param name="class"> > > <xsl:choose> > > <xsl:when test="@location=$sourcePath">leftnavOn </xsl:when> > > <xsl:otherwise>leftnavMenu</xsl:otherwise > > > </xsl:choose> > (lines 148-153) > I figure I need to add and if statement for leftnavOn and > leftnavMenu that checks if the link is a Menu link or submenu > link. I was thinking I could reference the home-navigation file > but I don't know how. Any suggestions. > > Michael Ayodele > > On 10/19/05, *Alex Vigdor* <av...@co...> wrote: Michael, > > XSL is definitely the "hard part" of working with > HyperContent. Be > patient, I know it took me a while to really be comfortable > with it. > The example you give is actually controlled in css; the > topmost left > nav link has a class "navhead" and the menu links have a class > "leftnav" or "leftnavOn" for the current page link. Most folks > use the > XSL to generate just basically formatted HTML and use CSS to > control > things like font sizes, colors, background images, even > positioning for > sites that don't worry so much about Netscape 4.7 compatibility. > > You may find it useful to step back from HyperContent and do > some XSL > tutorials on-line if it's unfamiliar to you, as that way > you're not > trying to learn everything all at once. > > Good luck, > Alex > > On Oct 19, 2005, at 10:47 AM, michael ayodele wrote: > > > Thank You for your response. I am still a little confused > about the > > hypercontent system.How would Ias a developer use > hypercontent to > > create new html pages.For example how would I change the > size of the > > hyperlinks in theleftnav menu bar, so that the Menu link's > size and > > color is different from its submenu links. It seems almost > impossible > > as look through the common.xsl for thesample project. Is > there an > > easy way to do this, I am new to XML/XSL.It would really > help me if I > > could talk to someone on the phone. If you can could you > give me a > > call at850-766-6908 > > > > Michael Ayodele > > > > > > On 10/18/05, Alex Vigdor <av...@co...> wrote: Hi > Michael, > >> I'll respond to your question via e-mail, since that is the > >> preferred > >> mechanism amongst hypercontent users, although I noticed > your post on > >> the forums as well. > >> > >> The directions in the Read Me tell you how to port an > existing project > >> into HC2; since you're starting from scratch, the main > thing you need > >> to do is create the repository definition under > /projects/.Once > >> you're able to access your repository via its mount point, > you have > >> your blank slate. A directory called "/config/" is > automatically > >> created with blank project definition, groups and > permissions files, > >> as > >> well as copies of the workflow scripts found in the > bootstrap project. > >> A directory called "/workflow-data/" is also created, which > you can > >> ignore; this is where HC2 stores various workflow related > data such as > >> batch tasks, work queues, etc.You don't need to upload a > repository > >> zip since you're not converting an existing project. > >> > >> The place you start defining your file structure, XSL > transformations > >> and such is in the file "/config/project- definition.xml ", > which when > >> you begin is simply an empty document.This document is > >> backwards-compatible with the format documented in the v1.4 > manual > >> starting at > >> > >> > >> > http://hypercontent.sourceforge.net/docs/manual/develop/project- > >> def.html > >> > >> There are new things you can do in this file that are not > expressed in > >> the 1.4 documentation, such as specify files with "**" > patterns ( e.g. > >> /**/index.xml indicates an index page in any directory at > any level) > >> and add output elements to resource-directories ( e.g. to > auto-create > >> an > >> HTML page to display an image with metadata and navigation, > or to > >> output multiple resized versions of an image). But for the > most part > >> you'll find the v1.4 documentation a good starting point for > >> understanding what this file does. > >> > >> I've been promising a release candidate for a while now, > which will > >> include a couple more sample projects which are simpler and > and show > >> off some of the newer features.This release is planned for > the very > >> near future, I've just been very busy with our internal > migration to > >> HC2 the last few weeks, handling bug fixes and GUI tweaks > based on > >> user > >> feedback, all of which will make the final product more > polished.Our > >> HC2 server handled about 40,000 requests during business hours > >> yesterday, and our users, who had been using the 1.x series > for up to > >> 2 > >> years, are very happy with intuitiveness and performance of > the new > >> system.Of course we're only about 15% migrated, so the work > goes on > >> . > >> . . > >> > >> Cheers, > >> Alex > >> > >> > >> On Oct 18, 2005, at 12:01 PM, Carl Barrow wrote: > >> > >> > Hi Michael > >> > > >> > By way of this email I have forwarded your email to the > HyperContent > >> > mailing list, which you should join as it is very useful > >> > http://sourceforge.net/mail/?group_id=101745. There is > usually one > >> of > >> > us around to help answer your questions and there is some > very good > >> > info on there already. > >> > > >> > Unfortunately I am about to leave work for the > evening,Alex might > >> be > >> > able to send a response later today. If not I will get > back to you > >> > tomorrow. > >> > > >> > Many Thanks > >> > Carl > >> > > >> > > >> > > >> > -------- Original Message -------- > >> > Subject:Needed help using Hypercontent > >> > Date: Mon, 17 Oct 2005 12:10:13 -0400 > >> > From: michael ayodele < mic...@gm...> > >> > To: por...@hu... > >> > > >> > > >> > > >> > Hi I have been trying to use hypercontent and as you say > it can be a > >> > very daunting task. I have been trying to follow the > sample website > >> > that comes with hypercontent to see how the system works. > However it > >> > is quite overwhelming. So I am trying to build a simple > website of > >> my > >> > own following the directions in the readme file. I am > stuck now on > >> the > >> > step that says to create a project-definition.xml file and > >> uploading a > >> > repository zip. What does my repository zip contain?, > what is its > >> > structure? I sort of understand we are suppose to create our > >> websites > >> > by changing XML content, using XSL into HTML. But how > does it all > >> fit > >> > together, what am I supposed to provide and what does > hypercontent > >> > take care of for me. If you help me get started I would > really > >> > apreciate, there does not seem to be a lot of documentation > >> available > >> > Michael Ayodele > >> > Software Engineering Graduate Student > >> > Florida A&M University > >> > > >> > -- > >> > ************************************ > >> > > >> > Carl Barrow > >> > Systems Integrator > >> > e-Services > >> > The University of Hull > >> > Cottingham Road > >> > Hull > >> > HU6 7RX > >> > Ext. 6838 > >> > ************************************ > >> > > >> > > >> > > >> > ------------------------------------------------------- > >> > This SF.Net email is sponsored by: > >> > Power Architecture Resource Center: Free content, downloads, > >> > discussions, > >> > and more. http://solutions.newsforge.com/ibmarch.tmpl > >> > _______________________________________________ > >> > Hypercontent-users mailing list > >> > Hyp...@li... > >> > > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > >> > > >> > -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-10-20 19:32:52
|
Hi Michael, If you're looking specifically at the home page, you'll notice = in the =20 project definition that the home navigation file data is included: <include data=3D"yes" metadata=3D"no" = source=3D"/config/home-navigation.xml"/> This means that you can refer to its root element in xsl like so: <xsl:variable name=3D"home-navigation" =20 select=3D"/cms:wrapper/cms:include[@path=3D'/config/home-navigation.xml']/= =20 navigation"/> However, there may be a way to leverage the XSL that's there if you =20 want to change the class name for left nav links at a certain depth. =20= As you may notice, "class" is a parameter to the "nav-item-link" =20 template, so it makes sense to determine an alternate class name, if =20 appropriate, in the XSL that calls this template. You'll find this template is activated in the "nav-item-rows" template =20= at line 215: <xsl:call-template name=3D"nav-item-link"/> If you want to change the classname for sub-menu links, you could check =20= the value of the "indent" variable that is already used to indicate =20 depth <xsl:choose> <xsl:when test=3D"$indent =3D 10"> <xsl:call-template name=3D"nav-item-link"> <xsl:with-param name=3D"class" = select=3D"'leftNavSub'"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name=3D"nav-item-link"/> </xsl:otherwise> </xsl:choose> -Alex On Oct 20, 2005, at 12:21 PM, michael ayodele wrote: > Thanks for your help. I have another question. Okay I understand what =20= > you just said about changing the css. I guess your right=A0the hard = part =20 > is the XSL.=A0 I have added a new class style to the css. And I think = I =20 > have located the=A0section in common.xsl that I need to change: > > < > xsl:template name=3D"nav-item-link"> > > <xsl:param name=3D"class"> > > <xsl:choose> > > <xsl:when test=3D"@location=3D$sourcePath">leftnavOn </xsl:when> > > <xsl:otherwise>leftnavMenu</xsl:otherwise > > > </xsl:choose> > (lines 148-153) > I figure I need to add and if statement=A0for leftnavOn and = leftnavMenu =20 > that checks if the link is a=A0Menu link or submenu link. I was = thinking =20 > I could reference the home-navigation file but I don't know how. Any =20= > suggestions. > =A0 > Michael Ayodele=A0 > =A0 > On 10/19/05, Alex Vigdor <av...@co...> wrote: Michael, >> =A0=A0=A0=A0=A0=A0 XSL is definitely the "hard part" of working with =20= >> HyperContent.=A0=A0Be >> patient, I know it took me a while to really be comfortable with it. >> The example you give is actually controlled in css; the topmost left >> nav link has a class "navhead" and the menu links have a class >> "leftnav" or "leftnavOn" for the current page link.=A0=A0Most folks = use =20 >> the >> XSL to generate just basically formatted HTML and use CSS to control >> things like font sizes, colors, background images, even positioning =20= >> for >> sites that don't worry so much about Netscape 4.7 compatibility. >> >> You may find it useful to step back from HyperContent and do some = XSL >> tutorials on-line if it's unfamiliar to you, as that way you're not >> trying to learn everything all at once. >> >> Good luck, >> =A0=A0=A0=A0=A0=A0 Alex >> >> On Oct 19, 2005, at 10:47 AM, michael ayodele wrote: >> >> > Thank You for your response. I am still a little confused about the >> > hypercontent system.How would Ias a developer use hypercontent to >> > create new html pages.For example how would I change the size of = the >> > hyperlinks in theleftnav menu bar, so that the Menu link's size and >> > color is different from its submenu links. It seems almost =20 >> impossible >> > as look through the common.xsl for thesample project. Is there an >> > easy way to do this, I am new to XML/XSL.It would really help me if = =20 >> I >> > could talk to someone on the phone. If you can could you give me a >> > call at850-766-6908 >> > >> > Michael Ayodele >> > >> > >> > On 10/18/05, Alex Vigdor <av...@co...> wrote: Hi Michael, >> >> I'll respond to your question via e-mail, since that is the >> >> preferred >> >> mechanism amongst hypercontent users, although I noticed your post = =20 >> on >> >> the forums as well. >> >> >> >> The directions in the Read Me tell you how to port an existing =20 >> project >> >> into HC2; since you're starting from scratch, the main thing you =20= >> need >> >> to do is create the repository definition under /projects/.Once >> >> you're able to access your repository via its mount point, you = have >> >> your blank slate. A directory called "/config/" is automatically >> >> created with blank project definition, groups and permissions =20 >> files, >> >> as >> >> well as copies of the workflow scripts found in the bootstrap =20 >> project. >> >> A directory called "/workflow-data/" is also created, which you = can >> >> ignore; this is where HC2 stores various workflow related data =20 >> such as >> >> batch tasks, work queues, etc.You don't need to upload a = repository >> >> zip since you're not converting an existing project. >> >> >> >> The place you start defining your file structure, XSL =20 >> transformations >> >> and such is in the file "/config/project- definition.xml ", which =20= >> when >> >> you begin is simply an empty document.This document is >> >> backwards-compatible with the format documented in the v1.4 manual >> >> starting at >> >> >> >> >> >> http://hypercontent.sourceforge.net/docs/manual/develop/project- >> >> def.html >> >> >> >> There are new things you can do in this file that are not =20 >> expressed in >> >> the 1.4 documentation, such as specify files with "**" patterns ( =20= >> e.g. >> >> /**/index.xml indicates an index page in any directory at any =20 >> level) >> >> and add output elements to resource-directories ( e.g. to =20 >> auto-create >> >> an >> >> HTML page to display an image with metadata and navigation, or to >> >>=A0=A0output multiple resized versions of an image). But for the = most =20 >> part >> >> you'll find the v1.4 documentation a good starting point for >> >> understanding what this file does. >> >> >> >> I've been promising a release candidate for a while now, which = will >> >> include a couple more sample projects which are simpler and and =20= >> show >> >> off some of the newer features.This release is planned for the = very >> >> near future, I've just been very busy with our internal migration =20= >> to >> >>=A0=A0HC2 the last few weeks, handling bug fixes and GUI tweaks = based on >> >> user >> >> feedback, all of which will make the final product more =20 >> polished.Our >> >> HC2 server handled about 40,000 requests during business hours >> >> yesterday, and our users, who had been using the 1.x series for up = =20 >> to >> >> 2 >> >> years, are very happy with intuitiveness and performance of the = new >> >> system.Of course we're only about 15% migrated, so the work goes = on >> >> . >> >> . . >> >> >> >> Cheers, >> >> Alex >> >> >> >> >> >> On Oct 18, 2005, at 12:01 PM, Carl Barrow wrote: >> >> >> >> > Hi Michael >> >> > >> >> > By way of this email I have forwarded your email to the =20 >> HyperContent >> >> > mailing list, which you should join as it is very useful >> >> > http://sourceforge.net/mail/?group_id=3D101745. There is usually = =20 >> one >> >> of >> >> > us around to help answer your questions and there is some very =20= >> good >> >> > info on there already. >> >> > >> >> > Unfortunately I am about to leave work for the evening,Alex = might >> >> be >> >> > able to send a response later today. If not I will get back to =20= >> you >> >> > tomorrow. >> >> > >> >> > Many Thanks >> >> > Carl >> >> > >> >> > >> >> > >> >> > -------- Original Message -------- >> >> > Subject:Needed help using Hypercontent >> >> > Date: Mon, 17 Oct 2005 12:10:13 -0400 >> >> > From: michael ayodele < mic...@gm...> >> >> > To: por...@hu... >> >> > >> >> > >> >> > >> >> > Hi I have been trying to use hypercontent and as you say it can =20= >> be a >> >> > very daunting task. I have been trying to follow the sample =20 >> website >> >> > that comes with hypercontent to see how the system works. =20 >> However it >> >> > is quite overwhelming. So I am trying to build a simple website =20= >> of >> >> my >> >> > own following the directions in the readme file. I am stuck now =20= >> on >> >> the >> >> > step that says to create a project-definition.xml file and >> >> uploading a >> >> > repository zip. What does my repository zip contain?, what is = its >> >> > structure? I sort of understand we are suppose to create our >> >> websites >> >> > by changing XML content, using XSL into HTML. But how does it = all >> >> fit >> >> > together, what am I supposed to provide and what does =20 >> hypercontent >> >> > take care of for me. If you help me get started I would really >> >> > apreciate, there does not seem to be a lot of documentation >> >> available >> >> > Michael Ayodele >> >> > Software Engineering Graduate Student >> >> > Florida A&M University >> >> > >> >> > -- >> >> > ************************************ >> >> > >> >> > Carl Barrow >> >> > Systems Integrator >> >> > e-Services >> >> > The University of Hull >> >> > Cottingham Road >> >> > Hull >> >> > HU6 7RX >> >> > Ext. 6838 >> >> > ************************************ >> >> > >> >> > >> >> > >> >> > ------------------------------------------------------- >> >> > This SF.Net email is sponsored by: >> >> > Power Architecture Resource Center: Free content, downloads, >> >> > discussions, >> >> > and more. http://solutions.newsforge.com/ibmarch.tmpl >> >> > _______________________________________________ >> >> > Hypercontent-users mailing list >> >> > Hyp...@li... >> >> > https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> > >> >> >> |
From: Alex V. <av...@co...> - 2005-10-20 19:16:23
|
Hi Carl, Are you publishing all, or just a file? If you're publishing all, do all the files fail, or just some? There was a bug I've fixed in the 2.0 code base that may have been inherited from 1.4, where you could get false negatives on (S)FTP connections after they had been open more than 2 minutes. Are you sure your argument index 3 (the path on the remote server) is set up properly? Cheers, Alex On Oct 20, 2005, at 10:44 AM, Carl Barrow wrote: > Hi Alex > > I have just setup a new site that is located on a server on our other > campus. I have everything setup correctly but it just says it can't > find the directories when I build. ftp access is subnet restricted > but I had the sorted out. It there anything else that they might need > to do to make it work ? > > Cheers > Carl > > The error is as follows: > There was an error processing this operation; > /SCAR/scartest/index.xml: The system cannot find the file specified. > > There was an error processing this operation > Recorded Exception: com.enterprisedt.net.ftp.FTPException: > /SCAR/scartest/index.xml: The system cannot find the file specified. > at > com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocke > t.java:577) > at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:1411) > at > edu.columbia.filesystem.impl.FTPUnixFileSystemImpl.ls(FTPUnixFileSystem > Impl.java:239) > at > edu.columbia.filesystem.impl.RemoteFileSystemImpl.dir(RemoteFileSystemI > mpl.java:211) > at > edu.columbia.filesystem.impl.RemoteFileSystemImpl.isDirectory(RemoteFil > eSystemImpl.java:596) > at > edu.columbia.hypercontent.engine.AbstractRequestImpl.run(AbstractReques > tImpl.java:127) > at > edu.columbia.hypercontent.RequestTracker$Worker.run(RequestTracker.java > :313) > > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2005-10-20 14:44:30
|
Hi Alex I have just setup a new site that is located on a server on our other campus. I have everything setup correctly but it just says it can't find the directories when I build. ftp access is subnet restricted but I had the sorted out. It there anything else that they might need to do to make it work ? Cheers Carl The error is as follows: There was an error processing this operation; /SCAR/scartest/index.xml: The system cannot find the file specified. There was an error processing this operation Recorded Exception: com.enterprisedt.net.ftp.FTPException: /SCAR/scartest/index.xml: The system cannot find the file specified. at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:577) at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:1411) at edu.columbia.filesystem.impl.FTPUnixFileSystemImpl.ls(FTPUnixFileSystemImpl.java:239) at edu.columbia.filesystem.impl.RemoteFileSystemImpl.dir(RemoteFileSystemImpl.java:211) at edu.columbia.filesystem.impl.RemoteFileSystemImpl.isDirectory(RemoteFileSystemImpl.java:596) at edu.columbia.hypercontent.engine.AbstractRequestImpl.run(AbstractRequestImpl.java:127) at edu.columbia.hypercontent.RequestTracker$Worker.run(RequestTracker.java:313) -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-10-18 17:04:52
|
Hi Michael, I'll respond to your question via e-mail, since that is the preferred mechanism amongst hypercontent users, although I noticed your post on the forums as well. The directions in the Read Me tell you how to port an existing project into HC2; since you're starting from scratch, the main thing you need to do is create the repository definition under /projects/. Once you're able to access your repository via its mount point, you have your blank slate. A directory called "/config/" is automatically created with blank project definition, groups and permissions files, as well as copies of the workflow scripts found in the bootstrap project. A directory called "/workflow-data/" is also created, which you can ignore; this is where HC2 stores various workflow related data such as batch tasks, work queues, etc. You don't need to upload a repository zip since you're not converting an existing project. The place you start defining your file structure, XSL transformations and such is in the file "/config/project-definition.xml", which when you begin is simply an empty document. This document is backwards-compatible with the format documented in the v1.4 manual starting at http://hypercontent.sourceforge.net/docs/manual/develop/project-def.html There are new things you can do in this file that are not expressed in the 1.4 documentation, such as specify files with "**" patterns (e.g. /**/index.xml indicates an index page in any directory at any level) and add output elements to resource-directories (e.g. to auto-create an HTML page to display an image with metadata and navigation, or to output multiple resized versions of an image). But for the most part you'll find the v1.4 documentation a good starting point for understanding what this file does. I've been promising a release candidate for a while now, which will include a couple more sample projects which are simpler and and show off some of the newer features. This release is planned for the very near future, I've just been very busy with our internal migration to HC2 the last few weeks, handling bug fixes and GUI tweaks based on user feedback, all of which will make the final product more polished. Our HC2 server handled about 40,000 requests during business hours yesterday, and our users, who had been using the 1.x series for up to 2 years, are very happy with intuitiveness and performance of the new system. Of course we're only about 15% migrated, so the work goes on . . . Cheers, Alex On Oct 18, 2005, at 12:01 PM, Carl Barrow wrote: > Hi Michael > > By way of this email I have forwarded your email to the HyperContent > mailing list, which you should join as it is very useful > http://sourceforge.net/mail/?group_id=101745. There is usually one of > us around to help answer your questions and there is some very good > info on there already. > > Unfortunately I am about to leave work for the evening, Alex might be > able to send a response later today. If not I will get back to you > tomorrow. > > Many Thanks > Carl > > > > -------- Original Message -------- > Subject: Needed help using Hypercontent > Date: Mon, 17 Oct 2005 12:10:13 -0400 > From: michael ayodele <mic...@gm...> > To: por...@hu... > > > > Hi I have been trying to use hypercontent and as you say it can be a > very daunting task. I have been trying to follow the sample website > that comes with hypercontent to see how the system works. However it > is quite overwhelming. So I am trying to build a simple website of my > own following the directions in the readme file. I am stuck now on the > step that says to create a project-definition.xml file and uploading a > repository zip. What does my repository zip contain?, what is its > structure? I sort of understand we are suppose to create our websites > by changing XML content, using XSL into HTML. But how does it all fit > together, what am I supposed to provide and what does hypercontent > take care of for me. If you help me get started I would really > apreciate, there does not seem to be a lot of documentation available > Michael Ayodele > Software Engineering Graduate Student > Florida A&M University > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > |
From: Carl B. <C.P...@hu...> - 2005-10-18 16:01:42
|
Hi Michael By way of this email I have forwarded your email to the HyperContent mailing list, which you should join as it is very useful http://sourceforge.net/mail/?group_id=101745. There is usually one of us around to help answer your questions and there is some very good info on there already. Unfortunately I am about to leave work for the evening, Alex might be able to send a response later today. If not I will get back to you tomorrow. Many Thanks Carl -------- Original Message -------- Subject: Needed help using Hypercontent Date: Mon, 17 Oct 2005 12:10:13 -0400 From: michael ayodele <mic...@gm...> To: por...@hu... Hi I have been trying to use hypercontent and as you say it can be a very daunting task. I have been trying to follow the sample website that comes with hypercontent to see how the system works. However it is quite overwhelming. So I am trying to build a simple website of my own following the directions in the readme file. I am stuck now on the step that says to create a project-definition.xml file and uploading a repository zip. What does my repository zip contain?, what is its structure? I sort of understand we are suppose to create our websites by changing XML content, using XSL into HTML. But how does it all fit together, what am I supposed to provide and what does hypercontent take care of for me. If you help me get started I would really apreciate, there does not seem to be a lot of documentation available Michael Ayodele Software Engineering Graduate Student Florida A&M University -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Carl B. <C.P...@hu...> - 2005-10-06 10:04:33
|
Hi Alex Todays question :) Is there a way that I can get the editor to leave in ../ in a link? At the moment it is taken out. Cheers Carl -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Masood M. <mas...@ya...> - 2005-10-06 04:26:48
|
hi i solved my problem by rewriting the xsl with different design pattern, instead of using <xsl:apply-templates> i used for-each for my nodes --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. |