I have a meta data schema with two sections.
The second section has two fields called ER.FirstLevel and ER.SecondLevel each of a type 'select' using checkboxes, unordered lists, multiple select.
ER.FirstLevel has options like 'arts' 'business' 'funding' etc.
ER.SecondLevel has many more associated keywords linked to the asset this schema is applied to like 'authors', 'biography', 'books', 'reading' etc.
I have loaded 'option key' and 'option values' fields for both fields ensuring the same same labels are used in each row.
I want to (and can) print the values that have been checkboxed on the front end for the ER.SecondLevel field using <p><strong>Subjects:</strong> %asset_metadata_ER.SecondLevel%</p> in the type format contents of the search page that returns the results from a search of the ER.FirstLevel fields.
Want I want to do is add hyperlinks to the each key in the ER.SecondLevel field so when the %asset_metadata_ER.SecondLevel% keyword prints them on the front end users can click on each to then call another predefined search that I can instigate with the url I pass with the link.
Prob is when I add <a href="http://www.site.com">label</a> inside the 'option key' box it does not work on the front end, the labels still print but no hyperlink.
Interestingly if you look at an assets metadata on the back end with the schema applied the keys I have treated this way and checked for that asset are missing from the from the list of keys printed.
I've tried regenerating meta data, I've tried using <a href="#"> option value</a> which did work on the back end but causes nothing at all to be printed on the front end.
So far nothing really works.
Any ideas, have I missed something obvious?
Cheers, Paul.
Are you talking about trying to put code into <option></option> tags?
If so, you can't do this.
Can you show us the source code for this page?
[quote]
Are you talking about trying to put code into <option></option> tags?
If so, you can't do this.
Can you show us the source code for this page?
[/quote]
Yes.
Another of our web team tells me he did this and got it working but can't recall the specifics as it was some time ago.
I've been mucking about for a few hours trying all sorts of ways to load <a href="#"> label </a> into the option tags
Using <a href="http://www.paulhayton.co.nz">test</a> I got it to display on the front end as an option key but it was not a hyperlink… just trying the same code in the option value box and turning on 'front end part = value"
Can you clarify here what your final code is suppose to look like?
It sounds like you are trying:
Test Page
Please clarify what code you are wanting to end up with.
[quote]
Please clarify what code you are wanting to end up with.
[/quote]
Sorry Nic I think I have inadvertently lead you down the wrong path and since my last post I've made headway with the problem so I think I'm out of the woods now.
First an example of the Matrix code in the type format of a search page asset…
%asset_name%
%asset_metadata_ER.Description%Subjects: %asset_metadata_ER.SecondLevelLinks%
Then an example of the output source HTML..
<div class="digitalresults"> <h3>Opposing Viewpoints Resource Center</h3> <img src="test.gif" title="Opposing Viewpoints Resource Center" alt="Image - Opposing Viewpoints Resource Center" class="imageleft" /> p>Opposing Viewpoints is ideal for those wanting information covering both sides of popular social issues. It includes topical overviews and point-of-view articles.</p> <p><strong>Subjects:</strong> <a href="#">general</a>; <a href="#">homework</a>; <a href="#">social sciences</a></p> <p><a href="#">Search in Library</a> | <a href="#">Search from Home</a></p> </div>
What I'm doing is using fields in a metadata schema to populate a search results page.
I wanted %asset_metadata_ER.SecondLevelLinks% to display keywords each asset using the schema had been tagged with… and then to show those keywords as hyperlinked items on the front end.
I was hitting a wall as I was using a check box style 'select' field and could not get the html to show on the front end when the %asset_metadata_ER.SecondLevelLinks% was called.
The answer was to use a list style 'select' field.
Apologies for any confusion caused and thanks for taking the time to post some help
