Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-26 06:23:09

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

How to: "Use Textile" enabled but "per article" disabled by default

I would like to have “Use Textile” enabled (in Site Preferences), but disable by default in each article (checkbox unchecked in “Advanced options” in the Write tab).

Why?

In the Write Tab, I want to keep showing the “Text”, “HTML”, and “Preview” subtabs for previewing content.

If you have Textile enabled, those tabs are showed. But also the “Use Textile in article” checkbox in “Advanced option” is checked by default.
And that checkbox is what I want to keep unchecked by default (without disabling Textile from Site Preferences).

Of course, if I disable Textile from Site Preferences, the checkbox is unchecked, but I also lose the “Text”, “HTML”, and “Preview” subtabs.

Thanks in advance <small>and excuse my english</small>


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#2 2005-10-26 15:45:49

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How to: "Use Textile" enabled but "per article" disabled by default

Mary has a plugin that turns Textile off for excerpts. Maybe it’s easy to change so that you can turn it off for the body as well. Or Mary might want to do that for you.

Offline

#3 2005-10-26 16:15:19

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: How to: "Use Textile" enabled but "per article" disabled by default

Thanks, doggiez!

That is what I was needing.
I made myself the change. It was so easy, even for me, that only knows how to program a few lines in Pascal.
I dont even know what <acronym title=“PHP Hypertext Processor”>PHP</acronym> acronym stands for ;) !

After:
<code>echo n.’&lt;script type=“text/javascript”&gt;document.article.textile_excerpt.checked = false;&lt;/script&gt;’;</code>

I added:
<code>echo n.’&lt;script type=“text/javascript”&gt;document.article.textile_body.checked = false;&lt;/script&gt;</code>’;</code>

I know it will be some kind of robbery to mary efforts if I release this as a new plug-in (named mnq_textile_off), but I also believe that this will be my last chance to release a plug-in for TXP with my name! (please, dont cry for me).
<strong>Of course, all credits goes for Mary.</strong>

So, I was looking at zem’s plug-in template…
But I get stuck when he talks about “php command line blablabla”.
Do I need to have a local webserver installed? or can I do this from my cPanel?

No, I wont release this as a plug-in… It will be a shame for me.

And voilà! That’s all.

Last edited by maniqui (2005-10-26 16:27:48)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#4 2006-04-08 10:02:31

-P-
Member
From: Finland
Registered: 2005-09-10
Posts: 211

Re: How to: "Use Textile" enabled but "per article" disabled by default

This is a problem I also ran into on one installation that needs textile off as an default.

So to put the question bit other way around, how can I have textile off as an default but still maintain option for preview of an article when writing?

Do I have to edit the source? Excerpts are not in use at all.

Offline

Board footer

Powered by FluxBB