组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Scope of asset publisher Alessandro Cosenza 2010年7月21日 上午1:39
RE: Scope of asset publisher Ricardo Vieira 2010年9月2日 上午4:03
RE: Scope of asset publisher Alessandro Cosenza 2010年9月20日 上午1:25
RE: Scope of asset publisher Ricardo Vieira 2010年9月20日 上午2:30
RE: Scope of asset publisher Sven Werlen 2010年9月22日 上午7:47
RE: Scope of asset publisher Alessandro Cosenza 2010年9月22日 上午7:54
RE: Scope of asset publisher Sven Werlen 2010年9月22日 上午8:55
RE: Scope of asset publisher Kevin L 2010年9月27日 下午12:56
RE: Scope of asset publisher Sven Werlen 2010年10月20日 上午10:18
RE: Scope of asset publisher Sven Werlen 2010年10月27日 下午12:30
RE: Scope of asset publisher Szymon Gołębiewski 2010年10月27日 下午1:43
RE: Scope of asset publisher Sven Werlen 2010年10月27日 下午5:49
RE: Scope of asset publisher Szymon Gołębiewski 2010年10月28日 上午2:14
RE: Scope of asset publisher Sven Werlen 2010年10月28日 上午7:06
RE: Scope of asset publisher Szymon Gołębiewski 2010年10月28日 上午10:03
RE: Scope of asset publisher Sven Werlen 2010年10月29日 上午6:01
RE: Scope of asset publisher Szymon Gołębiewski 2010年10月28日 上午9:40
RE: Scope of asset publisher Kennedy Alagappan 2011年10月13日 上午9:08
RE: Scope of asset publisher Sven Werlen 2011年10月13日 下午4:59
RE: Scope of asset publisher Hugh Martin 2012年3月6日 下午2:11
RE: Scope of asset publisher Sven Werlen 2012年3月6日 下午2:18
RE: Scope of asset publisher Hamish Campbell 2012年9月6日 上午10:01
RE: Scope of asset publisher Hamish Campbell 2012年9月30日 上午6:06
RE: Scope of asset publisher Alexander Ishmuradov 2013年4月29日 上午6:16
RE: Scope of asset publisher Gabriel Leon Leyva 2013年6月7日 上午8:50
Alessandro Cosenza
Scope of asset publisher
2010年7月21日 上午1:39
答复

Alessandro Cosenza

等级: Junior Member

帖子: 83

加入日期: 2009年11月18日

最近的帖子

Hello,
In Liferay 6 you can configure asset publisher to show content from different scopes.
Is there a way to have other communities in the "Available" list (on the right) so that I can select some?
Actually I can see only the Global community.

Thanks.
Ricardo Vieira
RE: Scope of asset publisher
2010年9月2日 上午4:03
答复

Ricardo Vieira

等级: Junior Member

帖子: 42

加入日期: 2010年8月16日

最近的帖子

did you find a way to do this ? I could use this too, since the global scope doesnt support DL emoticon


I'm looking through the .jspf files of the asset publisher portlet, trying to figure out where it gets the scope id's, to see if i can change it to get all companyId's, but so far i cant find the right place, any hints would be greatly appreciated emoticon
Alessandro Cosenza
RE: Scope of asset publisher
2010年9月20日 上午1:25
答复

Alessandro Cosenza

等级: Junior Member

帖子: 83

加入日期: 2009年11月18日

最近的帖子

replace in configuration.jsp of asset publisher portlet the following code (is about 296 row):

1
2for (Layout curLayout : LayoutLocalServiceUtil.getLayouts(layout.getGroupId(),layout.isPrivateLayout())) {
3  if (curLayout.hasScopeGroup()) {
4    groups.add(curLayout.getScopeGroup());
5  }
6}


with

1
2for (Group group : GroupLocalServiceUtil.getCompanyGroups(company.getCompanyId(), -1, -1)) {
3   if (group.isCommunity() && group.getType() == 1)
4           groups.add(group);
5                                    
6}


hope it works for you
Ricardo Vieira
RE: Scope of asset publisher
2010年9月20日 上午2:30
答复

Ricardo Vieira

等级: Junior Member

帖子: 42

加入日期: 2010年8月16日

最近的帖子

Great, this works

thank so much Alessandro emoticon
Sven Werlen
RE: Scope of asset publisher
2010年9月22日 上午7:47
答复

Sven Werlen

等级: Regular Member

帖子: 120

加入日期: 2009年2月25日

最近的帖子

For those who don't want to change the original source code of Liferay, we made a plugin (hook) that makes the asset publisher list organizations and communities in the scope.

https://projects.savoirfairelinux.com/wiki/ctr-liferay/Hook_for_Asset_Publisher_605
Alessandro Cosenza
RE: Scope of asset publisher
2010年9月22日 上午7:54
答复

