The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Referencing original thread URL from vBCMS Article
Hello, I'm having all sorts of difficulty passing a variable in a CMS article template (header) to output the original thread URL. Please advise how to do this.
|
#2
|
|||
|
|||
Bump.
|
#3
|
||||
|
||||
So you created an article from a thread and need to somehow pass the threadid in the header template? What have you tried so far? Have you verified there is a cms_article.threadid that exists for that particle article?
|
#4
|
|||
|
|||
I had this in there:
<vb:if condition="$promoted_threadid"> <link rel="canonical" href="{vb:raw vboptions.bburl}/showpost.php?{vb:raw session.sessionurl}p={vb:raw postid}"/> </vb:if> But that's the other way around (links to the forum post). I'd like to link it FROM the thread TO the article. |
#5
|
||||
|
||||
So, you are putting that code into the header template on the showthread page and hoping to link to the article id (it sounded like before, you were wanting to link to the threadid). If you want to link to the article, you will need to do a query to get the article id before you can actually post a link to it.
|
#6
|
|||
|
|||
Real example:
http://modmyi.com/content/16967-appl...est-rates.html is an article page. It's original thread is http://modmyi.com/forums/mac-news/84...est-rates.html In the THREAD header, I would like this code: <link rel="canonical" href="http://modmyi.com/content/16967-apple-set-issue-bonds-euros-due-low-interest-rates.html"/> I am not terribly opposed to it being the other way around, but prefer the canonical link to be the article URL. I do not know how to do that, and am hoping someone can assist. I don't know how to do a query to get the article id, nor what to do with it when I get it. |
#7
|
|||
|
|||
Bump.
|
#8
|
||||
|
||||
Well, as I said, you would need to write a query to get the article id. I have no idea how to then take that and make an SEO link out of it. You may want to hire somebody if you are unsure how to do that.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|