In magento if we are required to create a simple slider of products which are recently edited for say between from previous month to the current month.
Lets see how we can create it :
1. Create a module with namespace and module.
2. Then Create a file config.xml in etc folder in our module.
3. After that create a block file Editedslider.php in Block folder in our module.
3. finally create a Helper with the file Data.php.
Now, in our config.xml file at the path Namespace/Module/etc/config.xml write the below code in it :
In the above code we are loading the products which are recently edited for this we first took the dates between previous month to the current month date.
then we wrote the query to fetch products which have field values 'updated_at' between these dates and returned the products array.
Now at the path design/frontend/yourtheme/layout create your layout file editedslider.xml with the below code.
In the above code we are using class="slideshow-container" in the div before ul tag and class class="slideshow" in the ul tag is to use magento default slider.
in that way we can define our own slider by changing the block file query to fetch the product according to our requirement.