Bug reports
Version 3.x > Bug reports > cmsrepeater webpart: ShowEditDeleteButtons="True" doesn't work when... View modes: 
User avatar
Member
Member
kbonett@uniteform.com - 7/17/2008 11:06:19 AM
   
cmsrepeater webpart: ShowEditDeleteButtons="True" doesn't work when...
I use the /CMSWebParts/Viewers/cmsrepeater webpart to populate navigation menus, etc.

I have found that ShowEditDeleteButtons="True" doesn't display a button to add new items when the document path is specified in the format "/{0}/(1)/%", but the button does show when the path is specified as "/Solutions/Document-Management/%".

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 7/29/2008 8:41:35 AM
   
RE:cmsrepeater webpart: ShowEditDeleteButtons="True" doesn't work when...
Hello,

Thank you for bug reporting.

Unfortunately this is really a bug :-( But I can give you some workaround how to solve the problem. Please follow instructions bellow:

1) Please open '<web project>/CMSWebParts/Viewers/cmsrepeater.ascx.cs' file in Visual Studio.

2) Please find following line (most probably on line 784):
this.btnAdd.Path = DataHelper.GetNotEmpty(mPath, "");

3) And modify it like this:
this.btnAdd.Path = CMSContext.ResolveCurrentPath(DataHelper.GetNotEmpty(mPath, ""));

This should enforce appearance of 'Add new item' button using your path expression.

Anyway it will be fixed in next version of Kentico CMS 3.1a, which should releases hopefully within few days.

Best Regards,
Ondrej Vasil