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.

[Solved, TY] Trouble with links...!

August 07, 2008 12:39pm

Subscribe [0]
  • #1 / Aug 07, 2008 12:39pm

    Philz

    16 posts

    Ok I’m a bit stuck, I’m not exactly sure why this is happening, it seems right to me, tried a couple ways too…

    I get this:
    http://img362.imageshack.us/my.php?image=issuetd1.png

    With this code:

    {exp:weblog:entries weblog="issue" disable="comments|trackbacks" limit="1"}
      -<a href="http://{reverse_related_entries" class="{issue_link_color}">{reverse_related_entries sort="desc" status="Open|Badge|Splash"}{title}</a>
    {/reverse_related_entries}
      </div>
        {reverse_related_entries sort="desc" status="Badge" limit="3"}
      <div id="badges">
      <a href="http://{title_permalink=">{article_badge}</a>
      </div>
        {/reverse_related_entries}
    </div>
        {/exp:weblog:entries}

    Browser source is:

    <div id="this_issue">
      <a href="http://infamousoasis.com//assets/images/this_issue.png">http://infamousoasis.com//assets/images/this_issue.png</a>
        
      -<a href="http://infamousoasis.com/index.php/news_articles/view/the_calm_before_the_epic_storm/-a">.light_">The Calm Before The [Epic] Storm</a>
    OtherOnes Madien Article</a>
    Test of News article!  W00t!</a>
    
    
      </div>


    But each should be a link, let alone one being separated (should all have the spacing like the second 2).  I cant see why it’s jumbling one all into one too… So lost…

    It’s probably something I just dont know yet & really simple (sorry! new!)...  But how can I fix it?

    Thanks in Advance,
    Phil


    P.S.
    I’ve fell in love with EE, I just finally “got it” yesterday and went from a confused ~15% done of the website to fixing this minor issue and couple other things :D .  So nice as a designer, not as “code scary” as everything else I’ve tried…!

  • #2 / Aug 07, 2008 12:45pm

    Robin Sowell

    13255 posts

    Hee- yes, EE definitely has its ‘lightbulb moments’- and afterward, it all seems so clear!

    OK- where’s the http://img362.imageshack.us/my.php?image=issuetd1.png coming from- custom field and in/out of the related tags?  And- can you paste a full example of what the rendered code should look like?  It’s hard for me to tell for sure what’s up just yet.

  • #3 / Aug 07, 2008 12:48pm

    Derek Jones

    7561 posts

    You have multiple reverse related entries tags, some aren’t complete, and aren’t closed properly.

    {reverse_related_entries sort=" status="Open|Badge|Splash"permalink="news_articles/view" class="{issue_link_color}">{reverse_related_entries sort="desc" status="Open|Badge|Splash"}{title}</a>
    {/reverse_related_entries}
      </div>

    That first one has no closing brace on the opening portion, and has no matching closing tag.  Why are you needing three reverse related entries tagpairs inside your weblog entries tag?

  • #4 / Aug 07, 2008 1:04pm

    Philz

    16 posts

    This is the code for the main page (idk why formatting is odd…):

    
    
    

    The site is(put online for now): http://infamousoasis.com  (disregard wackyness, just what i do for fillers 😉 )
    (There might be some bad Internet Explorer issues right now, haven’t gotten to those yet)

    Reason behind so many reverse relatededs is the “issue_link_color” is from the “issues” weblog, and the articles from the “articles” weblog are related to an issue.  I added that tag to be able to switch the style from light or dark text, depending on the background uploaded via the issue “post” & file extension.  Should I do that a different way?

  • #5 / Aug 07, 2008 1:08pm

    Philz

    16 posts

    http://pastebin.com/d1c03355a

    It seems the forum/code brackets is dropping some of the code mysteriously!  It’s dropping the closing bracket and “desc” variable for sort… odd.  Did I find a bug in forum 😛

  • #6 / Aug 07, 2008 2:24pm

    Philz

    16 posts

    Anything? Did I post this in the wrong spot? (If so sorry!)
    (not trying to be annoying or anything… It’s just getting late were I am and would like to solve this to sleep better :D)

  • #7 / Aug 07, 2008 2:28pm

    Sue Crocker

    26054 posts

    This is one of the things you need to change:

    {site_url}/assets/images/back_issue.png

    You could use instead:

    {site_url}assets/images/back_issue.png

    or just

    /assets/images/back_issue.png

    {site_url} appends a /, and you have an extra / there, resulting in // which is wrong.

    This probably won’t help with your current issue, but I’d fix that first.

  • #8 / Aug 07, 2008 2:30pm

    Sue Crocker

    26054 posts

    You’re catching us between shifts. 😊

  • #9 / Aug 07, 2008 2:43pm

    Sue Crocker

    26054 posts

    Philz, I went and viewed the source on your main page.

    The Calm Before The [Epic] Storm
    OtherOnes Madien Article
    Test of News article!  W00t!

    What is this text supposed to be for?

    The Calm Before the [Epic] Storm points to some sort of multiple URLs. I’m assuming you don’t want that.

    Where is the link(s) supposed to go to?

    If you were to use regular HTML, what would the code look like for these links?

  • #10 / Aug 07, 2008 2:46pm

    Philz

    16 posts

    bah the troubles of time zones… :D I’m normally in Arizona, but currently in Portugal of all places…

    Fixed the assets/{site_url} 😊 , odd that it still shows fine before though :?

  • #11 / Aug 07, 2008 2:48pm

    Philz

    16 posts

    The links are supposed to go to the 3 articles (test ones) written:
    http://infamousoasis.com/index.php/news_articles/view/the_calm_before_the_epic_storm/
    http://infamousoasis.com/index.php/news_articles/view/otherones_madien_article/
    http://infamousoasis.com/index.php/news_articles/view/test_of_news_article_w00t/

    I’m trying to get the links by pulling them from the reverse relationship (the articles chose the issue to be related to).

    Way i have it is it goes to the issue weblog (were the link color/css preference is stored) so then calls the link itself to an article from reverse relationship, then goes back to issue to get the link color, then another reverse relationship for the link name.

  • #12 / Aug 07, 2008 3:40pm

    Philz

    16 posts

    SOLVED!  I’m an idiot :D.

    Taking a break, and grabbing a cup of tea was the solution ^^;  Thanks for the help, I wouldn’t have found the other tidbits though, and your questions lead me to my answer!

    Thank you!

  • #13 / Aug 07, 2008 3:42pm

    Sue Crocker

    26054 posts

    Plilz, glad you got things working. 😊 Sometimes it just takes that extra cup of tea. Closing thread.

  • #14 / Aug 07, 2008 4:30pm

    Justin Hurlburt

    344 posts

    Greetings Philz,

    I’m very glad you were able to work things out. I was curious though, if you could share your solution?

  • #15 / Aug 07, 2008 5:09pm

    Philz

    16 posts

    Sure!

    Instead of the code I originally had for that snippiet, I changed it to:

    {exp:weblog:entries weblog="issue" disable="comments|trackbacks" limit="1"}
      {reverse_related_entries sort="desc" status="Open|Badge|Splash"}-<a href="http://{title_permalink=">{title}</a>
    
        {/reverse_related_entries}
      </div>
        {reverse_related_entries sort="desc" status="Badge" limit="3"}
      <div id="badges">
      <a href="http://{title_permalink=">{article_badge}</a>
      </div>
        {/reverse_related_entries}
    </div>
        {/exp:weblog:entries}

    However, the style for the links don’t seem to be applying (made sure to make the proper CSS link versions of the styles (.light A:link/.light A:visited).

    BUT the links show and in the proper order/spacing. So I guess more of a half-fix.  Otherwise haven’t found any other way to do it…

    I turned the system online if you wanted to poke around, happy to answer any other questions ^^; first EE/dynamic site from scratch, so beware the n00b… Still cleaning up the shoddy code from dreamweaver (just doing by hand now, DW is good but only for static designed sites).  Textmate & CSSedite & Expandrive from now on XD

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

ExpressionEngine News!

#eecms, #events, #releases