Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-04-01 14:46:19

satellite360
Member
Registered: 2006-04-24
Posts: 14

Double-hash ## code snippet?

Looking through some old textpattern code on a broken site and have come across examples like the following:

<head> <title>whatever</title> ##head_data##
</head>

I’m guessing the ##head_data## part is some kind of code snippet but I can’t find a reference to it anywhere. Grateful for a pointer as to how this works.

Offline

#2 2013-04-01 15:40:31

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

Re: Double-hash ## code snippet?

It looks like a comment encoded wrongly to me


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2013-04-01 15:51:19

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,795
Website GitHub

Re: Double-hash ## code snippet?

satellite360 wrote:

I’m guessing the ##head_data## part is some kind of code snippet

Is it a multi-lingual site? MLP uses that format for what it calls Snippets, and replaces them with localized content. Might be that.


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

#4 2013-04-01 16:17:59

satellite360
Member
Registered: 2006-04-24
Posts: 14

Re: Double-hash ## code snippet?

Thanks Bloke – MLP is exactly what it is. Just found the snippets buried in the txp_lang table.

Offline

#5 2013-04-01 16:32:29

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,795
Website GitHub

Re: Double-hash ## code snippet?

satellite360 wrote:

Thanks Bloke – MLP is exactly what it is. Just found the snippets buried in the txp_lang table.

No worries, so you should be able to manage those under Content -> MLP -> Snippets.


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

Board footer

Powered by FluxBB