The Home page presents a default text :
Welcome to the Open edX® platform! It works! This is the default
homepage for this Open edX instance.
Where to go to edit this content ?
Disclaimer : found these solutions online but I did not implemented them. I'am summarizing them here for convenience and later testing. (Source discussion)
There are 2 ways to change you page contents.
1. Manually
If you want to manually update the code, edit the main pages are:
LMS:
edx-playform/lms/templates/main.html
CMS:
edx-playform/cms/templates/base.html
edx-playform/cms/templates/widgets/header.html
2. Via a theme and its edition
Get code in : git clone https://github.com/Stanford-Online/edx-theme /edx/app/edxapp/themes/
Rename scss : mv _default.scss edx-theme.scss
In lms.env.json, set "USE_CUSTOM_THEME": true " , "THEME_NAME": "edx-theme" in lms.env.json
Edit /edx/app/edxapp/edx-platform/lms/templates/index.html
Related
I've come across a few posts online but still befuddled and nothing concrete. Maybe someone can decode the below for me, seems like they figured it out but I've never made a plugin before so not sure where to start. Maybe can outline a file structure and I can take it from there? Thanks in advance
https://community.c9.io/t/snippets-not-working-in-c9/19215/3
I could not get plugins to load using the external url method, but loading plugins locally works.
You need to create a new plugin
mkdir -p ~/.c9/plugins/myPlugin/snippets;
cd ~/.c9/plugins/myPlugin/snippets;
printf '# scope: javascript\nsnippet test\n\tif (${1:true}) {\n\t\t${2}\n\t}\n\t$0' > javascript.snippets;
echo '{"name":"myPlugin", "plugins": {}}' > ../package.json
Then open your init script (click on AWS Cloud9 > Open Your Init Script in the menu bar) and add code for loading the plugin
services["language.complete"] = services["languageComplete"];
services.pluginManager.loadPackage([
"~/.c9/plugins/myPlugin/package.json",
])
To add more snippets edit ~/.c9/plugins/myPlugin/snippets/javascript.snippets
NOTE: snippet file needs to be indented with tabs not spaces
I pieced this together from the two links below.
How to load plugins locally: https://community.c9.io/t/snippets-not-working-in-c9/19215/3
Fix for AWS not loading snippets: https://forums.aws.amazon.com/thread.jspa?threadID=299949&tstart=0
Is there a way to disable the media items edit button? Either in the Camaleon configuration or by using a hook... In my case, the user can only upload images and use them, but cannot edit them!
Thanks!
in the current version you can do it by adding a css style using the hook "admin_before_load".
app/apps/themes/my_theme/config/config.json
"hooks": {
"admin_before_load": ["my_function_admin_before_load"],
....
}
app/apps/themes/my_theme/main_helper.rb
def my_function_admin_before_load
append_asset_content('<style>#cama_media_gallery .media_item .edit_item{display: none;}</style>')
end
In current development version I added two hooks "file_manager_edit_file" and "file_manager_del_file"
Regards!
This question already has answers here:
How to associate a program with a file type, but only for the current user?
(2 answers)
Closed 8 years ago.
How can i auto-open a custom extension in my Delphi app ? I'm trying to make application
that loads text files but with a different extension.
Example : Text.DZ | all i want is when i click the file with .DZ Extension it opens my app automatically and loads the text inside into the memo1.lines.text.
I know that i have to register my new custom extension but i have no idea how to do it and
load the text into my app.
Also if you can include a source-code example that would be awesome.
Any help will be much appreciated ! and
Sorry for my newbiness and bad English explanation but i hope you guys understand me (^-^)/.
There's a way to do it programmatically, although I don't recall how off the cuff.
That said, if you're just wanting to do it for your own personal use, not for a piece of software you'll be distributing to others, then the easiest way is to use Windows Explorer: click the data file you want, then right-click and select Open With -> ... you'll probably need to select the Other... option at the bottom. That will bring up a dialog box that lets you choose your app. There should also be a checkbox somewhere that says something like "Make Default" or "Always Open With This" or something along those lines. Make sure that box is checked. Then click OK a couple of times and you're off to the races.
But you'll also need to set up your app to read the filename from the command line. You use ParamStr and ParamCount for this.
for i := 0 to ParamCount do
ShowMessage('Parameter '+IntToStr(i)+' = '+ParamStr(i));
When you double-click on the data file, it will open your app and pass this filename as ParamStr(1). So when you get it, simply do something like this:
memo1.lines.LoadFromFile( ParamStr(1) );
Use this as a STARTING POINT (it won't compile if you just copy-and-paste!):
procedure TMyForm234:FormCreate( blah blah )
begin
if ParamCount > 0 then
theMemo.Lines.LoadFromFile( ParamStr(1) );
end;
in Backend TYPO3: How can I disable one of these options on RTE (htmlarea), when the editor click on the LINK-Button (anchor). The Link Wizard starts in new window and the editor can choose the link to a page, folder, mail or ext. website.
I want to remove some of these options. Only "Page" and "Mail" will be allowed.
I thought it was on the pageconfig.ts
RTE.default.blindlinkoptions = spec,url
But it doesn't work. Anyone an idea? Thanks.
There it is:
RTE.default.buttons.link.options.removeItems = page,file,url,mail,spec, folder
You could try this:
RTE.default.FE.classesAnchor.default.url >
RTE.default.FE.classesAnchor.default.file >
or this, or both:
RTE.default.FE.classesAnchor := removeFromList(internal-link,
internal-link-new-window, mail)
I'm not so sure about this solutions. I just looked the pathes up in the Backend in the Info module under PageTSConfig.
I have imacro enterprize edition. I want to load URL from a .txt file and visit the pages, and then fill a form. The form is the same for all the URLs. For a single page, I can make the macro but cannot make the macro that load the next URL from a .txt file and do the same work.
I have searched a lot and made a code that can load an URL from .csv file and visit a page. But it is not working. Here it is:
VERSION BUILD=7401004 RECORDER=FX
TAB T=1TAB CLOSEALLOTHERS
SET !DATASOURCE input.csv
SET !DATASOURCE_COLUMNS 7
SET !DATASOURCE_LINE {{!LOOP}}URL GOTO={{!COL1}}
What might I be doing wrong?
You have to define a variable for the loop:
VERSION BUILD=8940826 RECORDER=FX
SET !DATASOURCE c:\input.csv
SET !DATASOURCE_COLUMNS 7
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO={{!COL1}}
...