Sharing flash tagcloud (wpCumulus) integration

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 13 años
didn't understand 5th step:

where and how to add this ? -> public string Link { get; set; }
Hace 13 años
Just found a defect in the control when trying to validate the HTML in w3c validator, which means that all pages that the control is added to will fail the HTML validation and this can affect SEO for the page.

All that is needed is to open the wpCumulus project in VS and add one line of code in the function CreateScriptString, after the line:
var moviePath = Page.ClientScript.GetWebResourceUrl(typeof (WPCumulus), "wpCumulus.tagcloud.swf");

add the following:
moviePath = moviePath.Replace("&", "&");


Oh, I almost forgot, there is another change needed, in the function:
RenderContents

Change the following line:
output.Write(String.Format("<div id=\"{0}\"></div>", hiddenContentId));

to
output.Write(String.Format("<span id=\"{0}\"></span>", hiddenContentId));


Rebuild and use the new control, and the code is w3c compliant.

BR
Joakim
Hace 13 años
perferct!
Thanks
Hace 13 años
abcd_12345 wrote:
didn't understand 5th step:

where and how to add this : public string Link { get; set; }


You need to add it to ProductTag.cs

P.S.  What's up with the "Quote" message not working?  I used the quote button and all?
Hace 13 años
abcd_12345 wrote:
didn't understand 5th step:

where and how to add this  ? -> public string Link { get; set; }


I would really appreciate if anyone can answer my question above ?
Hace 13 años
Mike, Add it to the ProductTag.cs file
Hace 13 años
steveeb wrote:
Mike, Add it to the ProductTag.cs file


Thanks steveeb for replying back

steveeb wrote:

P.S.  What's up with the "Quote" message not working?  I used the quote button and all?


yea {quote} tag doesn't work when there is a {code} tag inbetween it. It's a bug and i notified Andrei about it : Here's it is
Hace 13 años
In order to use Flash TagCloud in Blog tags, what modifications needs to be done...?
Hace 13 años
In ProductTag.cs the code is like this, where should i add that code line ?:

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Text;
using System.Web;
using System.Web.Caching;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using NopSolutions.NopCommerce.BusinessLogic;
using NopSolutions.NopCommerce.BusinessLogic.Localization;
using NopSolutions.NopCommerce.BusinessLogic.Payment;
using NopSolutions.NopCommerce.BusinessLogic.Products;
using NopSolutions.NopCommerce.BusinessLogic.SEO;
using NopSolutions.NopCommerce.Common.Utils;
namespace NopSolutions.NopCommerce.Web
{
    public partial class ProductTagPage : BaseNopPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string title = GetLocaleResourceString("PageTitle.ProductTags");
            SEOHelper.RenderTitle(this.Page, title, true);
        }
    }
}
Hace 13 años
The file you need to modify is:

...\nopCommerce_1.60\Libraries\Nop.BusinessLogic\Products\ProductTag.cs

The code you're looking for looks like:

namespace NopSolutions.NopCommerce.BusinessLogic.Products
{
    /// <summary>
    /// Represents a product tag
    /// </summary>
    public partial class ProductTag : BaseEntity
    {
        #region Ctor
        /// <summary>
        /// Creates a new instance of the ProductTag class
        /// </summary>
        public ProductTag()
        {
        }
        #endregion

        #region Properties

        /// <summary>
        /// Gets or sets the product identifier
        /// </summary>
        public int ProductTagId { get; set; }

        /// <summary>
        /// Gets or sets the name
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the tagged product count
        /// </summary>
        public int ProductCount { get; set; }

        public string Link { get; set; }    //ADD CODE HERE

        #endregion
    }
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.