Hello
actually this can be easy (maybe), as all fields use a helper function that creates filter HTML
flexicontent_fields::createFilter()
(if you make a custom field type, you can choose not to call this function)
but the question is not to add something very uncommon
- using filtering module to create menu-like links, sounds good idea
--> now you can create category menu items with locked filters to have a similar effect,
but you have to create these manually
but i see the usefulness of what you suggest
- each filter value will be a link link to form's target , + , a URL variable: &filter_45=value
- but we will also need javascript to add other active filters (filter form may have other filters too)
possibly this can be done by adding to the onclick event of the URLs this:
Code:
this.form.action=this.href; // Set the form action to the URL that was clicked that also has current filter value
adminFormPrepare(this.form, 2); // Then add values of various other filters and submit the form
return false; // Prevent URL that was clicked from being followed
The above code will allow to have URLs, but will make them not followable
- thus we will have links indexable by search engines for a field F
- but also filter form will be able to be submited including values of other filters besides the field F