www.netsi.dk

"The internet is just a layer on the real world" (don't forget that!)

Dynamicweb afsnits tekst editor – skabeloner og hvordan man anvender dem

Nu er der en code til at lave templates (skabeloner) til paragraph text editor og en god guide (på engelsk) som gennemgår installation og med et eksempel. Så nu er det bare at huske det når man implementerer løsninger! :-)

Code snippet for creating template for the #dynamicweb paragraph texteditor – mytemplates.xml http://goo.gl/DlUwG

Share

Snippets: Dynamicweb snippets

If your are working a lot with the CMS system you will find these very handy! I have allready been published a very useful “eval window, where you can see a description about how to “install” it in your browser. Below are five other snippets targeted for users of Dynamicweb CMS.

I have choosen to set the snippet in as a link on each word, so what you need to do to get the actual code is to right click and choose “Copy destination”. On your clipboard the snippet will be then to use as I wrote in the article “eval window“.

Here goes:

  • Log off – Use this to logoff a an extranet user
  • Admin – Open the ADMIN (backend) of the current Dynamicweb CMS site
  • Empty cart – Well… Empty the shopping cart
  • Save Template XML – Will add “savetemplateXML=true” to the current page, which will make Dynamicweb CMS save the XML in the respective template folders
  • GetImage – Will open the “Get Image” URL generator of your Dynamicweb CMS – very usefull!

Oh, and You ofcause can right click the link (snippet) and choose “Add to favourites…” :-)

Share

Snippet: eval window

Here is a very usefull which you can put in a link in your () browser. It opens a new window from where you can execute javascript in the context of the parent window. Very usefull! Here is the snippet code:

javascript:void(eval("var s = '<script type=\"text/javascript\">function doEval(s) { opener.eval(s); }</script>';s+='<textarea rows=10 cols=80 id=source></textarea><br /><input type=button value=Eval onclick=\"doEval(source.value)\" />';window.w = window.open('','','width=700,height=210');window['w'].document.write(s);window['w'].document.title='Debug window'"))

To add this snippet to your browser follow these steps:

  1. Copy the code above to the clipboard
  2. Add this page to your bookmarks – in the link area.
  3. Edit the bookmark, replacing the URL with the copied code on the clipboard
  4. Save, while accepting any warnings about protocol

Using it is simple. When you are on a you simply – press the link just created, and you get a new window in which you may execute javascript. The script will run in the context of the original window so you may explore the DOM and any other relevant information.

Share