Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-03-15 23:45:52

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 596
Website

Simplifying the image tag builder

I’d like to do the following:

Image tab: Put “textile” tag builder link in bold, because it’s the most common of the 3 choices for my client.

Tag builder popup: Remove everything but “Type,” “CSS class,” and “Build tag.” (and probably change “CSS class” to read “right / left?” for example.)

Are there plugins that do this? Should I edit the Textpattern core?

Last edited by maruchan (2011-03-15 23:56:28)

Offline

#2 2011-03-16 01:13:30

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: Simplifying the image tag builder

maruchan wrote:

Should I edit the Textpattern core?

Why? You know CSS: nth-child + content. It’s just that you can’t change only the image tag builder, you’ll influence all of them.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2011-03-16 01:23:13

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: Simplifying the image tag builder

Yup, works. Just copy:

#page-image .tag-build li:first-child {
	font-weight: bold;
	}

#tagbuilder tr:nth-child(3),
#tagbuilder tr:nth-child(4),
#tagbuilder tr:nth-child(6),
#tagbuilder tr:nth-child(7) {
	display: none;
	}
#tagbuilder tr:nth-child(5) {
	color: transparent;
	}
#tagbuilder tr:nth-child(5) td:first-child:after {
	content: "right/left?";
	color: #000;
	}

In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#4 2011-03-16 01:29:45

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 596
Website

Re: Simplifying the image tag builder

Why would I learn nth-child by myself when I have an Uli at my fingertips?? Holy cow. That really did the trick. Thanks!

I think my head has been buried too far into plugins…

(And nth-child + content were, until now, just things I had been “meaning to try out sometime.” Great lesson.)

Edit: Or Uli

Last edited by maruchan (2011-03-16 01:49:11)

Offline

#5 2011-03-16 01:37:36

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: Simplifying the image tag builder

I’m learning these selectors, too. Have been hiding my lazyness behind IE6 for too long.

Last edited by uli (2011-03-16 02:05:33)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB