Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
jeff gerbracht
Journal templates in Asset Publisher
2. Dezember 2008 11:02
Antwort

jeff gerbracht

Rang: Junior Member

Nachrichten: 64

Eintrittsdatum: 5. Juni 2008

Neue Beiträge

It would be a great addition and would provide alot of flexability if I could apply templates to the asset publisher, one for the abstract page and a different one for the full view.
Jeff
Olaf Kock
RE: Journal templates in Asset Publisher
4. Dezember 2008 12:08
Antwort

Olaf Kock

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 1678

Eintrittsdatum: 23. September 2008

Neue Beiträge

Though this doesn't help you, but I'd also like to see this (see this forum post) or at least a similar functionality. I don't care if it's done through AssetPublisher or something else, maybe it's already there and I haven't yet found it...

If you learn more about alternatives, please post your answers here.
Thanks,
Olaf
Bryan Cheung
RE: Journal templates in Asset Publisher
4. Dezember 2008 14:56
Antwort

Bryan Cheung

LIFERAY STAFF

Rang: Expert

Nachrichten: 359

Eintrittsdatum: 26. August 2004

Neue Beiträge

Olaf Kock:
Though this doesn't help you, but I'd also like to see this (see this forum post) or at least a similar functionality. I don't care if it's done through AssetPublisher or something else, maybe it's already there and I haven't yet found it...

If you learn more about alternatives, please post your answers here.
Thanks,
Olaf


Hi Olaf and Jeff,

Thanks for your posts. This is actually on my wish list as well. emoticon

We make extensive use of the Asset Publisher at the Rural Poverty Portal. We have a sort of kludgy solution, which I'll describe to you, but I would like to see a better solution eventually.

1. Take a look at this page: http://www.ruralpovertyportal.org/web/guest/country/voices/tags/albania

2. Click on the first link, Successful women in agribusiness

3. Notice that you are taken to http://www.ruralpovertyportal.org/web/guest/country/voice/tags/albania/agribusiness; that center column contains an Asset Publisher portlet configured for an AND query on "voices" and URL tags (which in this case are "albania" and "agribusiness"). The journal article that appears contains all three of those tags.

4. The "agribusiness" tag contains a property called "journal-template-id," which is set to the template ID for the full page view template. Asset Publisher looks for this property, and if it exists, it will display the alternate template rather than the one selected in the Journal article. So for this site, we set the default template to one that we use for the list view (which is configured for full content view, NOT abstract view), and we set the alternate view through the tag property.

You can see this demonstrated by appending "agribusiness" to the Voices URL: http://www.ruralpovertyportal.org/web/guest/country/voices/tags/albania/agribusiness. Since it's the "agribusiness" tag that contains the "journal-template-id" property, it triggers the alternate display.

Very very kludgy, and I'm not sure if it will work the same way after 5.1.0.
Bryan Cheung
RE: Journal templates in Asset Publisher
4. Dezember 2008 14:59
Antwort

Bryan Cheung

LIFERAY STAFF

Rang: Expert

Nachrichten: 359

Eintrittsdatum: 26. August 2004

Neue Beiträge

jeff gerbracht:
It would be a great addition and would provide alot of flexability if I could apply templates to the asset publisher, one for the abstract page and a different one for the full view.
Jeff


Let me also add that in general, having editable templates for the Asset Publisher is a needed feature and was part of the original vision but hasn't been implemented. Rather than using Journal-style templates, though, the idea was to have templates use the common meta-data of all asset types (title, url, author, description, creation date, modified date, abstract, main content).
Olaf Kock
RE: Journal templates in Asset Publisher
5. Dezember 2008 00:19
Antwort

Olaf Kock

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 1678

Eintrittsdatum: 23. September 2008

Neue Beiträge

Bryan Cheung:
We make extensive use of the Asset Publisher at the Rural Poverty Portal. We have a sort of kludgy solution, which I'll describe to you, but I would like to see a better solution eventually.

