For for all intents and purposes, I believe what I've done is correct. I have created a custom record type (videos) and for each record of that type, I have given a name and an unique number of my choosing (id). I have created a custom item field that will pull the record into an individual item page, so I can select videos to associate with a product, using my custom record type as the source list. Then, I need to programmatically access the videos associated with a product on my website and display both their name (no problem) and their ID (here's where the problem is).
From the documentation, I should apparently be using the following tag:
<%=getRecordAttribute('recordTypeID',id,'attribute')%>
Where "recordTypeID" should be the internal ID of the record type. However, when I put my internal ID for the record type I have setup (customrecord_product_videos), I get an error saying that this parameter has to be an integer greater that 0. How is this possible, when all the IDs of the custom item records contain at least the words "customrecord"?
I also don't fully understand what the "id" parameter is supposed to be in this scenario, either. The documentation says:
"Open the list of records for the custom record type you want to use. The ID for each unique record is listed in the ID Column."
How could that possibly be the case when I need to access a specific attribute of a record in the custom record type list based on another specific attribute of a record in the same list (ie - If a have a list of videos selectable on the product page, I need to be able to select them by name and be able to access their url without already knowing what their ID is)?
Am I totally off-base here in my way of thinking that this should work?
Any direction/guidance would be much appreciated. Thanks!