Alessandro Cosenza

等级: Junior Member

帖子: 83

加入日期: 2009年11月18日

最近的帖子

thanks sven, of course my changes are intented to be made in a hook plugin emoticon
Sven Werlen
RE: Scope of asset publisher
2010年9月22日 上午8:55
答复

Sven Werlen

等级: Regular Member

帖子: 120

加入日期: 2009年2月25日

最近的帖子

Actually, I hope that Liferay will soon include that fix into the asset publisher. Currently, the "Scope" option in the asset publisher is useless. It's probably a bug. Have you created a ticket for it?
Kevin L
RE: Scope of asset publisher
2010年9月27日 下午12:56
答复

Kevin L

等级: New Member

帖子: 2

加入日期: 2010年8月14日

最近的帖子

Sven Werlen:
For those who don't want to change the original source code of Liferay, we made a plugin (hook) that makes the asset publisher list organizations and communities in the scope.

https://projects.savoirfairelinux.com/wiki/ctr-liferay/Hook_for_Asset_Publisher_605


Thank you for this valuable hook. I have the same need to add community in the scope, so this solves the issue.

However, in Asset Publisher configuration, if I add filter, somehow it cannot get the document from the community. For example,

1. In community ABC, I upload a document in community document library and tag it "xyz"
2. Under the global page, I add an Asset Publisher portlet. In configuration, I choose the scope "ABC", then save.
3. The document title I upload in community shows up in the portlet.
4. I change configuration by adding a new filter "Contains Any of the following Tags "xyz", then save.
5. The document somehow disappears from the portlet.

If I have documents with the same tag in the global document library and choose global scope with the same filter in asset publisher configuration, it display the document in global document library fine.

So somehow, the filter does not seem to work right if I choose the community scope.
Sven Werlen
RE: Scope of asset publisher
2010年10月20日 上午10:18
答复

Sven Werlen

等级: Regular Member

帖子: 120

加入日期: 2009年2月25日

最近的帖子

That's because the tags/categories you can select for filtering are coming from the current community (and not the one you selected in the scope). Tags/categories are attached to a group (organization/community).

We implemented a fix for that as well. In your case, you would have to:
1. Select the scope
2. Save the configuration
3. Select the filter
4. Save the configuration

Let me know if this interests you. We'll then package the fix and publish it.
Sven Werlen
RE: Scope of asset publisher
2010年10月27日 下午12:30
答复

Sven Werlen

等级: Regular Member

帖子: 120

加入日期: 2009年2月25日

最近的帖子

The asset publisher hook is now available on Liferay Community Plugins page:
http://www.liferay.com/downloads/liferay-portal/community-plugins/-/software_catalog/products/6268657

We created a new version that improves the configuration for "categories" (but not for tags yet).
Szymon Gołębiewski
RE: Scope of asset publisher
2010年10月27日 下午1:43
答复

Szymon Gołębiewski

等级: Regular Member

帖子: 247

加入日期: 2009年6月8日

最近的帖子

Sven,

I think you should fill a ticket in liferays JIRA for that and submit your hook beacuse it's so damn good. There are many places in Liferay that are unusable and you have fixed one of it emoticon

Cheers,
Szymon
Sven Werlen
RE: Scope of asset publisher
2010年10月27日 下午5:49
答复

Sven Werlen

等级: Regular Member

帖子: 120

加入日期: 2009年2月25日

最近的帖子

Thank you!

I followed your advice and created a ticket.

We just released another portlet that might interest you:
Web Content Archive
Szymon Gołębiewski
RE: Scope of asset publisher
2010年10月28日 上午2:14
答复

Szymon Gołębiewski

等级: Regular Member

帖子: 247

加入日期: 2009年6月8日

最近的帖子

I saw that one yesterday and it's superb. We gonna use it in our next project and we gonna add another view in which it will look like a calendar with days that contain web content beign underlined. I think you should also submit that one to the liferay repository emoticon
Sven Werlen
RE: Scope of asset publisher
2010年10月28日 上午7:06
答复

Sven Werlen

等级: Regular Member

帖子: 120

加入日期: 2009年2月25日

最近的帖子

Thanks!
The portlet is available in the liferay repository. You might have to refresh your repository (there is a link at the bottom of the page for it) to see it in the portlet list.

The idea of the calendar view is great! We would be more than happy if you could share it as a contribution.
Szymon Gołębiewski
RE: Scope of asset publisher
2010年10月28日 上午10:03
答复

Szymon Gołębiewski

等级: Regular Member

帖子: 247

加入日期: 2009年6月8日

最近的帖子

Sven,

I've played with your hook and it's missing one thing. You don't show users community (My Community). AS RoK mentioned in comments here it would be nice if we can show on main page of our sites what users posted in their scopes.

