In the site I'm building portfolio items are rather presented as events, which will display in the calendar.
I'm curious if it is possible to add the slide down effect, as it is in Default Portfolio page, to the calendar when visitor clicks on the node title. Pretty much, I want to achieve the same result as if visitor clicks on the Portfolio thumbnail in the "Default Portfolio" page.
Hi,
We do not understand clearly. Could you describe more?
Basically I want to create an effect of sliding down overlay when I click on Portfolio URL in other views besides "Default Portfolio".
By more detailed way,
you would like to create in which view and when you click on which button?
Calendar
/calendar-node-field-date/month
Clicking on the node title in the calendar.
Because you are using Calendar module that has content displayed inside so if you would like to click on one content then having a slidedown effect, you need to write more code. It means that you need to hook into calendar module and edit. It will be so much complicated.
And about code of Portfolio part in our theme, it is in the below place:
1. Module custom/portfolio
2. File js/front/custom.js. Search
function portfolio_loadajax(nodeid){
$.ajax({
type : 'POST',
url : "portfolio",
dataType : 'html',
data: {
node_id : nodeid
},
success : function(data){
$('.ajax-loader').fadeOut();
$(".overlay-section").html(data);
$('.overlay-close img').tooltip();
}
});
}
I see.
Thank you.