 |
| Recent blog posts: | |
 |
| Forums: | | |
 |
| Discuss: | |
 |
| Recent forum topics: | |
 |
| Recent forum comments: | |
 |
| Модератор: | |
 |
Thursday, 25 September 2008
|
| Text only version of web site Quentin Zervaas 08:49:34 |
| | Hi,
Does anybody else have trouble sending to this list? Sometimes my messages won't appear, or maybe they will but 2 or 3 days later. But if I resend them they come through straight away. So anyway, ignore this message if it comes through again.
Anyway...
I'm looking for anybody's feedback on implementing a "text-only" version of a website using FarCry.
It needs to be done without having to duplicate any pages in the tree at all (for example, you could create text only templates, then duplicate the site but make the duplicate use the text only version).
Currently, I've implemented it as follows:
- Created a "toggletextonly.cfm" file, which resides in the appName/www/ directory. This sets a cookie that doesn't expire, saying whether or not to use text only version
- Modified the file farcry_core\tags\navajo\display.cfm to check for the setting of the cookie and if not then display as normal, if set then check for a webskin in the same dir with a certain prefix/suffix, and if that exists, then use that.
To explain this further, I'll just paste the code I wrote (goes at about line 166 in the display.cfm file):
<cfif structKeyExists(cookie, "use_text_only") and cookie.use_text_only eq "1"> <cfset textOnlyPrefix = "" /> <cfset textOnlySuffix = "_textonly" />
<cfif fileExists("#application.path.webskin#/#stObj.typename#/#textOnlyPrefix##stO bj.displayMethod##textOnlySuffix#.cfm")> <cfset stObj.displayMethod = textOnlyPrefix & stObj.displayMethod & textOnlySuffix /> </cfif> </cfif>
So basically, if a page was using appName\webskin\dmHTML\displayPageLanding.cfm as the template, then look for ....\displayPageLanding_textonly.cfm, and use that as the display method if it exists.
Also, I've then put a link at the bottom of each template which calls the toggletextonly.cfm file (i.e. at the bottom of the graphical template <a href="toggletextonly.cfm">Display text-only</a>, and vice-versa for the text-only template), which will toggle the cookie then redirect back to the same page.
To extend this a bit, the textOnlyPrefix and textOnlySuffix could be setup to be configured within the admin section. Using the prefix means the template probably won't display in the display methods for a file, using only the suffix means it will... some people will want it to, some won't, so that deals with that.
Just on a final note, I was going to use sessions to store the text-only variable, but decided that if someone wants text-only this time, they probably will next time (next session) too.
I realise this whole thing is a bit of hack, so if anybody has any better ideas, please let me know. Having said that, it does work quite nicely, and allows you to define text only template for any type in the system.
Cheers
--
Quentin Zervaas Web Developer
MITOUSA. Web + Interface Architects
E:// quentin-/DNu4taa9kZBDgjK7y7TUQ@public.gmane.org W:// www.mitousa.com
--- You are currently subscribed to farcry-dev as: gcf-farcry-dev@gmane.org To unsubscribe send a blank email to leave-farcry-dev-5105H-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org
|
| | 7 answers | Add comment |
Monday, 15 September 2008
|
| updating to zms 2.11 Frank Rossi 20:48:41 |
| | I'm in the procedure of updating some zms sites to zms 2.11.
Please post a download link for ZMS-2.11.0-01
Can't find it anywhere....
Regards Frank Rossi |
| | Add comment |
Wednesday, 10 September 2008
|
| onChangeObjEvt Peter Zechmeister 17:34:14 |
| | Hi, can anybody explain please, how to work with "onChangeObjEvt"?
Looking for a hook to call a script when some ZMS-Objects get changed, I found "onChangeObjEvt" in ZMS Sources in _versionmanager line 395ff. But I do not understand it in the full context.
I want to call a script if a PAGE (Rubrik, Document, spec.Obj, ...) is changed. Can I use "onChangeObjEvt" for that? How?
Greetings -- Peter Zechmeister <peter.z.nogroupwise@gmx.at>
|
| | 1 answer | Add comment |
Sunday, 31 August 2008
|
| PDF files Rocky 22:13:34 |
| |
I'm looking to use documentum to store large PDF files (some may be a few thousand pages long). I want to be able to access these linearized PDF files through adobe acrobat without first downloading the whole PDF file. I know this is possible if you are using an HTTP server, but I want to be able to access them directly from the documentum server, is this a possibility? Has anyone done anything like this?
|
| | 13 answers | Add comment |
Friday, 29 August 2008
|
| DQL exercise DUMAS RaphaГ«l 14:34:56 |
| | Hi group,
I begin with DQL ... and my first query is hard
I would like to give user in user interface a dropdown list of a custom attribute. The aim is to populate this dropdown list with folder names which located in my_docbase_cabinet/myfolder/ With DAB I use query type in value assistance. I cannot put in the query my_docbase_cabinet (root) as there : select object_name from dm_folder where folder ('my_docbase_cabinet/myfolder') because if the docbase name change, it does not work so far.
If I execute this query : 1- select object_id as my id from dm_folder where object_name = 'myfolder' (in my project i am sure that myfolder will not be use as a name for other folder. If really dangerous I can create a custom type inherited from dm_folder... after that : 2- select object_name from dm_folder where folder (id('myid'))
there it works but how can I construct one single query to perform this ambitious task ?
Raphael
|
| | 5 answers | Add comment |
Friday, 22 August 2008
|
| LDAP server cannot be contacted Maccy 19:37:10 |
| | We are experiencing an issue whereby the LDAP server seems to crash and cannot be contacted about once a week. OX services have to be restarted in order to resume normal service. Users report that they cannot log into their mail either via an IMAP client or the webmail interface.
The server is not particularly busy at the time of the crashes.
Here is the relevant section of the logs:
Aug 13 09:39:00 mail saslauthd[5082]: pam_ldap: ldap_starttls_s: Can't contact LDAP server Aug 13 09:39:00 mail saslauthd[5082]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure Aug 13 09:39:00 mail saslauthd[5082]: do_auth : auth failure: [user=db139a] [service=imap] [realm=] [mech=pam] [reason=PAM auth error] Aug 13 09:39:00 mail imap[11899]: badlogin: localhost [127.0.0.1] plaintext db139a SASL(-13): authentication failure: checkpass failed Aug 13 09:39:00 mail PAM-warn[5066]: function=[pam_sm_acct_mgmt] service=[imap] terminal=[<unknown>] user=[db139a] ruser=[<unknown>] rhost=[<unknown>] We are using OX5 build 5637 (hymalia) on a SLES9 box.
Has anyone seen this behaviour before?
Mark
|
| | 2 answer | Add comment |
Wednesday, 6 August 2008
|
| servlet.war Ian McKinnon 12:09:04 |
| | In many of the instructions, there is a long list of making servlet under tomcat/webapps and copying classes etc.. Into it from the ox directories. I noticed there was a war file called servlet, does this take care of those steps sufficiently?
|
| | 8 answers | Add comment |
Monday, 4 August 2008
|
| OXEE Auto accepting of events? Till Wimmer 18:55:25 |
| | Hi everyone,
is there a way to automatically accept all event invitations (w/o popup)?
- t
|
| | Add comment |
|
| SiteMap Jinesh Parekh 16:31:09 |
| | Hi
I have some dead links in the site map. I am not able to publish the delete of those pages and they keep hanging in the list. Could anyone suggest how should i get arround this problem. Also I want to reorder the sitemap....is this possible?
Jinesh
From: Philippe Vollenweider <pvollenweider@jahia.com> >Reply-To: <template_list@jahia.org> >To: <template_list@jahia.org> >Subject: Re: Site Name change >Date: Wed, 30 Jun 2004 18:03:30 +0200 > >I have NO experience with such a think but you can try to: > >1. backup all your files + db >2. change all entries to your sitekey on your db (you can dump the >base and directly edit the dump file then restore) >3. rename all folders and files in tomcat/webapps using this sitekey >4. do a search/replace in all your jahia files >(jahia/WEB-INF/var/content) > >Try to do this, but I really don't know the result. > >Philippe > >At 30.06.2004 17:41, you wrote: > >>Hi, >> >>I have two sites actually and I need to swap the site names. So I >>have to move contents or change the site key if possible. >> >>Please help >> >>Jinesh >> >> >From: Philippe Vollenweider <pvollenweider@jahia.com> >> >Reply-To: <template_list@jahia.org> >> >To: <template_list@jahia.org> >> >Subject: Re: Site Name change >> >Date: Wed, 30 Jun 2004 17:19:22 +0200 >> > >> >Hello, >> > >> >You can use this virtual site as default virtual site if you >>don't >> >want to see the sitekey on url. >> > >> >Philippe >> > >> >At 30.06.2004 17:15, you wrote: >> > >> >>Hi >> >> >> >>I have my URL that says ..../myjahia/...in it. I want to change >> >>this but I understand that it is not possible to change the site >> >>key once set. Is there any easy way where i can create a new >> >>virtual site and transfer all the contents of my site to the new >> >>one? >> >> >> >>Sincerley, >> >>-Jinesh >> > >> >-------=[ pvollenweider at jahia dot com ]=--------- >> >Jahia : A collaborative source CMS and Portal Server >> >www.jahia.org Community and product web site >> >www.jahia.com Commercial services company >> > >> > > >-------=[ pvollenweider at jahia dot com ]=--------- >Jahia : A collaborative source CMS and Portal Server >www.jahia.org Community and product web site >www.jahia.com Commercial services company > >
|
| | 15 answers | Add comment |
|
| OX 5 errors Adrian von Bidder 14:52:04 |
| | Hi,
Recently, we've started to see frequent out of memory errors in Tomcat -- see below. Usually after about 4 days running (~100 users, with about 20 to 60 sessions open simultaneously.)
This is on a OX 5 + SLES 9 system; current work around obviously is to reboot daily, but this is not really acceptable.
Where can I look next? What parts of the configuration should I look at / tweak?
++ Jul 10, 2008 12:36:07 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.jk.common.SocketConnection@1479225, terminating thread Jul 10, 2008 12:34:59 PM org.apache.coyote.tomcat5.CoyoteAdapter service SEVERE: An exception or error occurred in the container during the request processing java.lang.OutOfMemoryError Jul 10, 2008 12:35:18 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.jk.common.SocketConnection@86d5e2, terminating thread ++
Versions: open-xchange-0.8.8-14 open-xchange-adminweb-1.4.0-4 open-xchange-daemons-1.4.0-8 apache2-jakarta-tomcat-connectors-5.0.19-29.8 jakarta-tomcat-5.0.19-29.8
Any more data required?
cheers & thanks in advance -- vbi
-- Anyone can invent a security system that he himself cannot break. -- Schneier's Law
|
| | 2 answer | Add comment |
Friday, 25 July 2008
|
| New OX6 packaging Adrian von Bidder 20:00:53 |
| | _______________________________________________ User mailing list User@open-xchange.org http://www.open-xchange.org/cgi-bin/mailman/listinfo/user
|
| | 1 answer | Add comment |
|
|