Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#37 2009-08-19 18:25:15

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

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Looking at the html code it seems ok but the text isn’t highlighted with the custom colour.
I’ll give a more accurate look at the code.

Offline

#38 2009-08-19 18:47:18

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:

Looking at the html code it seems ok but the text isn’t highlighted with the custom colour.
I’ll give a more accurate look at the code.

Let me know if you need me to take a look.


My Plugins

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

Offline

#39 2009-11-03 17:44:43

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Is this plugin working when glz_custom_fields are enabled? I seem not able to set custom5 as color picker… (txp 4.2.0)

EDIT: Seems that I can’t set the preferences for the custom field: I hit the button and get no feedback, just the two empty fields again… with or without glz plugin…

Last edited by Zanza (2009-11-03 17:52:48)

Offline

#40 2009-11-03 18:47:43

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

Re: msd_admin_colorpicker: Adds colorpicker to write tab

If fixed this issue. Please install the latest version available on my site.


My Plugins

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

Offline

#41 2009-11-03 23:36:29

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

It works now! Thank you very much, great plugin!

Offline

#42 2009-11-03 23:56:18

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

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Glad you like it. Sorry about that.


My Plugins

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

Offline

#43 2009-11-04 01:44:52

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

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Hey, I noticed only now that you’ve written a tutorial about my previous request! Many thanks Matt! :)

Offline

#44 2009-11-04 02:23:18

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

Re: msd_admin_colorpicker: Adds colorpicker to write tab

You’re welcome. I thought I had posted a link to that earlier but I must not have.


My Plugins

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

Offline

#45 2009-11-30 22:58:47

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

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Version 2.4 – Adds a colorpicker to the preferences tab for selecting the default color.

See first post or my blog post to download.


My Plugins

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

Offline

Board footer

Powered by FluxBB