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.

ExpressionEngine 1.6.9: displaying a weblog at all pages.

August 20, 2010 9:46am

Subscribe [1]
  • #1 / Aug 20, 2010 9:46am

    art.mania

    12 posts

    Hi friends,

    I’m a EE newbie.

    I have the code below. the poll weblog displays at search result page, but doesn’t display at blog and post details page :/ what am I missing?

    display at search result page: http://www.blabla.com/search/noresults/d8ee432f229715a4adfbe1cc0d21049a/


    NO display at blog pages: http://www.blabla.com/blog/  or http://www.blabla.com/blog/post/lorem_ipsum_is_simply_dummy_text/

    Appreciate helps!!!! Thanks a lot!

    ————————-
    at blog sidebar

    {exp:weblog:entries weblog="lg_polls"}
          {exp:lg_polls:poll entry_id="29" precision="1" return="/blog/"}
           {poll_question}
            {if can_vote}
              {poll_form}
                {if has_voted}You have already voted in this poll, however you can vote again.{/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}Thanks for voting in this poll.{/if}
              {if restricted}Sorry, You are restricted from voting in this poll.{/if}
              {if expired}This poll ended on {expiration_date}.{/if}
              {if yet_to_begin}This poll is yet to begin. Voting opens on {entry_date}.{/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    <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}
  • #2 / Aug 21, 2010 7:24am

    art.mania

    12 posts

    I guess I’m doing something wrong about {exp:weblog:entries weblog="lg_polls"} :/

  • #3 / Aug 21, 2010 11:09am

    art.mania

    12 posts

    When I make it

    {exp:weblog:entries}
          .....


    it displays answers, but not question :/

  • #4 / Aug 22, 2010 7:29am

    art.mania

    12 posts

    SORTED!

    {exp:weblog:entries weblog="lg_polls" dynamic="off"}

    dynamic=“off” is my solution! I spent 4 days for this simple solution!

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

ExpressionEngine News!

#eecms, #events, #releases