Page 1 of 1

Simple Custom Tag needed

Posted: Sat Jan 05, 2008 8:01 am
by ksaravaakumar
Hello developers,

After meddling with some plugins I thought It would be useful if I can get a custom tag to return the content_id of the present page. Could anyone help me get the code for this. I think I may need more time to understand the code and start with PHP !! So If someone could help with this, it would be greatly useful and much appreciated.

Regards

Re: Simple Custom Tag needed

Posted: Sat Jan 05, 2008 9:54 am
by RonnyK
Do you mean the page-number under which the page is stored?
Like the number that TinyMCE puts inside the selflink-tag, to create a link to an internal page?

Ronny

Re: Simple Custom Tag needed

Posted: Sat Jan 05, 2008 10:11 am
by ksaravaakumar
Ideally I would like to get the content_id field from the cms_content table.

But if I could get a unique number or id for every node (article, blog entry, page, news article, whatever u call it), that should be fine.

Re: Simple Custom Tag needed

Posted: Sat Jan 05, 2008 10:31 am
by RonnyK

Re: Simple Custom Tag needed

Posted: Sat Jan 05, 2008 10:41 am
by ksaravaakumar
Thanks this is what I wanted  ;D

Re: Simple Custom Tag needed

Posted: Sat Jan 05, 2008 12:54 pm
by ksaravaakumar
I used this for the Ajax Star Rating used here

http://www.masugadesign.com/the-lab/scr ... rating-bar

I think we can make Ajax Star Rating as one more module.