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.

Channel entry not related to forum topic

December 25, 2011 3:07pm

Subscribe [1]
  • #1 / Dec 25, 2011 3:07pm

    deschamps

    137 posts

    I linked a new entry to an existing forum topic, the link appears at the entry (in view template), but when you click the link the next “error” appears: “the page you requested was not found”

    I did use the code suggested for that:

    {if forum_topic}<a href="http://{path=forums/viewthread}/{forum_topic_id}">Discuss this in our forums</a>{/if}

    Could the problem be that I have titles in urls for the site, but in forum the urls show the ID number for topics?
    - for the site entries, the URLs are “site/view/entry_title”...
    - for the forum, the URLs are “site/forums/viewthread/topic_id”

    in entry’s publish form, the “Forum” tab shows both, a title for the topic and the topic ID, but I do not find a reference that says which does it use to relate both. Maybe (ee) is trying to find the URL “site/forums/viewthread/topic_title”...

    ((ee) versions used are in signature)

    Advice. Please. Thanks.

  • #2 / Dec 27, 2011 12:12pm

    Dan Decker

    7338 posts

    Hi deschamps,

    Let me see if I can clarify this. If you are creating a new entry, you on only need to fill in “Forum Topic Title” and “Forum Topic Text”. You only use the “Forum Topic ID” field if you already have a forum topic you wish to relate, or you are adding a forum topic to an existing entry.

    If you publish a new entry, and only fill in the top 2 fields in the Forum tab, do the links work correctly?

  • #3 / Dec 29, 2011 11:06pm

    deschamps

    137 posts

    Dan, I was only establishing the relation between a new entry with an already present forum topic…

    I will try with a new-entry/new-forum-topic…

  • #4 / Dec 30, 2011 5:41am

    John Henry Donovan

    12339 posts

    Hi deschamps,

    Let us know how you get on. With an initial save you can relate between an existing forum ID as Dan mentions

  • #5 / Jan 05, 2012 7:19pm

    deschamps

    137 posts

    John, Dan,

    I did, as advised, publish a new entry and filled out only the 2 top fields in forum tab… the news article appears in site, the topic appears in forum, but the link in the article that takes you to the topic gets an error: “The following errors were encountered. The page you requested was not found”...

  • #6 / Jan 06, 2012 2:06pm

    deschamps

    137 posts

    I have found the discrepancy… I did not typed correctly the suggested code:

    {if forum_topic}<a href="http://{path=forums/viewthread}/{forum_topic_id}">Discuss this in our forums</a>{/if}

    it was generating the link: http://site.net/forums/viewthread6337
    instead of: http://www.site.net/forums/viewthread/6337 - the way the forums function…

    I have corrected this… everything is fine. thanks all

    note: promise to check things like this next time before even bothering you…
    note2: by the way, I have improved a lot (believe it or not) after following the “Mijingo” videos…
          it should be a most for anyone new in (e)..
    note3: best wishes for 2012 - maybe seen less of me… jaja

  • #7 / Jan 06, 2012 5:38pm

    Dan Decker

    7338 posts

    Hi deschamps!

    Happy 2012 to you as well! I’m glad you were able to get the links sorted out. No worries on asking us questions, that’s what we’re here for 😉

    If you need anything else, just let us know!

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases