Re: [Hypercontent-users] Further doubts and clarifications needed
Brought to you by:
alexvigdor
From: tom t. <j_l...@ya...> - 2007-02-28 00:25:13
|
Hi Alex, I tried it out, here what happened. I changed the approvals.xml <event name="save" permissions="!approve"> <variable name="editor" value="${actor}"/> <variable name="edition" value="${edition}"/> <variable name="href" value="${abs-server-base}${output-path}?edition=${edition}"/> <variable name="editor-full-name" value="${user-full-name}"/> <nq who="${editor}"/> <nq where="${path}"/> <nq q="saved"/> <redirect location="${abs-server-base}${path}?mode=interactive&screen=workflow.approvals"/> </event Then I used the ${editor-full-name} in the request-approval event as part of the email body, but it does not print the variable name instead it prints user-full-name The user has given his full-name in his profile but this has not been picked by the ${user-full-name} variable. Thanks, --- Alex Vigdor <al...@bi...> wrote: > After looking at this a little more closely, here's > my recommendation: > > 1) You must save the editor's full name in a > variable during the save > event > > <event name="save" permissions="!approve"> > <variable name="editor" value="${actor}"/> > <variable name="editor-full-name" > value="${user-full-name}"/> > ... > > 2) Then refer to your declared variable in the later > reminder events > > <event name="email-reminder" when="in 24 hours *"> > <email who="group:approvers" > subject="[HyperContent]: Reminder - > Approval requested" content-type="text/html"> > <![CDATA[ > <h3>${editor-full-name} requested approval for > ... > > Let me know if that helps! > > Alex > > On Feb 25, 2007, at 10:49 PM, tom tom wrote: > > > Full Name and email address both are not empty. > > > > Still the problem exists. > > > > let me know if it works in ur enviornment. > > > > > > Thanks, > > --- Alex Vigdor <al...@bi...> wrote: > > > >> Make sure that in the user profile, the "Full > Name" > >> field is > >> completed. The full name is taken from the > longer > >> full name field at > >> the top, is not reconstructed from the given name > >> and family name > >> fields. Perhaps that's the problem? > >> > >> Cheers, > >> Alex > >> > >> On Feb 22, 2007, at 11:09 PM, tom tom wrote: > >> > >>> Hi Alex, > >>> I started with the item 3 that is approvals.xml > >> fix. > >>> > >>> > >>> I incooperate your change as follows > >>> ... > >>> .... > >>> if(var.size()>=1){ > >>> String name = var.item(0); > >>> > >> if(Strings.equals(name,"actor") || > >>> Strings.equals(name,"user")){ > >>> > >>> > >> > > > var.set(0,Session.getUser(event.getSubject()).getName()); > >>> }else if > >>> (Strings.equals(name,"user-full-name")){ > >>> > >>> > >>> var.set(0,event.getUser().getFullName()); > >>> > >>> } > >>> > >>> ..... > >>> .... > >>> > >>> but it didnt work, if always go to the first > block > >>> which is if(Strings.equals(name,"actor") || > >>> Strings.equals(name,"user")) > >>> > >>> Then what I did was inside this block instead of > >>> > >>> > >> > > > var.set(0,Session.getUser(event.getSubject()).getName()); > >>> > >>> I changed it to > >>> > >>> > >> > > > var.set(0,Session.getUser(event.getSubject()).getFullName()); > >>> > >>> Then the entire functinality didnt work. > >>> > >>> > >>> Well my intention is to send the mail with Full > >> Name > >>> instead of userIds. > >>> > >>> > >>> > >>> Let me know how to proceed on this. > >>> > >>> Have I done something wrong.? > >>> > >>> Thanks, > >>> > >>> > >>> --- Alex Vigdor <al...@bi...> wrote: > >>> > >>>> > >>>> On Feb 20, 2007, at 9:23 PM, tom tom wrote: > >>>> > >>>>> Hi, > >>>>> > >>>>> I got hypercontent working with apache2.2 with > >>>> tomcat > >>>>> with the use of mod_jk, Hence am moving slowly > >>>> towards > >>>>> the production setup. > >>>>> > >>>>> I got following doubts/questions which am not > >> very > >>>>> clear. > >>>>> > >>>>> > >>>>> 1) What is the difference between build and > >>>> publish as > >>>>> far as the HC life cycle is concerned. How > >>>> build/build > >>>>> -all differ from publish > >>>> > >>>> Build and publish represent a two-step > publishing > >>>> process: the first > >>>> step renders the static output on a staging > >>>> filesystem that can be > >>>> used to review the content before it is copied > to > >>>> the publishing > >>>> filesystem. As it turns out, most people are > >>>> perfectly happy with a > >>>> one-step publishing workflow that renders the > >> static > >>>> output directly > >>>> to the public web space. To use this simpler > >>>> approach, adjust the > >>>> events in /config/workflow/publish.xml to > >> something > >>>> like this > >>>> > >>>> <event name="publish" permissions="publish"> > >>>> <variable name="publisher" value="${actor}"/> > > >>>> <render path="${path}" > destination="/publish/" > >>>> force="false" > >>>> delete="true"/> > >>>> <nq who="${publisher}"/> > >>>> <nq q="publishing"/> > >>>> </event> > >>>> > >>>> <event name="publish-all" > permissions="publish"> > >>>> <variable name="publisher" value="${actor}"/> > > >>>> <render path="/" destination="/publish/" > >>>> force="false" delete="true"/> > >>>> <nq who="${publisher}"/> > >>>> <nq q="publishing"/> > >>>> </event> > >>>> > >>>> Then you can remove /config/workflow/build.xml > >> and > >>>> any build > >>>> filesystem. "/publish/" refers to your publish > >>>> filesystem in / > >>>> config/project-definition.xml > >>>> > >>>>> > >>>>> > >>>>> 2) As I am running HC and apache in one > >>>> machine(with > >>>>> mod_jk) should I use build and publish at all? > >>>> Isnt > >>>>> author->preview->approve enough? > >>>>> > >>>>> Initialy I thought I dont want to use but > later > >>>>> realize that if I dont use build and publish > === message truncated === ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news |