Opinions vary mostly... I prefer to use imports so I can define all my variables in one place, or at least consistently. That also makes it easier to locate variables, just search for import.
Others prefer the id construction because it saves time and code, although I have no idea which one is more efficient. You'll probably have to ask Michiel about that, as soon as he gets back from his holidays. }-----Original Message----- }From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] }On Behalf Of Curtney Jacobs }Sent: Monday, August 16, 2004 11:03 PM }To: [EMAIL PROTECTED] }Subject: Is there a best way to create variables? } }Greetings! } }What is the best way to create a variable that stores the }content of a node's }field data. I will be using that variable through out my jsp page. } }For example, I know I can do the following, however I don't }know if this is }the proper way: } }<mm:field name="title" id="article_title" write="false"/> } }<mm:import id="title"><mm:field name="title"/></mm:import> } }Thanks for your reply, } }Curtney }
