You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#99843 Preconfigure text content with template manager ?

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Technichem on Tuesday, 07 May 2019 13:53 BST

Technichem
Hi,

is there a tutorial for the template manager?

I have a user whois must encode as little as possible and I would like him to use a joomla page with preconfigured content with h1, h2 tags and a text box that he will just have to change.
It is to streng the SEO and respect always the structure of content.

Attachments

Ryan
You can create the template file as a simple HTML file (without the <html>, <body> etc. stuff), or use the Template Manager to create the file from existing content - https://www.joomlacontenteditor.net/support/documentation/template-manager/creating-a-template

Then either have your user insert the file using the Template Manager, or configure the Template Manager to load the file automatically when an empty editor is loaded:

1. In Editor Profiles -> Plugin Parameters -> Template Manager, set the Startup Content field to the relative path to the file

https://cdn.joomlacontenteditor.net/tmp/99843-preconfigure-text-content-with-template-manager.jpg

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Technichem
Ryan,
i check the doc. I must use a div ?
Can i insert h1, h2 code html like this ?

<h1>Titre h1</h1>
<hr id="system-readmore" />
<h2>Titre h2</h2>
<p>Texte texte</p>

Ryan
Yes, that is fine.

A div wrapper is only used if you are using dynamic content.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Technichem
Ok Ryan,

Ok Ryan, I create with template manager and after i modify with notepad my html file which download with ftp and upload it in images/ yet ;)
It's correct ?

Technichem
And what is is ?
<div class="mceTmpl"></div>
This code is by default.

Ryan
And what is is ?
<div class="mceTmpl"></div>
This code is by default.


This is a div wrapper to identify the code as a template, and is used when the code contains dynamic elements.

When creating the template, set the Type to Snippet, and it will not contain this wrapper.

https://cdn.joomlacontenteditor.net/tmp/99843-preconfigure-text-content-with-template-manager-2.jpg

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Technichem
Thanks a lot Ryan. 😃