Recent Topics

1 Mar 27, 2006 22:17    

Here's what I'm trying to do:

<?php $Blog->disp( 'rdf_url', 'raw' ) ?>&title=<?php $Item->title('','',false); ?>


This code displays:

http://mydomain.com/xmlsrv/rdf.php?blog=5&title=My Post Title


I want the code to display:

http://mydomain.com/xmlsrv/rdf.php?blog=5&title=my_post_title

(my_post_title = the very last part of the permalink)

How can I do this? I'm not sure if I am doing this right.

P.S. I am using _main.php under my default skin's folder to call up this function.

2 Mar 28, 2006 02:56

Try $Item->urltitle()

3 Mar 28, 2006 20:02

I get a "called to undefined function" error when using urltitle(). Are you sure the function urltitle() exists?

4 Mar 28, 2006 22:01

I didn't test it out, I just saw it in the documentation. What version of b2evolution are you using?

6 Mar 29, 2006 00:41

http://mydomain.com/xmlsrv/rdf.php?blog=5&p=193


This works for getting a specific post, but how can I call the p=193 up in _main.php?

7 Mar 30, 2006 20:59

You get the Item's urltitle like this:


$Item->urltitle

It's no function, but a property.

See http://doc.b2evolution.net/v-0-9/evocore/Item.html for more documentation (which is generated from 0.9.1, but should be the same in general).

To get the permalink (which looks like what you're trying to do), just do:


$Item->gen_permalink();


Form is loading...