Redirect variable.  Bottom

  • Hi all.

    In my template, i add:

    Code

    <!--[add_additional_header header='<m e t a ht tp - equ iv="refresh" content="7; url = $url" />']-->


    The problem is that Zikula in the URL write '$URL', and not his content. I need that in this template, show the type message: "Thanks, new item insert to DB", and then(few seconds), redirect to the page with the details for this item. Is it possible?

    Thanks.
  • Try backticks:

    Code

    <!--[add_additional_header header='<m e t a ht tp - equ iv="refresh" content="7; url = `$url`" />']-->


    --
    Guite | ModuleStudio
  • Just a quick note, are you aware of the statusmsg features of zikula? You can have it post a message that your item was inserted into the DB. You post like this...

    Code

    SessionUtil::setVar('statusmsg', 'Thanks, new item insert to DB');


    You have to make one more change to get this to work. In the template you are using for diplaying the page, make sure you have this at or near the top.



    Then, any message you post using session utility will show up at the top of the page. I have my pngetstatusmsg in a file that I include for almost all my templates. Hope this helps.
  • Quote

    SessionUtil::setVar('statusmsg', 'Thanks, new item insert to DB');


    This is the old way of doing things. These days you should use

    Code

    LogUtil::registerStatus ($message)

    and

    Code

    LogUtil::registerError ($message)

    for this type of stuff ...

    Greetings
    R

This list is based on users active over the last 60 minutes.