Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 Yesterday 21:41:59
- imazer
- New Member
- Registered: 2024-06-19
- Posts: 5
Missing Tags
Denizens of Textpattern-land!
After years of partial neglect, I have been reworking my old, four page, Textpattern based website to make it responsive. I’ve been working up hidden pages for the revamp, porting over useful code, while adding newer elements for the change.
But I’ve run into a peculiar problem.
On the Pages section of the my TXP backend, for my new main page, I included a snippet of code coped from my previous, longtime functional “Middle “(Articles) page, and pasted that into the html of the newer “Articles_copy” mock-up page, including this section:
<div id=“maintextboxN” > <txp:article form=“default” listform=“Excerpt4” /> <txp:if_individual_article> <txp:link_to_prev><txp:prev_title /></txp:link_to_prev> <txp:link_to_next><txp:next_title /></txp:link_to_next> </txp:if_individual_article> <txp:if_article_list> <txp:older>Previous</txp:older> <txp:newer>Next</txp:newer> </txp:if_article_list> </div>
The only difference from the code that works fine on the older page is the capital “N” of the ID that links to a slightly modified section of CSS. So this should render fine.
Original, functioning page:
https://imazerweb.com/Middle/
Newer, failing mock-up:
https://imazerweb.com/Articles_copy/
Now, if you use your web browser development tools to access the page source code, you can see that the above txp tags fail to populate the code with the appropriate linking texts, texts that should in turn offer link titles and excerpts on the published webpage. The div that wraps the tags is certainly there. On the other hand, the backend txp tags for the left side “Articles” list are visible in the source and render the intended list on the proper side of the published page.
Since when does code put in at the backend disappear? I have gone over everything slowly and am quite mystified. Are the tags supposed to be limited to only one page for some built in Textpatten design I missed? Do any of you wonderful folks have a clue what happened to those tags?Thank you for your time!
(This is just a hobby, so nothing but my wits are on the line here.)
—John M.
Offline
Re: Missing Tags
What does your Excerpt4 form looks like?
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: Missing Tags
Hi John, thanks for reaching out with your issue. My suspicion is that you’ve fallen foul of context.
When you created your new section “Articles_copy”, the <txp:article> tag in your page template tells Textpattern to “go and fetch the articles assigned to this section and display them”. Unless you also duplicated your articles from the old ‘Middle’ section and assigned them to the Articles_copy section (or moved them to the new section), and made them Live, the tag will show nothing; there are no articles to show, and the <txp:article> tag is context-aware (of the URL).
By contrast, the sidebar is likely using <txp:article_custom> which is also context-aware by default but can be overridden by telling it to fetch articles from section="middle". My guess is that is what it’s doing: being told to fetch specific articles for the sidebar list from a specific section. In other words, it sidesteps and ignores the URL context to which <txp:article> adheres.
Try adding an article or two to your Articles_copy section and see if they show up on that page.
If that still doesn’t work, please let us know how your content is set up and arranged – a precis will do – and we’ll try to figure it out. Flicking your site to debugging mode in Admin->Preferences will also help, because you can scroll down to see the Tag Trace if you View Source of the website, and that can often show the queries behind the scenes that could lead to diagnosing the issue.
Hope that helps.
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
Re: Missing Tags
I don’t know if this is related but i recently was duplicating etc a series of Pages and i discovered that i had to double check that the Sections Tab of the Admin was actually pointing to the correct Page.
…. texted postive
Offline
#5 Today 02:29:25
- imazer
- New Member
- Registered: 2024-06-19
- Posts: 5
Re: Missing Tags
Thank you everybody for responding so quickly!
Turns out that Bloke was right. It was context, and as soon as I assigned a new article to the proper page via Sections — BOOM! — it appears on the page. At bit of “D’oh!”, but there are more than a few moving parts.
Now it’s time to go back and make my SVGs work properly…
Thanks again!
—John M.
Offline
Pages: 1