Can we get URL details of a HotSpot Link inside a richtext content - lotus-notes

Is it possible to get the URL details of a Hotspot link inside a RichText content.
Like we can get the DocLink details inside richtext with the help of NotesRichTextDocLink class

Access to Rich text using the native classes of Domino is relly limited. Thus, I'd suggest to export the Rich Text to HTML and parse it to get the url of the link.
See: How to export Rich Text fields as HTML from Notes with LotusScript?
My prefered way is ConvertToMIME.

Related

Any idea about inserting html to SharePoint?

I'm trying to insert piece of my html code(which is actually working in my local html file) in SharePoint. But it is not accepting all my tags which are there in the code, for eg: 'style' tag.
Any help is greatly appreciated. :)
Open page for edit. Then from "Media and Content" group choose "Script Editor" web part. And then click Edit Snipper and paste your html code there.
You can also use Content Editor web part and provide link to your html code.
If you want to change style for whole SharePoint you can modify Master Page or providing Alternate CSS for exiting one (this is possible in Central Administration).

Lotus notes - how to view forms as HTML?

I have just installed lotus designer 9, and I created a new project with a notebook template. Now I am looking through forms, views, pages etc. and I can see all the controls, at the bottom I have so-called 'programmers pane', but if I wanted to put some of my own html, or adjust a little bit the existing one, I cannot.
So my question is - how do I enable html view? When I open a form, and go to View, I can see that there is an option HTML Editor, but it is grayed out, what am I missing?
HTML is not the storage format for forms, behind the scenes. Forms are stored in a proprietary rich text format, and conversion between that and HTML is not exact. So there is no "HTML view" of a Notes form.
You can type HTML text onto the form, highlight it, and designate it as "pass-thru" (Menu 'Text > Pass-Thru HTML'). If accessed via the web, the exact HTML you enter here will be included in the HTML sent to the browser. The Notes client will also convert pass-thru HTML to Notes rich text for display, provided this option has been enabled in the form properties.

Orchard CMS adding an additional HTML part to page content type?

I'm trying to break my body into pre content, content, and post content so I can inject ads and what not within my articles. The only HTML field module is broken for 1.4 at the moment and I can't seem to add additional body parts to the page. I'm having to create my pre content in the body, then cut the HTML into a pre conntent text field. And do the same thing for post content. There's got to be a better way to do this. Is there any way to have more than one HTML editor field in the page editor?
As I told you in another answer, you can configure the Text field to use HTML. Just add the text field, and then expand it in the type editor. There is a drop-down where you can choose HTML.

Printing a webpage with JSF

I have seen webpage with a PDF icon, where you could click on it to print the content of that webpage.
The page i am intending to add the print feature is designed in JSF, so is there anyway where i could add a print button, to get the webpage printed ?
No, you must do this yourself. Get some PDF library (for example iText), then get web page output (plain HTML). Then you will have to iterate thru HTML and create PDF version (for example build iText document). You will probably have to do this yourself, because some elements (javascript powered) will need to turn into static content. Nobody but you knows how the output should look like.

Where can I find discussion board newform.aspx page to modify?

I have to modify text in discussion board new post page. Now it is showing "Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval."
I have to append some text to this message. I am trying to find discussion board newform.aspx page to modify. Please let me know where can I get that?
Assuming your discussion list is called "Public Discussion" at a site called "http://yoursite"
Connect to the site (http://yoursite) with sharepoint designer
Go to All Files -> Lists -> Public Discussion -> NewForm.aspx
Edit file
Look for <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
Add content as needed
Save file, it will warn you that you are about to save a customised layout.
The message you describe is injected by sharepoint's content approval framework. To custom the messsage, you will most likely need to use javascript to find the message box and change the text.
On my site the html xpath to the node is something like this:
//span[#id='part1']/table/tbody/tr/td[2]
On the file system it will be here:
$sphome / "Name of your discussion board" (this will be a folder) / Forms / newform.aspx
There is a similar question asked here. It describes custom template controls handle the display of this content.
There is also a link here that describes a solution to do this using css. This would allow you to hide the OOB text and then have your own content displayed instead. However, there is some question of it working on broswers other than IE so include this in your testing.

Resources