1
votes

I'm pretty sure this can be done, but am finding little documentation on how to do it correctly.

I have several Web Content pieces that I've associated with tags. I'd like to add an Asset Publisher portlet to a page that displays the correct Web Content based on if a tag exists in the URL. So if the url is: domain.com/public/site?tag=fish then it serves up the Web Content tagged "fish"using the Asset Publisher filter.

What is the correct syntax for the URL? I've seen in forums:

/public/site/tags/fish/ and I've seen it as a parameter ?tag=fish but neither of these seem to work. I'm using Liferay 6.

2

2 Answers

1
votes

See the TagNavigation or TagCloud portlet and how they construct their URLs - AFAIK they use public render parameters.

1
votes

You have to use this syntax in the url /web/mysite/mypage/tags/mytag It works for Liferay 5.2.3. Of course you need an Asset Publisher on the page "mypage" of the community "mysite" and some content which is tagged with "mytag".