Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-08-31 02:19:17

gu
Member
Registered: 2020-08-27
Posts: 59

stray end tag a

If I am allowed to post two questions in a day, I would like to ask about a stray end tag </a> that keeps showing up.

I fear the problem is very elementary, but I have spent hours trying to solve this and am absolutely certain that it is not the regular html but has to do with my incorrect nesting of txp.

Here are the problem areas I suspect:

First suspect:

<header id="masthead">
<txp:link_to_home><img src="https://site.com/favicon.png" alt="sitename" width="x" height="x"><txp:image_url /></a>

Second suspect:

<div class="logo">
<txp:link_to_home>
    <txp:site_name />
</txp:link_to_home>
</div>
<div id="search"><txp:search_input /></div>
</header>	

I am sorry about the code but I am new at this.
Thank you so much.
p.s.

  • I did try to find the answer myself and tried things like adding “> or reading about ‘escaping’, but to no avail.
  • Also, I put that extra </a> tag where it is because without it, a whole section of code went a bit bonkers.

Edit by gaekwad: Textile tweaks

Last edited by gaekwad (2020-08-31 09:50:52)


<!— space for hope —>

Offline

#2 2020-08-31 04:21:14

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

Re: stray end tag a

Hi,

<txp:link_to_home><img src="https://site.com/favicon.png" alt="sitename" width="x" height="x"><txp:image_url /></a>

should be

<txp:link_to_home><txp:image id="##" /></txp:link_to_home>

> Edit: typo

Last edited by colak (2020-08-31 06:41:48)


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 2020-08-31 07:30:53

gu
Member
Registered: 2020-08-27
Posts: 59

Re: stray end tag a

Thank you so much colak – and oh my goodness the relief at no more page source ‘angry red’.
tl;dr : coding is so neat it is hard not to go on about it!
It is so fascinating! I can see (now, thanks to your correction) that in this instance I did not properly close the txp. But in thinking about why it didn’t work… I wonder if it is something like what I read as I was searching for the solution on my own (it was suggested that an html error can really be connected to the css, so I suppose the error was connected to the php). I never expected this to be so interesting – by which I mean addictive… Even as I create little ‘hacks’ (in the pejorative, not real, sense of the word), I am making a mental note to return to these problems later to figure out the why… Oh my gosh I never knew a few days ago just how much fun this is …once one gets over the fear of breaking the internet, which I admit I still have a little bit.


<!— space for hope —>

Offline

#4 2020-08-31 09:49:56

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: stray end tag a

gu wrote #325674:

tl;dr : coding is so neat it is hard not to go on about it!

You’ll be just fine around here, sir or madam. You get bonus points for using Textile already.

Edit: speaking of Textile, I tweaked your OP – hope you don’t mind. You can make your code blocks prettier that way.

Last edited by gaekwad (2020-08-31 09:52:42)

Offline

#5 2020-08-31 17:53:05

gu
Member
Registered: 2020-08-27
Posts: 59

Re: stray end tag a

Thank you for the welcome and for mentioning about tweaking the presentation of the post – I will try to learn that, too. Aside from opening and closing the code command, I am guessing that one also includes code for overflow (this is what I retained from late night reading, looking up the code for what I wanted to do…)
I am so grateful to be here. Txp and this forum is exactly what it seems my life was missing but that I always wanted! I am so looking forward to learning more… and even the question of what to call txp (is it a language? A style? A dialect? – tongue in cheek in the last one). Tangentially, I will share that I am really fascinated by esolangs and that was actually the motivating factor in my taking the plunge into code. How neat it would be to make a fun little language or function, just because!
Thank you so much for the warm welcome!


<!— space for hope —>

Offline

#6 2020-09-01 06:45:12

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,071
Website Mastodon

Re: stray end tag a

Urban Müller


…. texted postive

Offline

#7 2020-09-02 14:22:46

gu
Member
Registered: 2020-08-27
Posts: 59

Re: stray end tag a

Müller indeed! But for what it’s worth, and before I knew of Müller, it was the Chef esolang that really piqued my imagination.


<!— space for hope —>

Offline

Board footer

Powered by FluxBB