Bookmark for custom page

Former Member
Former Member

Hi Team,

I created a custom page and I don't create a any ContentId & ContentTypeId to this page.

I want a bookmark to this custom page and I given the  below sample for custom page,

public void RegisterUrls(IUrlController controller)

{
      controller.AddPage("page-members-rewards", "members/{UserName}/testpage", null, userNameConstraints, "page-members-rewards");
}

Kindly guide me how to resolve this issue and bookmark button and also disabled here and I underline in blank box.

Regards,

Kiran Cherukuri.

Parents
No Data
Reply
  • Former Member
    0 Former Member in reply to Former Member

    Hi  ,

    I got one more issue with Point Transactions in the same page.

    I used the script code like below, when I run the point transaction script  api the points are not updated in profile page and I am not getting any error also.

    jQuery.telligent.evolution.post({
                                    url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/pointtransactions.json',
                                    data: {
                                        'Description': 'Add the points to user.',
                                        'UserId':2100,
                                        'Value': 50,
                                        'ContentId': '$contentId',
                                        'ContentTypeId': '$contentTypeId'
                                    },
                                    success: function(response) {
                                         jQuery.telligent.evolution.notifications.show("Success.", { type: 'success', duration: 10000 });
                                    }
                                });

    Kindly help to me what mistake I done here. Thanks!

Children
  • Former Member
    0 Former Member in reply to Former Member

    Is your content type id included in the result of $core_v2_contentType.List() ?

    Is your bookmark included in the result of $core_v2_bookmark.List("%{ PageIndex = 0, PageSize = 10, SortBy = 'Date', SortOrder = 'Descending', ContentTypeIds = $contentTypeId }") where $contentTypeId is your Content type id?

    In your IContentType implementation, IContent IContentType.Get(Guid contentId) doesn't need to explicitly return an IContent, but the return type from your method PointsCouponData.GetCouponDetails(contentId.ToString()) needs to be a type that implements IContent.

    In your point transactions sample, how are you calling that script? Also where are you defining $contentId and $contentTypeId?