Menu

#38 default values for fields

open
nobody
None
5
2003-08-28
2003-08-25
No

Add the possibility to give fields a default value in
the template.

Something like

{BGIMAGE="/images/bg_top_ju.gif"}

instead of the following plugin

if(!isset($PageContent->BGIMAGE[0]))
{
$PageContent->BGIMAGE[0] = "/images/bg_top_ju.gif";
}

Discussion

  • Jacques Griessmayer

    Logged In: YES
    user_id=330633

    cya jacquez

    ;)

     
  • Jacques Griessmayer

    • priority: 5 --> 6
    • summary: Add default values for fields --> default values for fields
     
  • Thilo Wagner

    Thilo Wagner - 2003-08-28
    • priority: 6 --> 5
     
  • Thilo Wagner

    Thilo Wagner - 2003-08-28

    Logged In: YES
    user_id=504414

    Sounds like a good idea. Would be something to be sheduled
    for the next majour version of phpCMS where we want to add
    the syntax anyway.

    It probably will be something like that:

    <phpcms:insert field="bgimage"
    default="/images/bg_top_ju.gif" />

    ciao.. Iggi

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.