• Welcome to KonaKart Community Forum. Please login or sign up.
 

Unique Title and meta description for each page for SEO

Started by bibi, October 05, 2012, 10:43:25 am

Previous topic - Next topic

bibi

Hi All,

Is there any easy way to implement this unicity (Unique Title and meta description for each page for SEO )for each page of the website?

Thanks

PS:i'm using the konakart 4.2

bibi

Hi

I've found a way to do it without much effort, i didnt take time to test all the pages (if problems i will update the post) i would like to share it with you all

1 Change the getKKAppEng() function of the BaseAction.java
2 Modify de setPageTitle(), setMetaDescription(), setMetaKeywords() functions with the following
        kkAppEng.setPageTitle(getCatMessage(request, kkAppEng.getPageTitle()));
        kkAppEng.setMetaDescription(getCatMessage(request, kkAppEng.getMetaDescription()));
        kkAppEng.setMetaKeywords(getCatMessage(request, kkAppEng.getMetaKeywords()));
3 Recompile

4 Adding on the current JSP the following portion of code
will do the job
       <% kkEng.setPageTitle("my.titleforthecurrentjsp");%>
my.titleforthecurrentjsp is the index key of the message catalog u want to set


I didnt check yet the meta keywords, but i will update if any problem detected

It take some time for the generated class to stabilize for the accurate  title, but it work fine now



PS: problem may arise on the performance side, i will check that too

Best regards