39 Posts
jjnxpct
10 years ago
1
Topic
Hi! I created a search type/module with one field: This is a dynamic select where all titles of articles are shown. I want the user to be able to simply select the article title, sublit and the (one) result should show.

I created a search form with these fields: CCK, selection (dynamic select) and a submit button.

When I use this search form no results are returned. The dropdown shows the articles OK, so it is dynamically filled. But somehow I need to submit something else? Maybe the article ID in a hidden field based on the value of the dynamic select?

The dynamic select I use shows a list of the article titles as option names and the article id as value.

Am I missing something?

Thanks!



Get a VIP membership
39 Posts
jjnxpct
10 years ago
0
Level 1
Hi all,
I managed to get it working. I used the dynamic select type, constructed the query to show the articel titles, and set the select option to 'title' and values to 'id' (Table '#__content). This produced the right drop drwon in the search form. But the reason it was not working was that the storage was set wrong. I needed to select 'Standard --> Article ->id). After correcting this it worked fine.
Get a Book for SEBLOD