开发者

Liferay cms url changes on content change

开发者 https://www.devze.com 2023-03-23 00:43 出处:网络
We\'ve been trying to work with Liferay CMS to create Web Content (liferay terminology). The content is versioned in the sense, each time we change the content and publish it, the version increments.

We've been trying to work with Liferay CMS to create Web Content (liferay terminology). The content is versioned in the sense, each time we change the content and publish it, the version increments. This has an impact on the开发者_如何学Go URL which is publicly exposed, and we're facing the trouble of changing the URL on content change. Is there a way of getting a published URL that reflects change in content without changing the URL?


You could use friendly urls in this case. Have a look at this post for some more info.


It doesn't appear that you are able to grab the latest journal content with any invokable URL because it requires a version number to be passed along with the request (otherwise it will just grab the first version not the last).

A work around would be to create a hook plugin that modifies the /journal/view_article_content action path with your custom implementation to return the latest article.

See Liferay's Portal Hook Plugins wiki page on how to create a hook.

Then see Mika's blog post on the specifics of overwriting a struts path.

Good Luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号