Your demonstration of this feature during the european symposium actually brought me to look at the asset publisher. Without this I probably wouldn't have found it - at least not that early.
Bryan Cheung:
4. The "agribusiness" tag contains a property called "journal-template-id," which is set to the template ID for the full page view template. Asset Publisher looks for this property, and if it exists, it will display the alternate template rather than the one selected in the Journal article. So for this site, we set the default template to one that we use for the list view (which is configured for full content view, NOT abstract view), and we set the alternate view through the tag property.

That's neat - this I would definitely not have found without this post. I'll immediately take a look at it.
Bryan Cheung:
Very very kludgy, and I'm not sure if it will work the same way after 5.1.0.

Bad news. Unless it's superceded with something better, less kludgy emoticon
Thank you for sharing this insight.
Ton Hoang
RE: Journal templates in Asset Publisher
19. Januar 2009 09:58
Antwort

Ton Hoang

Rang: New Member

Nachrichten: 21

Eintrittsdatum: 9. Dezember 2008

Neue Beiträge

anyone can tell me more detail, step by step...

thank so much
Joshua Asbury
RE: Journal templates in Asset Publisher
9. Februar 2009 13:38
Antwort

Joshua Asbury

LIFERAY STAFF

Rang: Expert

Nachrichten: 497

Eintrittsdatum: 8. September 2006

Neue Beiträge

I second or third the need for this feature. The asset publisher is so powerful, and not having the ability to style it (short of CSS hacks) is unfortunate.
Jonas Yuan
RE: Journal templates in Asset Publisher
11. Februar 2009 13:36
Antwort

Jonas Yuan

Rang: Liferay Master

Nachrichten: 993

Eintrittsdatum: 26. April 2007

Neue Beiträge

Hi Bryan,

Thank you so much.

It is a good idea to add velocity templates in Asset Publisher. In my opinion, it is doable, actually.

Currently, the views are fixed in JSP files. But we can implement the views through templates. CSS and JavaScript should be available in templates, too. It would be easy for developers to customize velocity templates (including CSS and JavaScript) directly.

Here is brief proposal:

Step one: Predefine a set of templates (for different views: table, title list, abstracts, full content ) in the folder /vm (or other reasonable folder name) in Asset Publisher.

Step two: in the Render action, pick up a proper template to generate the view.

Thanks
Jonas Yuan
Ton Hoang
RE: Journal templates in Asset Publisher
11. Februar 2009 18:53
Antwort

Ton Hoang

Rang: New Member

Nachrichten: 21

Eintrittsdatum: 9. Dezember 2008

Neue Beiträge

good sugesstion jonas!
Jonas Yuan
RE: Journal templates in Asset Publisher
11. Februar 2009 19:54
Antwort

Jonas Yuan

Rang: Liferay Master

Nachrichten: 993

Eintrittsdatum: 26. April 2007

Neue Beiträge

Hi Ton,

Thank you!

How about the following proposal (making Liferay CMS powerful - similar to Alfresco CMS)?

http://www.liferay.com/web/guest/community/forums/-/message_boards/message/2031035
Bernardo Riveira Faraldo
RE: Journal templates in Asset Publisher
2. Juni 2009 10:28
Antwort

Bernardo Riveira Faraldo

Rang: Regular Member

Nachrichten: 136

Eintrittsdatum: 30. Oktober 2008

Neue Beiträge

Here we are at 5.2.2

I have used extensively other web content servers and I find LifeRay lacking that exact feature: AssetPublisher is not usable at all for the following reasons:

1) common "static" asset fields like title (name!) and abstract are NOT translatable!!! (only content), so assetpublisher content selections are not translated

2) you cannot have a specific template applied to a specific selected web content plus structure, to list the items

at least the dinamic-structured web content should be given a "default" template to show it "in full", but then you should be able to show the same content with other templates in other parts of the portal

