Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2009-08-18 20:48:03

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Many thanks Matt!

Another suggestion: why not a toggle effect vith [+] and [-] for the colorpicker colour wheel as well as for the map of msd_google_map (default closed)?

Offline

#26 2009-08-18 20:54:22

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Toggle was added to msd_google_map in v0.4. I can add the same to colorpicker.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#27 2009-08-18 21:08:36

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Perfect!

Could you add the [+] beside the custom field choosen in the msd_colourpicker preferences?

For example: I choose the custom-3 as colourpicker field, rename it as “Colour” in TXP=>Presentation=> Advanced Preferences and, in the TXP=>Contents=>Write page, I’d like to obtain:

Colour [+]

Last edited by candyman (2009-08-18 21:10:40)

Offline

#28 2009-08-19 05:49:09

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Toggle Added.

Also rewrote a lot of the code so that it’s much more readable and admin side only. Please let me know if you see any issues.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#29 2009-08-19 06:20:14

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Thank you very much!

The only issue I see is that the only custom used is custom-1: even changin’ the custom number in the plugin preferences the [+] is always beside the first TXP custom field.

Offline

#30 2009-08-19 06:53:16

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

I just confirmed I can change it on my install. I’ve tested it in Chrome and Firefox 3.5.
What browser are you using?


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#31 2009-08-19 06:55:12

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

It could be a caching issue. You can view the generated javascript that contains the reference to the field at http://YOURSITE.com/textpattern/index.php?msd_clrpkr=colorpicker_js


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#32 2009-08-19 07:46:31

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: msd_admin_colorpicker: Adds colorpicker to write tab

You’re right! It works perfectly.
I hope to find a solution to the marker integration I’ve told you.

Offline

#33 2009-08-19 16:44:42

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Just realized the [+] was showing when the colorpicker was displayed which is backwards. Fixed in 2.1.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#34 2009-08-19 17:47:21

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

candyman wrote:

I hope to find a solution to the marker integration I’ve told you.

You can add the following to the head section of your page

 <txp:if_individual_article>
<txp:if_custom_field name="custom1" val="">
<txp:else/>
<style type="txt/css">
span.highlighted{background-color: <txp:custom_field name="custom1" escape=""/>;
</style>
</txp:if_custom_field>
</txp:if_individual_article>

and then highlight a portion of your article by surrounding it in a span with a class using textile like this:

designed to display a %(highlighted)different color% for each article.

resulting in the following html

designed to display a <span class="highlighted">different color</span> for each article.

Last edited by MattD (2014-01-10 19:00:04)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#35 2009-08-19 18:12:59

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Thanks! I’ll give a try and tell you the result!

Obviously I can’t specify the span.highligted class in the css, can I?

Offline

#36 2009-08-19 18:21:43

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

You can’t on the css tab because it doesn’t parse tags. You could have it in a form or something to seperate it from your other markup but it’ll still be in the source of your page and not an external style sheet.

I was trying to use inline styles but textile doesn’t seem to parse it correctly.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB