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.

A field disappear after clicking an entry?

October 03, 2007 3:49pm

Subscribe [1]
  • #1 / Oct 03, 2007 3:49pm

    briciusaz

    38 posts

    I must be doing something wrong here, but there’s a specific area that field disappears after clicking one of the entries. I must be doing something wrong here, you can see the example;

    http://iplaccess.org/index.php

    Keep your eyes on recommended links box (it has one entry as of right now). If you click any entries under news / announcement, that entry under recommended links goes away.

    That Recommended Links has its own weblog.. To feed in the links. Not sure what else to throw out for you guys to help me out on this one.

    IN EE, top of the page (template)- I have this statement for that box only,

    {assign_variable:my_links="Links"}


    then I have this;

    <table width=“0” border=“0” cellspacing=“0” cellpadding=“10”>
      <tr>
      <td valign=“top”><div class=“grayheader”>Recommended Links

       
    {exp:weblog:entries weblog="{my_links}” limit=“4” orderby=“date” sort=“desc” disable=“member_data|trackbacks”}
    {title}{/exp:weblog:entries}</div></td>


    Am I doing anything wrong?

  • #2 / Oct 03, 2007 3:52pm

    Lisa Wess

    20502 posts

    See the article on The Importance of Semantics - the answer you seek is near the end.

  • #3 / Oct 03, 2007 4:12pm

    briciusaz

    38 posts

    Thanks for the speedy respond again 😊

    I am sorry to say this but I still can’t figure out what I am doing wrong. I read the article you typed and kept not seeing anything I shld change. I did added the dynamic=“off” part and it didnt made any differnece.

  • #4 / Oct 03, 2007 4:19pm

    Lisa Wess

    20502 posts

    Can you paste your code as it is now? dynamic=“off” should have fixed it.

  • #5 / Oct 03, 2007 4:26pm

    briciusaz

    38 posts

    Ok I am copying the sections that I think is more imp for you to look at;

    {assign_variable:my_weblog="Main"}
    {assign_variable:my_links="Links"}
    {assign_variable:my_template_group="main"}


    <div class=“maintitle”>News / Announcements</div>
    <div class=“sideheaderred”>
    {exp:weblog:entries weblog="{my_weblog}” orderby=“date” sort=“desc” limit=“1” dynamic=“off” disable=“member_data|trackbacks”}
    <table width=“0” border=“0” cellspacing=“0” cellpadding=“0”>
      <tr>
      <td width=“389”><div class=“lefttitle”>{title}</div></td>
      <td width=“56” valign=“bottom”>  <div class=“date”>{entry_date format=' %n/%d/%y '}</div></td>
      </tr>
    </table>
    <div class=“posted”>Posted by {author}</div>
    <div class=“newscontent”>{summary}

    {body}

    </div>
    <div class=“viewmore”>{if extended}MORE…
              {/if}</div>
    </div>


    </div>
    {/exp:weblog:entries}

    <div class=“contentfrontbody1”>
    {exp:weblog:entries orderby="date" sort="desc" offset="1" limit="3" weblog="{my_weblog}”  disable=“pagination|custom_fields|categories|member_data|trackbacks” dynamic=“off”}
    <div class=“sideheaderblue”>
    <table width=“0” border=“0” cellspacing=“0” cellpadding=“0”>
      <tr>
      <td width=“389”><div class=“lefttitle1”>
    {title}

    </div></td>
      <td width=“56” valign=“bottom”>  <div class=“date”>{entry_date format=' %n/%d/%y '}</div></td>
      </tr>
    </table>

    </div>
    {/exp:weblog:entries}
    </div>


    <table width=“0” border=“0” cellspacing=“0” cellpadding=“10”>
      <tr>

      <td valign=“top”><div class=“grayheader”>Recommended Links

       
    {exp:weblog:entries weblog="{my_links}” limit=“4” orderby=“date” sort=“desc” disable=“trackbacks” dynamic=“off”}
    {title}{/exp:weblog:entries}</div></td>

  • #6 / Oct 03, 2007 4:38pm

    Lisa Wess

    20502 posts

    Make sure you retype out the quotes around dynamic=“off” as they may simply be curly quotes, if you just retype them that may fix it.

    And when posting code, please put it between [ code ] tags =)

  • #7 / Oct 03, 2007 4:50pm

    briciusaz

    38 posts

    Aw! Ya got that one right, rewriting ” works. Oh boy, I wondering how many times you have heard somebody saying this on this forum, “Don’t I feel stupid now?” 😊 Many thanks again

  • #8 / Oct 03, 2007 5:08pm

    Lisa Wess

    20502 posts

    Don’t worry, it took me about 45 minutes of debugging to figure that one out the first time. 😉  Stray, or mis-formed, or special characters can be extremely frustrating and difficult to troubleshoot. =/

    It helps when you know something should work, though. 😉

    Glad you got it working!

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

ExpressionEngine News!

#eecms, #events, #releases