So if you could add to your hook option to also show users communities it would be great.

Also something for the future:
  • currently Admin A of Organization A can configure asset to show WCs from Organization B to which this admin doesn't have permissions (he doesn't belong to that org). So this hook should check that.
  • If Admin A configures asset to show WCs from Organization B (we assume he has privileges to to that) there are still articles that should be restricted only to Organization B. Currently in Web Content Edit page you can set "Viewable by" but there should be also an option "Power Users (this Community only)". Also all portlets should now how to handle and show web contents with such permission. Maybe they will do that out-of-the-box - I don't know.



If you want I can be your tester for this hook emoticon
Szymon Gołębiewski
RE: Scope of asset publisher
2010年10月28日 上午9:40
答复

Szymon Gołębiewski

等级: Regular Member

帖子: 247

加入日期: 2009年6月8日

最近的帖子

Sven Werlen:
The portlet is available in the liferay repository.


I'm talking about Liferay Inc. Liferay Core repository emoticon
Sven Werlen
RE: Scope of asset publisher
2010年10月29日 上午6:01
答复

Sven Werlen

等级: Regular Member

帖子: 120

加入日期: 2009年2月25日

最近的帖子

Simon Gołębiewski:
I've played with your hook and it's missing one thing. You don't show users community (My Community). AS RoK mentioned in comments here it would be nice if we can show on main page of our sites what users posted in their scopes.


We'll take a look at that. Unfortunately, we are quite busy for the next 2 weeks and I'm not sure we'll be able to fix it very soon.

See Request
Kennedy Alagappan
RE: Scope of asset publisher
2011年10月13日 上午9:08
答复

Kennedy Alagappan

等级: New Member

帖子: 1

加入日期: 2011年9月28日

最近的帖子

Sven Werlen:
That's because the tags/categories you can select for filtering are coming from the current community (and not the one you selected in the scope). Tags/categories are attached to a group (organization/community).

We implemented a fix for that as well. In your case, you would have to:
1. Select the scope
2. Save the configuration
3. Select the filter
4. Save the configuration

Let me know if this interests you. We'll then package the fix and publish it.



I am interested in this. I need to pull all the webcontent created with the specified categories in the selected Organization, should show up in this asset publisher. Could you please let me know.

Thank you for your help
Sven Werlen
RE: Scope of asset publisher
2011年10月13日 下午4:59
答复

Sven Werlen

等级: Regular Member

帖子: 120

加入日期: 2009年2月25日

最近的帖子

Did you try the hook?
It should work for your use case.
Hugh Martin
RE: Scope of asset publisher
2012年3月6日 下午2:11
答复

Hugh Martin

等级: Junior Member

帖子: 75

加入日期: 2010年6月15日

最近的帖子

Sven, we're considering your hook as well. Before we do, I just wanted to check in to see if there had been any unpublished advancements? Thanks.
Sven Werlen
RE: Scope of asset publisher
2012年3月6日 下午2:18
答复

Sven Werlen

等级: Regular Member

帖子: 120

加入日期: 2009年2月25日

最近的帖子

No. We didn't use it for 6.1 yet but the hook is actually extremely simple.
Also, make sure that you'll not use "staging" environment but this hooks doesn't work with it (only contents from the current organization are published to remote).
Hamish Campbell
RE: Scope of asset publisher
2012年9月6日 上午10:01
答复

Hamish Campbell

等级: Junior Member

帖子: 87

加入日期: 2008年8月20日

最近的帖子

Used to use this hook, we just updated to 6.1 latest CE and we have lost the functionality we need, is the a new version of this (:

Think this is the same as this http://www.liferay.com/community/forums/-/message_boards/message/12536810
Hamish Campbell
RE: Scope of asset publisher
2012年9月30日 上午6:06
答复

Hamish Campbell

等级: Junior Member

帖子: 87

加入日期: 2008年8月20日

最近的帖子

any chance you could make the hook for 6.1?
Alexander Ishmuradov
RE: Scope of asset publisher
2013年4月29日 上午6:16
答复

Alexander Ishmuradov

等级: Junior Member

帖子: 48

加入日期: 2013年3月18日

最近的帖子

Thanks a lot!
I managed to do the same on 6.1.1 GA2 CE. But there is one issue with roles: if I show Web Content from Community Site there is no button "Add New >" in Asset Publisher, even if I define "Add Content" permission to the Site (Community) role. Only if I add this permission for regular role this will lead to the appearance of the button.
I suppose it is necessary to correct the file "add_asset.jspf", but I do not know exactly how.

Please someone help with this..

Alexander
Gabriel Leon Leyva
RE: Scope of asset publisher
2013年6月7日 上午8:50
答复

Gabriel Leon Leyva

等级: Regular Member

帖子: 243

加入日期: 2009年6月20日

最近的帖子

Having the same problem