How to create link in portlet to another page with liferay 6.2 - liferay-6.2

I am using Liferay 6.2 and Tomcat 7.
First question, i have page like this http://localhost:8080/group/page-two-portal/good and i want to create a link that can access to that page.
How to create link in portlet to that page ?
Second question, i want to know how to get baseurl in Liferay 6.2 ?

How to create link in portlet to that page ?
Give friendly URL in href tag.
i want to know how to get baseurl in Liferay 6.2 ?
List<Layout> navlist = LayoutLocalServiceUtil.getLayouts(themeDisplay.getScopeGroupId(), false);
for(Layout l : navlist){<%=l.getFriendlyURL()%>}
Thanks.

Related

Category Blog Pagination URL Rewriting in Joomla 3.X

I have facing two issues in the Joomla 3.X regarding the rewrite the URL of Category Blog pagination.
Problem 1. "?start=6 OR ?limitstart=6" to "/page/6"
Problem 2: By default in category blog pagination url it uses limit value for eg. if i have to set 5 articles in a page then on page 2 the url is ?start=6, I want the URL is /page/2.
Early response is highly appreciated.
Joomla! cannot do this out of the box. You will need an SEO plugin to accomplish this. sh404sef should be able to handle it.

Integrating Laravel app into Joomla CMS

I would like to build a custom application in Laravel framework and include it in Joomla.
What I would like to do is to replace central content of Joomla with application served from content.
Joomla url: http://www.joomlasite.com/campaign-directory -> should show content from laravel url: http://www.joomlasite.com/laravel/directory/showall
I noticed component Joomi for Joomla, but Iam not sure if this component will be able to do that.
Please advice.
Thanks!
I think you mean Jumi, and yes, I think that Jumi can do what you want, but I believe there are other easier ways to achieve what you need to do. What you can do is use the iFrame Wrapper component in Joomla to "wrap" your lavarel application and display it in Joomla. Try that before using a Jumi if possible.

Broadleaf - Extending DemoSite Admin - Add new Menu and Page

I have been looking into Broadleaf since last couple of days. I have managed to run it on local tomcat with MySql. I have extended Entity for my custom requirement following Broadleaf's documentation.
Now I want to add a menu option (in left menu) in admin. I have no clue from where Broadleaf admin site displays the web page. How left menu is displayed ? How data from controller are binding with view ?
For example, if you access product page in broadleaf admin section, then URL will be http://localhost:8081/admin/product/. Following it I managed to know that it calls AdminProductController.java of framework's admin module. I looked at the code of AdminProductController.java but didn't get a clue how data is being forwarded to view. Also didn't find the product jsp/template/html.
I guess admin module is using EntityForm.java for view. If I intend to use simple jstl then is it possible?
My question how easily I can extend admin of Heat Clinic demo site to add new pages, menu items etc? If anyone has customized/extended demosite admin then please suggest.
We have some docs on how to do this at http://www.broadleafcommerce.com/docs/core/current/broadleaf-concepts/admin/admin-custom-controllers. The bottom line here is that if you want to add a new page then you can simply use normal Spring MVC as you would on the frontend. The only difference is that there are some specific ways to place new template files (which is documented on that page).
To answer your question, most URLs in the admin are handled dynamically by the AdminBasicEntityController. Most of the sections are handled generically by this controller but there are still certain instances where we needed to override things specifically, like with AdminProductController.
Also, the admin is built with Thymeleaf and not JSPs so if you want to add more pages they will need to be done with Thymeleaf.

Magento "Shop By" URLs use "#%21" instead of a "?"

I'm working with a new Magento installation and using the shop-by links give me
example.com/catalogsearch/result/#%21color=1&q=shirt
instead of
example.com/catalogsearch/result/?color=1&q=shirt
I'm not sure where I should look to begin fixing this.
Thanks!
we had this same problem and found that a plugin was changing the url with str replace
changing the ? for #%21
the plugin changes the url so that it can be identified by the javascript file and updated via ajax.
the plugin in our case was vingento there seemed to be some confilcts with other plugins. After disabling this plugin and code our filter and paging links work again, although not via ajax.
Hope this helps you

Liferay blog url-rewriting

I am using liferay 6.1 and i have already shortened the url of the blog using url rewriting but still i have the problem in the url.
The url gets showed up like this localhost:8080/blog/-/blogs/testing, but i want to change the url to this localhost:8080/blog/blogs/testing inshort i want to remove the - from the url.
Any help will be apprecicated, I am trying this from very long but cannot find the solution.
You could try doing this using the urlrewrite.xml file that you can use in Liferay, but a better option would be to put Liferay behind an Apache Reverse Proxy and use the rewriting capabilities of that: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Resources