Recent Topics

1 Jul 08, 2005 21:58    

Hello,

I am having trouble with permalinks.

I've set up our link options to display extra-path info.
i.e. 'stub/2003/05/20/post_title'

I was wondering if there was a way to add or subtract content from the pages b2evo creates this way.

something like:
if post_title == blah_blah
echo 'whatever';

I've also tried using the variable post_urltitle.

Where to put the code snippet is hanging me up as well.
It doesnt seem to work in summary.php or _main.php.

Alas, I'm stuck so here I am.
Thanks much. Any help comes much appreciated. :)

johnnyeng

2 Jul 08, 2005 22:31

The thing you're looking for is a global variable called "$title".

It will only exist once /b2evocore/_main.php has been included (it's actually b2evocore/_vars.php that assigns it.) That means you should be able to access it in your skin's _main.php file.

3 Jul 09, 2005 00:47

thanks for your help Isaac!

The true name of that variable was the key to success!

I put the following snippet into _main.php and *presto* anything can be included (or excluded) from a 'permalink' type entry.


<?php if (ereg ("(_.*_)", $title)) {
echo ('whatever_you_want'); } 
?>

:D johnnyeng


Form is loading...