I would be served just allowing AssetPublisher to select webcontent with specific structures and the template to use for listing, and maybe also the template to use when clicking on the "view more" link (although maybe it would be better to construct the link in the velocity template so we designer/programmers can put it wherever we want, the title, a "more" link, whatever...)

at least if AssetPublisher and web content allowed all the user-presented content to be translated... but having only the option to translate content when the user is showed the name and abstract in only one language is not ok...
Dana Oredson
RE: Journal templates in Asset Publisher
4. Juni 2009 08:18
Antwort

Dana Oredson

Rang: Junior Member

Nachrichten: 70

Eintrittsdatum: 14. Oktober 2008

Neue Beiträge

Jonas Yuan:
Hi Bryan,
Step one: Predefine a set of templates (for different views: table, title list, abstracts, full content ) in the folder /vm (or other reasonable folder name) in Asset Publisher.

Step two: in the Render action, pick up a proper template to generate the view.


We have specific requirements to format the meta-data fields differently than asset publisher does, which we have currently modified the jsps in the extension environment (which sucks when upgrading). So this would be awesome and welcome for us as well.

Thanks,
Dana.
Jonas Yuan
RE: Journal templates in Asset Publisher
11. September 2009 11:14
Antwort

Jonas Yuan

Rang: Liferay Master

Nachrichten: 993

Eintrittsdatum: 26. April 2007

Neue Beiträge

Hi Dana,

Currently, you may use the hooks to override these JSPs in the Plugins SDK environment. This would be simpler than that of the Ext. - a little bit easy-upgrade, if you would not use the Asset Publisher AS IS.

It would be better to add templates in the Asset Publisher portlet ... :-)

Thanks

Jonas Yuan

Liferay System Development book: Liferay Portal 5.2 (or above) Systems Development
Lisa Simpson
RE: Journal templates in Asset Publisher
22. Juni 2009 15:26
Antwort

Lisa Simpson

Rang: Liferay Legend

Nachrichten: 2034

Eintrittsdatum: 5. März 2009

Neue Beiträge

We post a lot of research so it would be extra spiffy for us to be able to aggregate the abstracts almost like a blog aggregation and then publish the full articles.
Vincent Olivier
RE: Journal templates in Asset Publisher
28. Juni 2009 09:52
Antwort

Vincent Olivier

Rang: Junior Member

Nachrichten: 28

Eintrittsdatum: 28. Mai 2009

Neue Beiträge

Hi Jonas,

I'm also looking forward a "list" template feature implemented in Asset Publisher. In the meantime, I would like to be able to fetch a custom structure attribute from an article content and display it in the abstract list. I think it would go in the "abstract.jsp" file for the asset publisher.

What I'm looking to do is to extract a "link to page" attribute from the article content and use it as the "read more" URL for this article in the asset publisher. It's easy to do in an article velocity template, but how to I do that in JSP, in particular, from the the "abstract.jsp" file?

Thanks,

Vincent
I'm using 5.2.3.
David Hunter
RE: Journal templates in Asset Publisher
3. September 2009 20:09
Antwort

David Hunter

Rang: Junior Member

Nachrichten: 28

Eintrittsdatum: 15. Januar 2009

Neue Beiträge

Hi Vincent - did you resolve this issue with pulling elements from within the structure to display in an asset pblisher view ?
I'm am attempting the same idea.

Any advice ?

Thanks - david
Vincent Olivier
RE: Journal templates in Asset Publisher
4. September 2009 07:42
Antwort

Vincent Olivier

Rang: Junior Member

Nachrichten: 28

Eintrittsdatum: 28. Mai 2009

Neue Beiträge

Well, I fixed it by overriding some JSPs for the Asset Publisher portlet in a hook...

It works great.

Vincent
Jonas Yuan
RE: Journal templates in Asset Publisher
11. September 2009 11:16
Antwort

Jonas Yuan

Rang: Liferay Master

Nachrichten: 993

Eintrittsdatum: 26. April 2007

Neue Beiträge

Hi Vincent, Nice to hear that you got it working. Great! Jonas Yuan.