The answer is that your need wasn't all that clear ;) But at the very least, there's about 99% chance you'll have to write your own paragraph (definition|script), yeah. And no, unless you have your own paragraph(or paragraphrenderer or what not), the text entered in dialogs is not processed as if it were JSP/JSTL (God, I wouldn't want any author to be even able to think about doing that... ! :p)

If you want an "Hello Chris" in the corner of your site's pages, this might be something that will come along with Magnolia 4.2 / STK 1.2 / P.U.R 1.1

-g

On Sep 24, 2009, at 10:16 PM, Chris Pratt wrote:

So the answer is that Magnolia doesn't have this ability and we'll have to develop our own, correct?
  (*Chris*)

On Thu, Sep 24, 2009 at 12:06 PM, Ruben Reusser <[email protected]> wrote:

well, that might be :-) I probably would add an additional config to the whole paragraph that lists the role this user has to be off in order to see the paragraph and then use code to check the role on the fly. Or do a search and replace in the text to add the username for example (how about [[username]]) :-)

Ruben

Chris Pratt wrote:
I think what Jaswinder is asking is, is there a way to process JSP or JSTL tags (or some other replacement nomenclature) in the text from an edit or fckEdit paragraph to insert replacement parameters with data stored in the session?
 (*Chris*)

On Thu, Sep 24, 2009 at 10:37 AM, Ruben Reusser <[email protected] <mailto:[email protected] >> wrote:


   something like this?

   User user = MgnlContext.getInstance().getUser();
if(user != null && !"anonymous".equals(user.getName().toString())) {
   } else {

   }


   Jaswinder Kaur wrote:


       Is there a way to access session attributes inside a paragraph
       ? The requirement is if a user's login, we want to some user
       specific information within a text

       Thanks in advance
       Jaswinder




       MailGate.vsp.com <http://MailGate.vsp.com> made the following

       annotations
---------------------------------------------------------------------
       NOTICE: This message is intended only for the individual to
       whom it is addressed and may contain information that is
       confidential or privileged. If you are not the intended
       recipient, or the employee or person responsible for
       delivering it to the intended recipient, you are hereby
       notified that any dissemination, distribution, copying or use
       is strictly prohibited. If you have received this
       communication in error, please notify the sender and destroy
       or delete this communication immediately.
---------------------------------------------------------------------



------------------------------------------------------------------------ ----------------------------------------------------------------
       For list details see
       http://www.magnolia-cms.com/home/community/mailing-lists.html
       To unsubscribe, E-mail to:
       <[email protected]
       <mailto:[email protected]>>

----------------------------------------------------------------


   ----------------------------------------------------------------
   For list details see
   http://www.magnolia-cms.com/home/community/mailing-lists.html
   To unsubscribe, E-mail to: <[email protected]
   <mailto:[email protected]>>
   ----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to