Add this code to your FeatureActivated
method of the Event Receiver:
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
using (SPWeb web = (properties.Feature.Parent as SPWeb))
{
web.AllowUnsafeUpdates = true;
string headingTitle = "myNavigation"; // Navigation Title
string headingUrl = "navigationURL"; // URL of the Navigation Link
// Get the Quick Launch headings.
SPNavigationNodeCollection ql = web.Navigation.QuickLaunch;
// If a Resources heading exists, get it.
SPNavigationNode heading = ql.Cast<SPNavigationNode>().FirstOrDefault(n => n.Title == headingTitle);
// If the Resources heading does not exist, create it.
if (heading == null)
{
heading = new SPNavigationNode(headingTitle, headingUrl);
heading = ql.AddAsLast(heading);
}
web.Update();
web.AllowUnsafeUpdates = false;
}
}
It will add the Navigation Link on feature activation.