How to edit HTML in Orchard CMS? - orchardcms

The HTML editor which comes with Orchard is not very user friendly - no tabbing, no coloration, no indention.
I downloaded the website files with WebMatrix to find the actual "view" files, but no luck. Also, opened the project in Visual Studios to do a search, but no luck.
I'm forced to concluding that the "content" of my Orchard Website is stored in a cloud database, and there is no way way for me to edit any of this "content" unless I'm in the DASHBOAD view of Orchard.
How can I edit HTML in Orchard CMS using another HTML editor than the one provided in DASHBOARD view?

Try Opening the page in WebMatrix and looking for the file there. WebMatrix has a fairly robust HTML editor.

Use Sublime Text for your HTML edits and then copy and paste into Orchard

Related

SharePoint content editor web part is missing the url to HTML file in edit mode

This is a weird one, but I am not sure if I am missing something here. There used to be a location for the link to HTML files in content editor web parts. I cannot find the url now! I want to know which HTML file the web part is showing at the moment so I can modify it. It not under any of these: Appearance, Layout, Advanced.
The problem was SharePoint Online's content type editor had gone missing. So I managed to enable the feature back on again. As soon as I enabled the feature, the content editor edit panel went back to its previous status. I used this to do it:
Content Editor Web Part missing on SharePoint Online

Add a WebPart to a publishing page layout

I've been trying to figure out a way to add a web part onto a page layout. Whenever I try to add a web part zone or web part via the menus in SharePoint Designer, nothing happens. The web part I selected is highlighted blue, but nothing happens.
I have been trying to add the .webpart code on the .aspx page layout with zero luck.
<WebPartPages:WebPartZone>
<ZoneTemplate>
.webpart code in here!
</ZoneTemplate>
</WebPartPages:WebPartZone>
The above just shows the web part zone, and the ability to add a web part, but doesn't show my web part.
I've tried placing the code outside the Zone Template and the WebPartZone, but I typically just get everything between the property tags displaying as text.
You cannot add the codes to get your webpart embeded on a page , you have to open the page layout in a designer and drop the webpart on that specific area - there may not be anyother work around for this
Regards
Arjun
SharePoint was not updated to support creating the snippet of code to add the WebPart to the Page Layout like it is possible with old fashioned WebParts.
Even when inserted in the Page Layout .html file, it is stripped out when the corresponding .aspx file is generated.
We found a workaround which is far from ideal but works:
Edit your Page Layout as you would normally in HTML
Add a WebPart zone where you would like to see the WebPart
Save the HTML and let SharePoint generate the aspx file
Manually edit the aspx file -- don't use SharePoint Designer, as it will strip out what you added -- with a plain text editor and insert the code from the webpart definition (the XML file)
Save the aspx and when you create a page using the page layout, your SPFx webpart should be there
Note that for the WebParts parameters, it is stored as a JSON structure encoded in HTML. To figure out how to setup default parameters in the inserted WebPart, insert it into a regular page manually and look at what has been generated in the aspx file. Then find the long line that has the encoded JSON structure and copy it back to your edited aspx file.
Finally, never edit/save your page layout HTML file since it ewill then simply override your changes. I would keep a copy of your edited aspx file just in case!
It sounds like you're trying to use a Visual Web Part with SharePoint Online, which you can't do. Web parts for SharePoint Online need to be packaged as a part of a solution.
To deploy a solution to SharePoint Online you need to:
Navigate to the solutions gallery: https://<yourfarmsite>/catalogs/solutions/forms/allitems.aspx
Providing that you are logged in with the correct account and have permissions, this will take you to the solution gallery, where you can upload and activate custom web parts for site.
Click the Solutions Menu
Click Upload Solution
Browse to your custom .wsp file and click OK
After the web part has been uploaded, you can activate it; select the web part and click Activate
Now that the custom web part is uploaded and activated in the Solution Gallery, you can edit the site page that you want to add it to and then add it as per a normal web part.

Drop-Down Menu SharePoint 2010 - Simple

I want to create a simple drop-down menu with separate options that when selected forward to the associated URL. This is simple in just plain JavaScript but I've run into issues with SharePoint. Are there any solutions using just JS or SharePoint webparts / in browser options (as opposed to coding in Visual Studio or using Designer)?
If you don't want to use Visual Studio or SharePoint Designer, you can also use the default "Content Editor Webpart". You can upload a file that contains the needed html, javascript, ... and then use that file as a content source for the Content Editor Webpart. This is a quick way of adding "enhanced" content.
The prefered way would be to create the webpart in Visual Studio, add the needed css and javascript in the package that you deploy to SharePoint and link the needed files in your webpart.

SharePoint 2010 Content Editor Webpart not supporting iframe

I am trying to Embed a SharePoint Site Page in a Content Editor Webpart using iframe in SharePoint 2010. Once i save and close the content editor, the iframe is removed. Is there a solution for this?
The Content Editor Web Part is intended for adding HTML content to a Web Part Page, it is not designed to link to a Web site. If you need to link to a Web site, consider using the Page Viewer Web Part. -Microsoft-
refer this link.
Not sure if this can help you, but I wrote a blogpost about embedding videos like iframes into Rich Text fields.
In short its a script you add to your page through a Content Editor Web Part and after that the users can simply paste the iframe code directly into the rich text field and the content will show.
You could also embed the script into your masterpage.
Anyway, have a look at it and maybe you can modify the script to your needs
Embed video using script

Help on DotNetNuke

Does any body know how can i change the layout of a dotnetnuke website. I need to modify the standard layout
You can use a custom skin or modify the default skin that comes with the DNN installation. The default skin files are in [Website]\Portals_default\Skins\MinimalExtropy\ where [Website] is your DNN web site folder. If you are new to skinning and have a lot of questions, I am sure that the DNN forums will be helpful - DNN Skinning forums
You can do that by editing the CSS. I had similar issue, for which I used " inspect element" in google chrome that helped me in recognizing div elements and css properties. You can find css in portals_default\Skins\DarkKnight (or your own skin name) \skin.css
If your wanting to do anything outside of the CSS (ie, turn off the search bar on a page); then you have to have full access to the site -- open the site via FTP or download all the files, then you can modify the 'default' page, or the skin file you want to change. my suggestion is to make a 'copy' of the skin default page you want to change, give it a new name, and then save it back to the server. When you go to change the 'skin' theme from the 'site manager' you will see your new skin page listed as an option. Modifying from the CMS does not allow you to modify the actual 'page', only its 'parts'. There is also a starter kit available for Visual Studio, google "DNN Starter Kit" which you can create custom modules, skins and containers.

Resources