Form Select-list key issues


(David Avery) #1

Hi all,

 

I'm trying to create a large list of recyclable items that can all link to different pages, I've attempted this by setting the key of the select list as the web page. My problem arises when there is more than 1 item that is required to link to the same page; for example, 'Belts' and 'Duvets' should both be able to link to the same page as they have the same waste disposal options.

 

I think squiz see's this as a primary key and therefore won't allow me to create more than 1 item with the same site in the key field. 

 

Is there any way to create multiple items with the same site or is there another completely different way of doing it?

 

If I have't explained this very well don't hesitate to reply and ask for a better explanation!

 

Many thanks,

 

David


(Nic Hubbard) #2

I think this is the same issue as a bug I posted: http://bugs.matrix.squiz.net/view_bug.php?bug_id=6818

 

Sadly, Squiz said it was built that way by design, so not sure there is a chance of it getting fixed.


(Tom Chadwin) #3

I would probably use intermediate redirect pages, so you can have different redirect pages for belts and duvets, but redirect to the same destination. Hacky, but that to one side.


(David Avery) #4

Cheers Nic, I think we'll have to put up with it.

 

Hi tom, I think you're definitely right there. I've only been using Squiz for a week (about 3 days) so my knowledge of the system is very limited. I've just created an A-Z asset list and created redirect pages for EVERY item (196) to put in the root folder. When users click on these links they are redirected to a non-unique page. I think your idea would definitely work for the drop down list, or at least, I don't see any reason why it shouldn't.

 

Cheers for the insights guys.


(David Avery) #5

Just an update (as I hate posts that end without an update to see where the initial user finished.)

 

I have used Tom's method, and it works perfectly. Many thanks. If you have any queries Nic on how to do this in detail throw me a message :)


(Tom Chadwin) #6

Glad you are sorted. There will be more elegant ways of doing this, but given how early on in your Matrix experience you've managed to find such a limitation, I think it's the best solution for now.


(Anthony) #7

Could you do something a bit more automated by having a CSV asset that loads a table of recyclable items and the asset ID of the page you want to redirect to when it gets selected? Then basically use the search options to do a lookup on the text that is seleted in the drop down and redirect automatically to the right asset? The CSV could happily have the same target asset ID alongside as many different recyclable items as you like.

 

If we're getting really clever here you could have lots of other columns in the CSV and make your target page a lot more dynamic to display only the relevant nested sections based on that data...


(David Avery) #8

It all comes down to time unfortunately Anthony :) If only I had the time.

 

Many thanks all