Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
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)
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
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.
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
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.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
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
Re: msd_admin_colorpicker: Adds colorpicker to write tab
If fixed this issue. Please install the latest version available on my site.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: msd_admin_colorpicker: Adds colorpicker to write tab
It works now! Thank you very much, great plugin!
Offline
Re: msd_admin_colorpicker: Adds colorpicker to write tab
Glad you like it. Sorry about that.
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
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.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
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.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline