add multiple languages to tinymce in asp.net? - asp.net

In our project we used tinymce from creating moxiecode tinymce dll.
I added fr.xml and fr.js files to related langs folder in tinymce folder.
And modified code like below in Language.aspx page which is in langs folder of imagemanager plugin in tinymce folder.
string langfr = "fr';
LanguagePack langPack = man.LangPack;
langPack.Load(this.MapPath(#"im/" + langfr + ".xml"));
Moxiecode.Manager.Utils.GroupCollection groups = langPack.Languages[langfr].Groups;
and modified "en" language selection to "fr".
Is this the right way to add another language to tinymce
I followed the above implementation like in the site

You can only have one langugage per editor instance. Each instance can get its own language-setting using a different tinymce configuration for each editor instance.

Related

In Wordpress website, connecting to another web_based application

I want to create a page in word press website, that shows information from external DB by API. What should I do?
But other pages and theme are in the Wordpress database.
Thanks in Advance
Set up a custom template. It can contain all the custom code you need, such as the API to call the external database. You create a new template by copying and modifying the page.php file from your theme. Just remove the parts you don't want and at the top put your new template name in a comment line like this:
/* Template Name: External-DB-Page */
Save that to a file such as external_db.php, upload it to your theme or child theme directory and then in your functions.php you include the file by adding
require_once 'external_db.php';
This new template called "External-DB-Page" will now be a selection available when choosing a page template for any page in WordPress.

How to Unset title ('Search results') on Search results page?

How to Unset title ('Search results') on Search results page?
I'm still noobish and I was trying this:
function mymodulename_preprocess_search_result(&$variables)
{
$variables['title'] = NULL;
}
You can not change it with a preprocess since the sentence is just a printed string in the template not a variable. So you have to alter the template.
In the templates folder of your theme, duplicate the template from /root directory of your site/modules/search/search-results.tpl.php.
And edit this file as you wish.
The theme template file will be automatically called instead of the one in the core.
You just need to change output rendering. Easy way to do this is to change search core module template file.
Go on:
\modules\search\search-results.tpl.php
In that file just delete output string or replace it with empty one. Find next line in code:
<h2><?php print t('Search results');?></h2>
You can delete whole row there or you can change it to:
<h2><?php print t('');?></h2>
NOTE:
When you change core modules you should pay attention you don't overwrite it with release which comes in new Drupal core (in case you want to upgrade your Drupal core).
If you not sure you will replace this file in future (during possible module or even entire Drupal core update) you might consider copy this file in your theme template folder. After putting that file in your theme template files folder you just need to clear the cache and that file will be called instead of one in core module.
#Laurent Thank you for your update.
Hope this helps.

How to add a file to wordpress theme from apparence->editor?

How to create a new file in my wordpress theme without using ftp client ?
thanks !
Using touch(); PHP function, which creates a new file in the specified directory. This is how I suggest doing it (and admittedly, there are cleaner ways, but this will get the job done, quickly and effectively)…
Open header.php — then write this code in the very top of the file:
<?php touch('wp-content/themes/YOUR_THEME_DIR/FILE_NAME.php');?>
Replace YOUR_THEME_DIR with the directory in which your WordPress theme lives.
Then, replace FILE_NAME with the name of the file you want to create.
Once that’s all done, save Header.php and go to the homepage of your site.
As soon as the homepage loads, it will create that new template or theme file.
Source :
https://www.webmechanix.com/how-to-create-a-new-theme-file-in-wordpress-without-ftp-access/
You can use a plugin called WPIDE found here https://wordpress.org/plugins/wpide/
This plugin will allow you to edit and add folder and files in your project.

Adding a new font in magento admin panel

we have list of fonts available in the text editor of magento using which we can create cms pages.I need to add a new font to that, is it possible.?
You can add the font options via the tiny_mce editor_template.js file:
File: js\tiny_mce\themes\advanced\editor_template.js
Variable: theme_advanced_fonts
Tinymce Config

How to add to the "New from Template" list?

I have added a new file template to Aptana Studio 3.0.4 as described in this documentation section:
http://wiki.appcelerator.org/display/tis/Creating+a+new+template
The new template now shows up when I select File->New->File and enter an appropriate filename. So far so good.
Now I'd like my new template to show up in the File->New From Template listing. I have not been able to locate any documentation that explains how to do this.
Ok this is actually fairly simple. For my example I will be creating an alternative php file template with a html5 structure.
On the main menu click: Command->PHP->Edit this bundle. You should see a folder named "PHP" appear in your Project Explorer window.
Open the project by double clicking on it and open the folder templates. Inside I see two files: template.php and template.rb
Create the file type you want to add here and name it phpHTML5.php.
Open the newly created file and paste (or create) your template inside and save.
In the same folder open template.rb
Printed at the bottom of the file is the structure:
template "PHP Template" do |t|
t.filetype = "*.php"
t.location = "templates/template.php"
end
Copy and paste it below changing the template to phpHTML5 the following changes:
template "PHP Template" do |t|
t.filetype = "*.php"
t.location = "templates/phpHTML5.php"
end
7. Save and Restart Aptana.
NOTE: You may 'delete' the project PHP but be careful to deselect the "Delete project contents on disk(cannot be undone)" otherwise you will be in trouble...
Any problems with this just let me know, and I will see if I can help with the rest.

Resources