Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » upm_section_title

#13 2005-07-01 17:12:52

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: upm_section_title

Hi Mary. You might want to add <strong>$thisarticle</strong> to <code>global $s;</code> : ) and I don’t really know about the following warning:

<code>[Fri Jul 1 18:07:32 2005] [error] PHP Warning: Missing argument 1 for upm_section_title() in /Library/WebServer/Documents/assetsos/new/textpattern/lib/txplib_misc.php(379) : eval()’d code on line 1</code>

Was building a new breadcrumbs plug-in and couldn’t figure out how to access the new <strong>section_title</strong> txp global so resorted to using this plugin of yours for the time being ; ).

Keep the good work going, Gerhard.

Offline

#14 2005-07-01 19:09:14

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_section_title

Oh crumbs. I knew that too, but somehow I thought that was in there. Added it, thanks. I’ll repost the plugin in a little while.

I just found out that Textpattern supresses errors. So, I was running PHP with full error reporting, but that didn’t make a damn difference. Wee. I’m gonna go through all my plugins now and make sure there’s no more funky crap.

Offline

#15 2005-07-01 19:17:45

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_section_title

Oh and the missing argument one, yeah that’s my fault too. I’ll fix that while I’m at it.

sigh

Offline

#16 2005-07-01 19:29:43

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: upm_section_title

I didn’t know utterplush.com was your website. I don’t know where or how I came across it, but it has a name that isn’t easy to forget :P.

Catch u around ; ).

Offline

#17 2005-07-01 21:23:32

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_section_title

Thanks again. v.0.4.1

Offline

#18 2005-08-22 21:04:54

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: upm_section_title

I am calling the plugin with this code:

<code><txp:upm_section_title name=“visit” class=“toptab” link=“yes”/></code>

and getting this output:

<code><a href=“http://www.patestreet.com/visit”>Visit A Library</a></code>

Perfect except that somehow the class is getting lost along the way. Anyone have a guess?

Last edited by michaelkpate (2005-08-22 21:05:30)

Offline

#19 2005-08-22 21:33:38

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: upm_section_title

Michael, I don’t really know what you are trying to achieve or which version of TXP you are using. However, if you want to style the <code><a></code> tags within <code><div id=“toptabs”></code>, just go <code>#toptabs a, #toptabs a:hover etc.</code>.

You might also want to take a look @ ako_nav . Good luck ; ).

Last edited by gerhard (2005-08-22 21:36:04)

Offline

#20 2005-08-22 22:47:54

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_section_title

The class only gets applied to the wrapping tag. One moment and I’ll rectify that.

Offline

#21 2005-08-22 23:10:52

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_section_title

v.0.5. Try it now Michael, it should work fine. :)

Offline

#22 2005-08-22 23:59:33

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: upm_section_title

> mary wrote:

> v.0.5. Try it now Michael, it should work fine. :)

Thanks, Mary… but, um, the link still seems to be to the 0.4.1 version. :)

Offline

#23 2005-08-23 00:10:09

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_section_title

Wee… try again. :D

Offline

#24 2005-08-23 01:21:37

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: upm_section_title

Absolutely perfect. Thanks again.

And, Gerhard, thanks for your suggestion as well. I looked at ako_nav the other day but to get the output I needed required hacking the plugin so extensively that I decided there had to be an easier way. Using Mary’s plugin in conjunction with txp:if_section is not quite as efficient but is much easier to work with.

Offline

  1. Index
  2. » Archives
  3. » upm_section_title

Board footer

Powered by FluxBB