Make a Lasting Impression

Join the Mailing List

Get Involved!

Who's Online

6 user(s) are online (1 user(s) are browsing ImpressCMS Blog)

Members: 1
Guests: 5

MekDrop, more...
ImpressCMS proudly uses SourceForge
ImpressCMS on Ohloh.net

Using external templates in TinyMCE

I readed a tutorial about this matter in XOOPS and start working for use that feature in ImpressCMS. Module templates are applied for all module contents, but using templates in the editor you can predefinied a HTML design for certain content types in a module. For example: a special design accordin each product type or whatever you want. Flexibility is great.

Let´s go:

1.- Option: If you use the great TinyConfig module, just add the word template in plugins and theme advanced buttons.

If not you must edit the file /editors/tinymce/tinymce.php.

Just around line 93

$this->setting["plugins"]

and in line 104

$this->setting["theme_advanced_buttons2"]

add ,template and save the file. Now you have a new button the editor.

2.-  You need load the external template files.

About line 231 just after force_br_newlines add:

template_external_list_url: "' . ICMS_URL . '/uploads/liste.js",

The content for that file will be:

var tinyMCETemplateList = new Array(// Name, URL ["Product 1", "http://yoursite/uploads/tiny_templates/product1.html"],["Product 2", "http://yoursite/uploads/tiny_templates/product2.html"]);


3.- Create your template files (they must to be in html format, but without  html,  body or head tags, the root folder and submit liste.js file.

4.- Enjoy

More info about this matter.

1 comments

ImpressCMS from 2012 to 2013 - part 2

 
In this second part of the series, we continue to look at several key elements from 2012 for the ImpressCMS project, and see for those elements what's planned for the new year. If you want to start wiith the first part, it is available here.

Project website improvements

During 2012, some small improvements have been done on the websites, but the structure is essentially the one from the beginning. The project has changed, the web has changed, our users now use the site more and more from mobile devices. Content wise, we’ll need to review the content of the site to see what is still accurate, and what needs to be revised. Site wise, we need to review the organisation and structure of the site to be more according to what our users are expecting nowadays. keep reading ...

2 comments

ImpressCMS From 2012 to 2013 - Part 1

The end of the year is traditionally the moment where people take the time to sit down, look back on the past year and reflect on the year that’s ahead. Television was flooded with overviews of 2012 between Christmas and New Year’s eve, some more interesting than others. For us not to get lost in the onslaught, I decided to wait a bit before publishing our year in review. That should also give you some time to recover from the festivities. keep reading ...

No comment

5 Year Plans - Then and Now

When ImpressCMS launched 5 years ago, there wasn't a 5-year plan. Yet, we (you) have published or started major releases every year for the past 5 years. I think one of the main reasons we have continued to be a viable choice for a web content platform is a lack of a 5-year plan. Long range planning rarely achieves what it hopes to achieve, and it can even sidetrack any real progress.

We do need and have some specific goals for 2013, though.

  • Realization of 2.0 in the first half of the year
  • Revitalization of the project websites
  • Regional meet-ups on all continents

It's the first one that I'll be spending quite a bit of time on - when is it 2.0 and when is it finished? keep reading ...

No comment

Welcome, 2013! What will we make of the new year?

Around the world, we welcomed the new year, but also reflected on the past year. I can imagine some are still a bit fuzzy from the previous evening's celebrations and I hope all of you enjoyed yourselves!

2013 is a significant year for ImpressCMS - it was 5 years ago we started this project and we are still here, helping, building, sharing and growing. In the coming weeks and months, you'll hear from some of our early founders and the goals we had then and what they see for the future. You'll also hear more about the upcoming 2.0 version and the direction for the next releases.

Now, let's have a little fun - what are your predictions for 2013, at least for technology and the web?

No comment
Pages:
Subscribe to latest posts