ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PHP rendering

June 22, 2012 10:57am

Subscribe [1]
  • #1 / Jun 22, 2012 10:57am

    webnology

    353 posts

    Hi, I have this code:

    <a href=”/index.php/design/product/{exp:channel:entries channel=” offset=”<?=$page;?>” limit=“1” dynamic=“off” status=“not Closed”>

    The $page in my offset parameter is nt set correctly, but the output of $page in the lats segments is correct.

    ANy ideas?

    Michel

     

  • #2 / Jun 22, 2012 11:04am

    webnology

    353 posts

    I can’t seem to copy my code. It always gets cut oiff, sorry…

    But at the end there should be /<?=$page;?>
    And channel=“producten”

  • #3 / Jun 28, 2012 8:42am

    webnology

    353 posts

    I have a similar issue:

    {exp:channel:entries channel="klanten"}
      <? 
      $total_clients = {total_results};
      $offset_clients = $total_clients / 2;
      ?>
      {/exp:channel:entries}
    {exp:channel:entries channel="klanten" limit="<?=$offset_clients?>" orderby="{entry_date}" sort="asc"}

    If I echo teh $offset_clients I get the correct number, but it seems to ignore it when I use it in the offset parameter.

    All help appreciated,
    Michel

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases