Determine URL of an ImagePlaceholder

I came across a problem recently whereby I wanted to determine the MCMS URL of an image stored in the MCMS Resource gallery.  The script had several image placeholders, some of which may of had images bound to them.

My requirements involved determining the URL of any given image and then to use this in some CSS styling.   Faced with this scenario the following code should help:


//Setup placeholder object and string for URL
Placeholder pl;
string imgSrcUrl = "";

//setup default CSS string
string FeatureCSS = ””;

pl = ImageX.BoundPlaceholder;//get the bound placeholder for this control
if (pl!=null){//test the placholder is not null
imgSrcUrl = ((ImagePlaceholder)pl).Src ;//get the source url from the placholder
if (imgSrcUrl!=null && imgSrcUrl!=”"){
FeatureCSS = “<style type=\”text/css\”>\n#section {\nheight: 232px;\nbackground: url(”+imgSrcUrl+”) no-repeat -26px 0;\n}\n</style>”;
}
else doSomethingElse();
}
else doSomethingElse();

Welcome

to RJPargeter.com – SEO, Google Adword’s Management & Web Development.

With extensive experience in the web site development and management field since the mid 1990’s working at organisations and companies such as USC, Sony, WGSN.com & University of Warwick, I believe I can offer realistic web site solutions for your business needs.

Please browse my services via the navigation links or use the contact details throughout the site to enquire about your web site requirements and how I can help.

PageRank no longer important?

I keep hearing people saying that Google’s Page Rank is no longer important and X or Y is much more important. I still believe that Page Rank is one of the most important factors in a site ranking well in the Google results.

Firstly, Google still include a page rank on the Google navigation tool bar – ok this is not updated immediately but I would assume this is based on infrastructure and speed issues.

Secondly Google went to all the trouble to patent the page rank rating algorithm through Stanford University and I would doubt they are going to just leave this behind. The page rank has been the foundation of Google success and although it is undoubtedly tweaked and used along side other algorithms it is still in my opinion the basis of the initial search engine rankings.

Thirdly, when you hear Google employee Matt Cutts discussing page rank in such detail you know it is still fundamental to how Google works – http://www.mattcutts.com/blog/more-info-on-pagerank/ . As Matt discusses in this article pagerank in the toolbar is usually late to reflect how your site is ranking. This however is just the navigation tool bar representation of this. Really behind the scenes page rank is changing all the time as the index is added to, pages removed and back links calculated.

So there you have it -PAGERANK is still alive and soldiering on. Whilst Mr Cutts still talks about pagerank we know it is still one of the main factors in Google search engine ranking.

‘Black-Hat’ SEO Techniques

The following SEO techniques are known as ‘black-hat’ SEO and should be avoided by your web site. These techniques can sometimes provide very quick search engine result improvements, but over time are known to cause sites being banned and removed from indexes altogether.

Hidden Text
An old technique to increase keywords on a page was to include long lists of keywords and key phrases as hidden text on a page. This was sometimes achieved by placing the text far below the main content on the page or by displaying the text as the same colour as a background colour, i.e. white on white or black on black. This technique goes against Google’s webmaster guidelines.

Cloaking or Doorway Pages
Don’t deceive your users or present different content to search engines than you display to users. Matt Cutts (Google employee) describes a classic case of this on his blog site (http://www.mattcutts.com/blog/ramping-up-on-international-webspam/) whereby BMW displayed text to search engine robots whereas normal web users would be shown other content via the use of a JavaScript redirect. It is important to not try to do quick redirects on pages so that the search engine crawlers see certain content and then a user’s browser redirects to another page

Link schemes
Avoid links schemes that provide a massive increase in incoming links from bad neighbourhoods and other sites of dubious content. Participating in such schemes can result in your site being penalised.

Automated Search Engine Submission Software
Avoid using search engine submission software such as ‘WebPosition Gold” or other similar products. As long as your site is linked to from other sites and your site is up and running with a valid robots.txt file then pages and content will be indexed without the need for this software.

Duplicate Content
Avoid duplicating the same content on different pages. If Google detects large amounts of duplicated pages on different sub or main domains then you can risk a ‘duplicate content penalty’ which can result in the site losing rankings. Sub domains such as above are all treated as separate websites and if duplicate content is found then both sites can suffer ranking problems until the original origin site of the content is determined by Google’s algorithms.

Content Solely for Search Engines
Avoid publishing any content that is solely for search engine spiders. Content that is too rich in keyword density and unintelligible to a human can be detected by Google and other search engines and result in site penalties. Always write content firstly for humans and secondly for crawlers and robots. As long as the pages are proper English there is no problem with including keywords.

Frames
Although not a ‘Black Hat’ SEO, Frames should be avoided on sites as they cause huge problems with crawlers indexing sites. Individual pages can only be indexed and therefore that means each page in a frame will be indexed which will cause problems when someone clicks on that individual page from search engine results.

SEO Part 14 – Web Based Sitemap

A site map enables search engines to easily find all content on the site by following all the links from the sitemap page(s)

With the implementation of Google sitemaps, discussed in the ‘Google webmaster tools’ section there is no longer a huge need from a Google SEO point of view for a web based sitemap. For other search engines however it would be beneficial to have a few pages on the site that linked to all content currently published. A single page can have overheads on the system for large sites and for the front end user this can be too big to download and view – therefore several pages of links could make up such a sitemap.

The sitemap start page should be linked to front the front homepage as this is the most common page that search engine spiders will access.

SEO Part 13 – ‘Linkbait’ Content

In the ‘Incoming Links’ section before it is described how incoming links to the site can great improve Page Rank and therefore pages ranking higher in the search engines. The section describes how to aim for links to your site and try to aim for keywords in link text. One of the best ways to attract incoming links is to publicise content that is commonly referred to as ‘link bait’. This content has two principle aims:

1. Informative content for the site visitor
2. Attract external sources to reference or link to it

With this in mind it can pay to encourage articles to be created and published on your site by even external sources. If you run a site on organic fertilisers then write some articles about the field and link to this from your front page. Over time similar themed sites will start to link to it if it contains relevant and useful information. Encourage your business partners to link to it.

Blog sites such as SEOSolutions.co.uk are an excellent way to provide new fresh content which will ultimately attract external links – you could therefore look at adding a Blog on your site even if it’s to discuss your latest product releases.

SEO Part 12 – Valid HTML and Accessibility

The W3 World Wide Web Consortium publicise specifications for web based content and how it should be structured for consistent representation across different platforms and browsers. W3 also develop guidelines widely regarded as international standards for web accessibility – the web accessibility initiative (WAI).

If web based content conforms to W3 standards for valid HTML, XHTML, CSS and WAI then that content is expected to be accessible to a wider audience. For this reason search engines are likely to add more weighting to ‘valid’ sites rather than sites that do not conform.

Google is beginning to move in the direction of favouring valid sites with ‘accessible search’ – http://labs.google.com/accessible/. This search ranks sites for the search string based on how accessible Google judge that site to be. Although this search is still in a beta – or ‘Google labs’ it is widely expected that such technology will be used in the main Google search.

You should begin to work towards making more content valid and accessible by following specifications and guidleines on the W3 website by using CSS and HTML validators.

SEO Part 11 – TITLE and ALT tags

The HTML tags TITLE and ALT are used on text and image links respectively to give a description to the link or image. ALT tags are also used describe an image. The title tag is suggesting a title for the destination source. Both tags are displayed by different browsers in different ways and also auditory browsers can read the text aloud.

TITLE Tags
It has long been known that some of the search engines associate ranking and relevance to the target page based on TITLE tags on the links that link to that page. This is therefore tied in with the text that is used to link to pages. The TITLE is meant to be a more descriptive passage on that link target and the text used to link to that page. So here again we should try to incorporate keywords and key phrases for that target page in the TITLE tag.

To add text into the USC TITLE tags for a given link, the text needs to be added into the Tooltip field of the link

Alt Tags
ALT tags have a similar effect to TITLE tags but just on the images they relate to. The text entered in an images ALT tag can be used by search engines for image indexing but also an indication of what the image content on that page relates to.

SEO Part 10 – Internal Linking

As discussed in the external links section above, links are one the main mechanisms by which search engines find new pages and determine the relevance and importance of pages. As with external linking to your site the internal links within a site play an important role in passing on pagerank and relevance.

Firstly ensure you have a very clear structure on your site such as the following:
Web-Structure
It is important to consider that pages linked to from the homepage will inherit some the page rank (PR) importance €“ as can be seen with the Google PR on the Google toolbar. What you will commonly notice is that the further you traverse down the navigation tree the more the PR degrades on a site. If you find pages that are linked to from the homepage then these will commonly have a PR just under the homepage PR. Pages that are only linked to from lower level pages will have a low PR.

What does this mean or matter you might ask? Well the higher the page rank of those underlying pages the more chance they have of coming top for a given search that matches the TITLE, META and content of that page.

The PR degradation discussed here can be altered by externally high PR pages linking to a page somewhere other then the homepage on your site. These in effect pass the PR onto your pages which can in some circumstances increase your page low in the navigation tree to a PR level the same as your homepage.

SEO Part 9 – Google Webmaster Tools (Sitemaps)

Google Webmaster Tools (formerly Google Sitemaps) is a development by Google allowing webmasters to easily provide Google with more information on what pages to index, when they have been updated and generally making a site more Google-friendly for indexing and listing within Google search results.

A ‘Google sitemap’ is an XML based file which Google crawlers access on a frequent basis to check for new pages and updates to pages. Ideally you want to have sitemaps created on the fly or by overnightly tasks – this ensures Google is kept up to date on a daily basis. All published pages are listed within the sitemap file with the last modified time.

The SEOSolutions sitemap can be viewed here: http://www.seosolutions.co.uk/sitemap.xml

In addition to sitemaps within the Google Webmaster Tools there is other interesting data available:
1. Data relating to top search queries for your site
2. Information on last website crawl by Google
3. Website errors experienced by Google when traversing your site
4. Web page analysis
5. Index stats

More information on Sitemaps and Google webmaster tools can be found here: http://www.google.com/webmasters/sitemaps/