Pages

Thursday 21 August 2014

Embedding Web Content Portlet(CMS) into Portlet

This Concept includes that embedding web content portlet into Portlet.

Some time we may got requirement to include static content (which can be modified later) into portlet.

There are two ways of embedding wcms into portlet

   1. Theme Level
   2. Application Level (Portlet)

Here i am describing that Application Level.


just include the code into your jsp file

<theme:defineObjects/>
<liferay-portlet:runtime portletName="56" ></liferay-portlet:runtime>

OR

<liferay-ui:journal-article  articleId="" groupId="" languageId="" templateId="">
</liferay-ui:journal-article>


articleId => specificy your content article id

Tuesday 29 April 2014

Downloading and Installing Microsoft SQL Server 2012 Express (Data Base)

Downloading and Installing Microsoft SQL Server 2012 Express

Take the following Steps to download SQL Server 2012 Express from Microsoft®:
Note: This process may require a server reboot.
  1. Open your browser.
  2. Type www.microsoft.com/en-us/download/details.aspx?id=29062 in the address bar.
  3. Click the Download button next to the SQLEXPR_x86_ENU.exe file to start the download.
    Note: This version is for the 32-bit version of SQL Server Express. Users on a 64-bit server many select the 64-bit package,SQLEXPR_x64_ENU.exe, if you wish but it is not required. There are also other editions of SQL Server you can consider. To learn more, visit Microsoft's SQL Server comparison site.
  4. Save the download to your desktop.
  5. Double-click SQLEXPR_x86_ENU.exe to start the installer.
  6. Click Run to open the SQL Server Installation Center window.
  7. Click New installation or add features to an existing installation.

    SQL Server Installation Center

  8. Click I accept the license terms on the License Terms window and click Next.
  9. Click Install on the Install Setup Files window.
  10. Click Next to open the Setup Support Rules window.
  11. Click Next to accept the defaults on the Feature Selection window.
  12. Enter TIMEMATTERS, or your preferred name, in the Named Instance field of the Instance Configuration window.
  13. Enter the path for the Instance root directory if you want to change the default location.


  14. SQL Instance Configuration
  15. Click Next.
  16. Select Browse on the Server Configuration window if the server is not a domain controller.
    Note: Contact Customer Support for assistance if the server is a domain controller.
  17. Enter Network Service and click Check Names on the Select User, Computer, Service Account, or Group window.
  18. Select Automatic if your sites involves more than 1 workstation.


  19. Server Configuration
  20. Click Next.
  21. Select Mixed Mode for Authentication Mode.
  22. Enter a strong password (at least 8 characters, number and alpha) as your SQL sa password.
    Note:Your Time Matters product key fits this requirement and would be an excellent way to insure the sa password can be recovered in case of future problems. You need to document this password as it is needed during the Time Matters database install and for future troubleshooting.


  23. SQL Mixed Mode
  24. Click Next.
  25. Click Next.
  26. Click Close on the Complete window.
  27. Click X to close the SQL Server installation window.
  28. Download the setup file for the Time Matters program on to your server.