Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-03-02 13:47:31

lindabb
Member
Registered: 2023-02-17
Posts: 109

New plugin

Hello,

Thanks to Bloke fixed the link, I have created new plug from the example provided on:
https://docs.textpattern.com/development/admin-side-plugin-tutorial

Perfect, worked very well, after few steps I was able to click on edit and see the message

public function edit() { echo ‘Edit step triggered’; // $this->list();  I commented this line and above message showed up }

But the issue I don’t see admin menus, just message “Edit step triggered” any idea how to allow that message shows under admin menus or panels like other plugins?

Offline

#2 2023-03-02 13:51:37

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

Re: New plugin

You’ll need to call pagetop()first, which renders all the menu and heading paraphernalia.


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

Online

#3 2023-03-02 14:43:20

lindabb
Member
Registered: 2023-02-17
Posts: 109

Re: New plugin

Hallelujah,
Fantastic Bloke, that worked , I added that after public function edit() { pagetop();

Thank you for your help

Offline

Board footer

Powered by FluxBB