Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-03 20:02:29

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Really simple question about adding content to tabs

I want to insert a link to open a video tutorial in each tab of textpattern.

I’m a newb to PHP and JavaScript so if someone could give me a the code to insert the link i can do the rest. I know the basics of making a plug-in thank to the plug-in template and builder extension.

I’ve got the following to insert a link to the articles tab but need it to be at the top of the page and not the bottom.

	register_callback('show_vid', 'article');
	function show_vid($event, $step) {
        $out[] = '<a href="#">my link</a>';
}

Last edited by FireFusion (2009-07-04 12:57:33)

Offline

#2 2009-08-12 08:47:02

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: Really simple question about adding content to tabs

Insert links panel to top all pages in TxP admin.

if (txpinterface == 'admin'){
	register_callback("aks_nav", "admin_side","pagetop");
}
function aks_nav($qq){
global $txpcfg, $prefs;
   $prr=is_logged_in();
   if($prr['privs']==1){           // display links ONLY for admins
	echo "<a href='mypages/123.php'>Some page</a> | ".ps('event')." | ".ps('step');    // echo  links and others
   }
}

aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

Board footer

Powered by FluxBB