Fórumok

WIKI - use images enclosed as attachment in HTML syntax

Jan Tošovský, módosítva 13 év-val korábban

WIKI - use images enclosed as attachment in HTML syntax

Liferay Master Bejegyzések: 566 Csatlakozás dátuma: 2010.07.22. Legújabb bejegyzések
Hello Everyone,

the attachment in the HTML syntax can be linked using the following way:
<img src="/c/wiki/get_page_attachment?p_l_id=10426&amp;nodeId=11336&amp;title=FrontPage&amp;fileName=FrontPage%2Fimage.jpg">


I am trying to avoid that p_l_id and nodeId in that link modifying the following class:
http://svn.liferay.com/repos/public/portal/trunk/portal-impl/src/com/liferay/portlet/wiki/action/GetPageAttachmentAction.java

I am not sure if this is the way. GetPageAttachmentAction takes these both ID parameters and uses them for proper determination of the target path.

I am thinking to create a new class where just the file name would be specified:
<img src="/c/wiki/get_current_page_attachment?image.jpg">


Is it possible to retrieve these IDs automatically in this phase?
Or is this info in this point already out of the scope and these IDs must be really passed as parameter?

Additionally, what is that /c/ at the beginning of the link? Is it any constant or it can differ for another WIKI?

Any info is appreciated. This is unfortunate stopper for me to implement WIKI in LR.

Regards,
Jan
Jan Tošovský, módosítva 12 év-val korábban

RE: WIKI - use images enclosed as attachment in HTML syntax (Válasz)

Liferay Master Bejegyzések: 566 Csatlakozás dátuma: 2010.07.22. Legújabb bejegyzések
My original idea how to import my WIKI content has changed, so this link syntax is not problem any more.
See also http://www.liferay.com/community/forums/-/message_boards/message/5963546