Simple Custom Tag needed

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
ksaravaakumar
New Member
New Member
Posts: 7
Joined: Sat Jan 05, 2008 7:55 am

Simple Custom Tag needed

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Simple Custom Tag needed

Post 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
ksaravaakumar
New Member
New Member
Posts: 7
Joined: Sat Jan 05, 2008 7:55 am

Re: Simple Custom Tag needed

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Simple Custom Tag needed

Post by RonnyK »

ksaravaakumar
New Member
New Member
Posts: 7
Joined: Sat Jan 05, 2008 7:55 am

Re: Simple Custom Tag needed

Post by ksaravaakumar »

Thanks this is what I wanted  ;D
ksaravaakumar
New Member
New Member
Posts: 7
Joined: Sat Jan 05, 2008 7:55 am

Re: Simple Custom Tag needed

Post 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.
Post Reply

Return to “Developers Discussion”