Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-06-19 08:54:56

davidyoung
New Member
Registered: 2024-06-19
Posts: 2

New user: How to insert a link to an existing page from a short text

Transitioning from Drupal to Textpattern. Old front page is available at https://web.archive.org/web/20231203113406/http://bidp.bw/
On that page is ‘Botswana calendar’ which calls http://bidp.bw/php/calendar1.php. Replaces whole front page. No search, no conditions.
https://bidp.bw is the new front page under construction. Has the words ‘Botswana calendar’ twice. I need the top instance to call the little script when clicked. How? I am familiar with html and php.
Updated page to
<txp:php> <a href=“https://bidp.bw/bidp/php/calendar1.php”>Botswana Calendar</a>
</txp:php>
But still not appearing on construction front page.

Last edited by davidyoung (2024-06-19 09:38:11)

Offline

#2 2024-06-19 10:52:10

etc
Developer
Registered: 2010-11-11
Posts: 5,235
Website GitHub

Re: New user: How to insert a link to an existing page from a short text

Hello, welcome to txp.

You don’t need to enclose links in <txp:php /> tag, a plain

<a href=“https://bidp.bw/bidp/php/calendar1.php”>Botswana Calendar</a>

should suffice. Since you calendar does not seem to reference external links, you might want to consider opening it in some <iframe />.

Hope that helps.

Offline

#3 2024-06-21 05:25:18

davidyoung
New Member
Registered: 2024-06-19
Posts: 2

Re: New user: How to insert a link to an existing page from a short text

Thanks. I have a number of other questions, but will see how I go today.

Offline

Board footer

Powered by FluxBB