Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Sarah Giles
Merging multiple Web Content pieces within one Web Content via velocity.
11. November 2011 10:45
Antwort

Sarah Giles

Rang: Junior Member

Nachrichten: 61

Eintrittsdatum: 19. Juli 2011

Neue Beiträge

I have some web content that may appear in different places and in different formats(inclosed by different html structure.)

I have some that may be displayed individually or grouped together. Currently if we want A, B and C article to be displayed together then we copy and past them into a new web content with its own Markup, JS, and CSS attached to it. I'm afraid this repetitive storage of content, structure and styles is going to make it difficult to upkeep. Actually there is not thinking it I KNOW this is bad and will cause problems later.

What I want to do is create a structure that takes the ID for these various web content pieces then in that template I can pull the body and title of each of the web contents and display them where they need to go.

If I have the ID in a web content portlet how can I fetch the journal article and get the data from the other web content?
Sagar A Vyas
RE: Merging multiple Web Content pieces within one Web Content via velocity
11. November 2011 11:22
Antwort

Sagar A Vyas

Rang: Liferay Master

Nachrichten: 656

Eintrittsdatum: 17. April 2009

Neue Beiträge

HI Sarah,

I have some web content that may appear in different places and in different formats(inclosed by different html structure.)[
I have some that may be displayed individually or grouped togethe


Can you do it with asset publisher portlet ?

Thanks,
Sagar Vyas
Sarah Giles
RE: Merging multiple Web Content pieces within one Web Content via velocity
11. November 2011 11:43
Antwort

Sarah Giles

Rang: Junior Member

Nachrichten: 61

Eintrittsdatum: 19. Juli 2011

Neue Beiträge

One of these is for a design the designers have made that uses UI tabs so each tab is a separate piece of content. the html, css, and js have all been built out that run them. can asset publisher do this? If so How?
We have several of these requirements that all boil down to this and each time we put them on the page it causes conflicts.
Sarah Giles
RE: Merging multiple Web Content pieces within one Web Content via velocity
11. November 2011 12:35
Antwort

Sarah Giles

Rang: Junior Member

Nachrichten: 61

Eintrittsdatum: 19. Juli 2011

Neue Beiträge

I guess what I really need is a web asset publisher that allows you to use a Velocity template to display the assets. Does the Current Liferay Web Asset publisher portlet allow this?
Sagar A Vyas
RE: Merging multiple Web Content pieces within one Web Content via velocity
11. November 2011 23:29
Antwort

Sagar A Vyas

Rang: Liferay Master

Nachrichten: 656

Eintrittsdatum: 17. April 2009

Neue Beiträge

Sarah Giles:
I guess what I really need is a web asset publisher that allows you to use a Velocity template to display the assets. Does the Current Liferay Web Asset publisher portlet allow this?


Hi Sarah,

For this you need look around asset publisher.

May below help you

http://www.liferay.com/community/wiki/-/wiki/Main/New+Features+in+Liferay+Portal+v6.0
http://www.liferay.com/web/craig.kaneko/blog/-/blogs/964852

Thanks,
Sagar Vyas
Milen Dyankov
RE: Merging multiple Web Content pieces within one Web Content via velocity
12. November 2011 14:29
Antwort
Sarah Giles
RE: Merging multiple Web Content pieces within one Web Content via velocity
14. November 2011 06:27
Antwort

Sarah Giles

Rang: Junior Member

Nachrichten: 61

Eintrittsdatum: 19. Juli 2011

Neue Beiträge

Thanks,
These two links look like they will be a big help and I am going to spend the better part of the day working on them hopefully.

Though I think what would be optimal would be better features in the Web Asset Display to allow for VM templates.
Deb Troxel
RE: Merging multiple Web Content pieces within one Web Content via velocity
14. November 2011 09:53
Antwort

Deb Troxel

Rang: Junior Member

Nachrichten: 81

Eintrittsdatum: 22. Februar 2010

Neue Beiträge

Here's another link that may help
http://www.liferay.com/web/barrie.selack/blog/-/blogs/embedding-a-portlet-in-web-content
You can embed one web content within another...