Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2020-01-10 16:40:09

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,937
Website

Re: Date Object associate to content to links

phiw13 wrote #320993:

Hmm, this selector would be better: .txp-edit .posted-now {}

That would only affect those Edit panels.

Yes.

Or alternatively as a separate indent helper class in the css which is then added to the class list of the items that should push over into the second “column”.
AFAIR I think I added something similar for the field hint instructions in glz_custom_fields.


TXP Builders – finely-crafted code, design and txp

Offline

#32 2020-01-10 18:28:18

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,726
Website

Re: Date Object associate to content to links

Cool. I’m easy with whichever method works and Phil is willing to support!


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#33 2020-01-10 23:51:56

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,116
Website

Re: Date Object associate to content to links

jakob wrote #321004:

Yes.

Or alternatively as a separate indent helper class in the css which is then added to the class list of the items that should push over into the second “column”.

Yes. That would be ideal. Lacking that, I went with the above selector.

AFAIR I think I added something similar for the field hint instructions in glz_custom_fields.

Indeed you did, and that is one case where the helper class would be very useful, as it would leave the actual values to the theme in use.


Where is that emoji for a solar powered submarine when you need it ?

Offline

#34 2020-01-11 08:11:12

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,726
Website

Re: Date Object associate to content to links

phiw13 wrote #321020:

that is one case where the helper class would be very useful, as it would leave the actual values to the theme in use.

Is this something we could offer in core easily?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#35 2020-01-11 09:03:08

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,116
Website

Re: Date Object associate to content to links

Bloke wrote #321026:

Is this something we could offer in core easily?

Core could have a helper class that can be used in those cases. For example, in the case discussed in this thread, you could add that helper class to the div class="posted-now", and Hive theme can then use that class to use the values given above. I suppose for Core it is just changing div class="posted-now" to div class="txp-form-field-foo posted-now" with txp-form-field-foo being the name of the helper class. Phil can then use that class in Hive .txp-form-field-foo { padding-left:50%;}. I leave the name up to Phil ~:)

And then Jacob could use the same class for his help text fields that are equally offset in the glz_custom_fields plugin, and not worry about the actual values.


Where is that emoji for a solar powered submarine when you need it ?

Offline

#36 2020-01-11 09:35:18

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,726
Website

Re: Date Object associate to content to links

@phiw13. Sounds like a winner to me. Thoughts, Phil?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#37 2020-01-24 10:26:44

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,366
Website

Re: Date Object associate to content to links

I have now created a class .txp-form-field-shim that can be used to move content across a panel, as you’ve discussed above. It’s currently used to shunt the ‘Set timestamp to now’ field across the file/link edit panels.

Offline

Board footer

Powered by FluxBB