We have detected that cookies are not enabled on your browser. Please enable cookies to ensure the proper experience.
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2007
    Posts
    1,590

    Looking for item ids

    I'm a bit confused. I've been looking for a while for a way to tie the item IDs that we get from Bracket's XML feeds to items in the lorebook. I thought I had finally found my answer when I read the Official XML Tags article.

    The article says:
    An alternate way to link to an item within the Lorebook is to use the XML tag for that item. The markup to do this for the Iron Gloves Recipe looks like:

    <recipe id="1879055108" view="link" />

    Of course, creating simple hyperlinks this way can be harder than simply using the MediaWiki markup as you need to view the source of the page you want to link to in order to get the ID of the item. However, it does have the advantage of maintaining links if the names of items get changed in game updates.
    yet when I navigate to the Iron Gloves Recipe page and view the page source I don't find the id, 1879055108, anywhere in the page source. I was hoping it would be in a meta tag right at the top of the page like the description and keywords. Am I missing something? Have item IDs been dropped from the pages?

  2. #2
    Duwis's Avatar
    Duwis is offline The Lord of the Rings Online Team
    Join Date
    Apr 2008
    Posts
    816

    Re: Looking for item ids

    I'll take things a bit out of order here...

    Quote Originally Posted by Garan View Post
    when I navigate to the Iron Gloves Recipe page and view the page source I don't find the id, 1879055108, anywhere in the page source. I was hoping it would be in a meta tag right at the top of the page like the description and keywords. Am I missing something? Have item IDs been dropped from the pages?
    No, item IDs have not been dropped from the articles. I can't be entirely sure, but I think the source of your confusion is our recent deployment of a rich editor for the Lorebook. This hides the standard wiki source behind a more friendly editing system.

    Our custom tags are now hidden behind a tag that simply reads
    Code:
    <Special>
    in this editor. If you edit an article and see this and/or a link saying 'Disable Rich Editor', you won't immediately see the old tags. Disable the rich editor to do so.

    Having said that...


    I'm a bit confused. I've been looking for a while for a way to tie the item IDs that we get from Bracket's XML feeds to items in the lorebook.
    If you are looking to easily link to articles based on the returned XML, you can simply take the ID found in this
    Code:
    <item id="1879094683" name="Doom-hunter's Helm" ... />
    and create a link like this
    Code:
    http://lorebook.lotro.com/wiki/Special:Lotroresource?id=1879094683
    which is what I am guessing is what you want to do. If not, please provide more details, and we'll guide you along.

  3. #3
    Join Date
    Mar 2007
    Posts
    1,590

    Re: Looking for item ids

    Quote Originally Posted by Duwis View Post
    If you are looking to easily link to articles based on the returned XML, you can simply take the ID found in this
    Code:
    <item id="1879094683" name="Doom-hunter's Helm" ... />
    and create a link like this
    Code:
    http://lorebook.lotro.com/wiki/Special:Lotroresource?id=1879094683
    which is what I am guessing is what you want to do. If not, please provide more details, and we'll guide you along.
    Your reply pointed me in the right direction. My confusion was the phrase "view the source of the page" which I took to mean the "view source" option from the browser when it meant the source from the forum editor. Note, when logged in you have to use the Edit link and then Disable Rich Editor but I accidentally found a shortcut for my purpose, when not logged in there is a "View Source" link which takes me right to the editor source.

    Anyway, my confusion has been eliminated, thanks Duwis.

  4. #4
    Join Date
    Apr 2007
    Posts
    4,799

    Re: Looking for item ids

    I would just leave the rich editor turned off -- it can't handle normal wiki tables, nor can it handle most templates that I've seen. It might make bolding, italicizing, etc., easier and <h#> tags will stand our more, but that's its only benefit.
    As a level 1 burglar, Bilbo got a pony when he joined the Smaug The Dragon raid. Then he asked for leadership, looted the chest, assigned himself the 1st age Arkenstone and mailed it to an alt (Bilbo's a VIP so can mail from anywhere). They did some PvMP and an Epic Battle, then he apologized and gave the Arkenstone back because it wasn't BoA. He kept the pony.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

This form's session has expired. You need to reload the page.

Reload