Loading...
 
 Error
  • Contact the site administrator. The index needs rebuilding.
Architecture / Installation

Architecture / Installation


Re: Easy way to prefill Description during edit page?

posts: 3665 United States

A quick hack would be to modify the tiki-editpage.tpl template. You could include a default value in the Description's input class. Maybe something like this:

Copy to clipboard
< input class="form-control" type="text" id="description" name="description" value="{$description|escape|default:'A virtual font porch to discuss '$page}">


Although:

  1. I'm not positive how to add the $page variable — you might have to escape it.
  2. I'm also not sure that the $page is set until after you save the page.


Someone else may have a better idea.....

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
There are no comments at this time.