On All button or post button click event you would like to populate the data from the custom list to content query web part
By default content query web part, it will pull the data from the list and you can modify the UI using custom xslt, can apply grouping and filtering
May be on your button click pass the values by query param and filter the content query web part by query params
No need to write caml query on button click, pass the value to the current page by appending the "all", "post" values as querystring params using java script or code on your button click
Ex: On All button click pass the parameter /sites/x..../abc.aspx?k="All"
Install below wsp and configure the web part
i have my custom cqwp now when i put my cqwp inside any sub site it should recognize corresponding list name and hence i should implement dynamic cqwp so where ever i place my webpart any subsite or subsite's subsite then it has to recognize that specific list inside the subsite.
as of now i have specified the list name in my cqwp code and it has that list in that subsite but now i need to implement in the above mentioned way
Can you elaborate more how you are created custom cqwp and the list configurations because at list level settings have you enabled the content type
To get the same behavior may be you can configure the buttons also in the Custom item style in the ItemStyle file
Create buttons in the xslt and add the java script event for those buttons.... you can do something
Give me more clarity on your requirement