Fork me on GitHub

Cache and page vars into templates  Bottom

  • I've some problems with page vars into templates, I'm not sure if it's just a recent bug or a more general problem.

    Example:

    Code

    <!--[pnpagesetvar name='title' value=$templatetitle]-->
    <!--[pnpagesetvar name='description' value=$templatedesc]-->
    <!--[pnpageaddvar name="stylesheet" value=$smlayout_css]-->


    That's works fine if the cache is disabled, but if I enable it, those page var are not loaded. The cached page is display but without the additional stylesheet, description...
  • utilise insert

    Code

    <!--[insert name=setpagevar var="title" value=$topic.topic_title]-->
    <!--[insert name=setpagevar var="keywords" value=$topic.topic_title|filterwords]-->
  • Merci pour le tuyau mumuri icon_wink
  • Hmm I make some tests but it doesn't work. icon_frown

    I replace

    Code

    <!--[pnpagesetvar name='description' value=$templatedesc]-->

    By

    Code

    <!--[insert name=setpagevar var='description' value=$templatedesc]-->

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