2010-08-20 60 views
0

我是一個EE新手。ExpressionEngine 1.6.9:在所有頁面顯示博客

我有下面的代碼。投票博客顯示在搜索結果頁面,但不顯示在博客和帖子詳細信息頁面:/我在想什麼?

顯示在搜索結果頁面:www.blabla.com/search/noresults/d8ee432f229715a4adfbe1cc0d21049a/

都不顯示博客網頁:www.blabla.com/blog/www.blabla。 com/blog/post/lorem_ipsum_is_simply_dummy_text/

Appreciate help !!!!非常感謝!

{exp:weblog:entries weblog="lg_polls"} 
    {exp:lg_polls:poll entry_id="29" precision="1" return="/blog/"} 
    <p>{poll_question}</p> 
    {if can_vote} 
     {poll_form} 
     {if has_voted}<p>You have already voted in this poll, however you can vote again.</p>{/if} 
     <ul class='lg-polls-answers'> 
      {poll_answers} 
      <li class='a-{answer_count}'> 
      <label for='lg-polls-answer-{answer_id}'>{answer_input} <span class='answer'>{answer}</span></label> 
      </li> 
      {/poll_answers} 
     </ul> 
     <div class="alignCenter"><input type="image" src="{site_url}/images/btn_submitpoll.png" alt="Vote" /></div> 
     {/poll_form} 
    {if:else} 
     {if has_voted}<p>Thanks for voting in this poll.</p>{/if} 
     {if restricted}<p>Sorry, You are restricted from voting in this poll.</p>{/if} 
     {if expired}<p>This poll ended on {expiration_date}.</p>{/if} 
     {if yet_to_begin}<p>This poll is yet to begin. Voting opens on {entry_date}.</p>{/if} 
    {/if} 
    {if show_results} 
     <div class='lg-poll-results' id='lg-poll-results-29'> 
     <ul class='lg-polls-answers'> 
     {results_answers} 
     <li class='a-{answer_count}'> 
      <span class='answer'>{answer}</span> 
      <span class='answer-total-votes'>{answer_total_votes} votes &nbsp;&nbsp; <b>{answer_percentage}%</b></span> 
     </li> 
     {/results_answers} 
     </ul> 
     <div class='poll-total-votes'>Total Votes: {poll_total_votes}</div> 
     </div> 
    {if:else} 
     {if show_results_after_poll && has_voted}The results of the poll will be made available on {expiration_date}{/if} 
     {if never_show_results && has_voted}The results of this poll will be made public at a later date.{/if} 
    {/if} 



    {/exp:lg_polls:poll} 

{/exp:weblog:entries} 

回答

1

我不是100%肯定,因爲我以前沒有使用過LG投票,但嘗試添加動態=「off」爲您的EXP:博客:項開標籤。這將阻止EE嘗試根據URL在您要調用的博客中查找條目。請參見下面的鏈接:

http://expressionengine.com/legacy_docs/modules/weblog/parameters.html#par_dynamic

+0

您好,我忘了更新在這裏:/,但我已經與動態固定的問題=「關閉」 :)感謝反正 – 2010-08-23 23:51:44

相關問題