cancel
Showing results for 
Search instead for 
Did you mean: 

Use WYSIWYG to add image

surajit
Champ in-the-making
Champ in-the-making
Hi I would like to create contents having images and links to other pages using WYSIWYG.

Could anybody please tell how should I specify the image file path and also the path for other links.

Thanks …
Surajit
6 REPLIES 6

rdanner
Champ in-the-making
Champ in-the-making
Hi I would like to create contents having images and links to other pages using WYSIWYG.

Could anybody please tell how should I specify the image file path and also the path for other links.

Thanks …
Surajit

I think this depends on how you plan on publishing the content.  If you link back to the repository with a ticket URL this may not work if you intend to publish away from the system or outside a firewall.  can you give a couple more details around your use?

surajit
Champ in-the-making
Champ in-the-making
Hi ,
I want to develop a Jboss potlet(another server) to view this HTML page which I create in Alfresco. I would retrive the html content via webservice.

This page that I indent to develop on Alfresco will be like a News html, having some images, links and downloads.

I plan to develop the html pages via WYSIWYG and link the pages (href). I am not able to figure our how the link would be like.

Similarly I want to add images to these pages. I would first uplaod the images in Alfresco folder and give the image path. But I am not able to figure our what my path should be.

regards
Surajit

toni
Champ in-the-making
Champ in-the-making
I would like to know how this work too.

For examples,

If we store  images, audio, v*deo in a space  publicly accessible for all users such as in Guest Home with Guest access enable,

Can an external website separate from Alfresco:
    1. Display images store in Alfresco?
    2. Play audio/v*deo store in Alfresco?
And How?

Thanks,

Toni

rdanner
Champ in-the-making
Champ in-the-making
I would like to know how this work too.

For examples,

If we store  images, audio, v*deo in a space  publicly accessible for all users such as in Guest Home with Guest access enable,

Can an external website separate from Alfresco:
    1. Display images store in Alfresco?
    2. Play audio/v*deo store in Alfresco?
And How?

Thanks,

Toni

Assuming that your web service just spits out the contents of the HTML page based on the WYSIWYG editor you can factor the web service portion out of the equation and just perform this test

Create a folder called test

Add content

Upload your favorite image

Now view the image to get the url for it

http://localhost:8080/alfresco/download/direct/workspace/SpacesStore/ee573db7-8d26-11db-a706-bb20ed1...

create content

embed an image put the image url into the image src properties

Now save the content

Don’t log out yet… we are doing this step by step.

view the content it should work

Now to make it work when people are logged out you either need guest access enabled.

   in which case on the end of your image url you add ?guest=true

or you need to generate a ticket which you can do with a number of the APIs (Including the web service API where the result of the authentication gives a valid ticket id for that request)

   In this case you need to
      A make sure that ticket id (or the authentication id) has the appropriate rights (Such as view only)

     place the ticket id on the end of the image requests with a regex.


This will work when you don’t have a session logged into the alfresco client.   I think WCM will provide much more elegant ways of deploying content to the web.  Proxying back to the repository in this way has a lot of drawbacks

   marriage of your content with your management solution
   Processing the content to place the ticket id

ajansen
Champ in-the-making
Champ in-the-making
I tried it but something strange happens…

When i add ?guest=true to the url and save the node it gives an error:

Unable to update Content Node due to system error:Access Denied. You do not have the appropriate permissions to perform this operation.

The reason is clear, i'm not logged in anymore as Admin but as guest !

Could this be a bug?

gavinc
Champ in-the-making
Champ in-the-making
This is actually the desired behavior but probably not the desired result!

Adding ?guest=true on the end of the URL will make that request logout the existing user and login the 'guest' user, when you do this within a web client session your session ends up being the guest user (the intention of the URL was to be outside of the web client)

If you need the URL to work from within the web client then you need to use the guestDownload servlet instead, have a look at: http://wiki.alfresco.com/wiki/URL_Addressability#GuestDownloadContentServlet for more information.