MindTouch Developer Center > Deki > FAQ > Extensions > How do I...Create pages with dynamic content?

How do I...Create pages with dynamic content?

Deki Wiki includes several extensions that enable you to create dynamic pages with rich, evergreen content.  The easiest way is to use the SmartPage template, which uses the Google and Dapper extensions to aggregate and augment content on the fly.

All you need to do is follow these 3 simple steps:

  1. create a dapp on Dapper.net that extracts an image, title, and summary, or use one of the premade dapps below
  2. create a wiki page
  3. invoke the SmartPage template with the name of your dapp

Step 1. Create/find a dapp

Go to Dapper and create a dapp that extracts these fields:

  • image: an image to use in the story
  • title: a linked title to use in the story
  • summary: a summary to show in the story and to analyze

These are dapps you can use right off the bat:

Step 2. Create a wiki page

The best place to experiment with your dapp is on your user page.  Just register and click on MyPage in the top left corner to go to your own page.  Now click "New Page" and start experimenting away!

Step 3. Invoke the SmartPage template

Now, all you need to do is type in the following.  This will use the default YahooTopStory dapp.

{{ template.smartpage{ } }} 

Or to switch to another dapp, invoke the template like this:

{{ template.smartpage{ name: 'CnnTopStory' } }} 

Finally, if your dapp requires arguments or an input uri, you can pass them in as well:

{{ template.smartpage{ name: 'MyDapp', input: 'http://my-uri', args: { var: 'value' } } }}

{{ wiki.template('SemanticContent', { page: page.path }) }}

Sample pages from BBC, CNN, Yahoo, and others

Check out these sample pages:


Tag page

Files 1

FileSizeDateAttached by 
 index.html
No description
7.35 kB16:57, 2 May 2008decoraarteActions
You must login to post a comment.
Powered by MindTouch Deki v.8.08.2