Page 1 of 1

ID tags?

Posted: Fri Jul 29, 2005 7:52 am
by angels
Hi,

There is a { Title } tag in the system but is there also a { content_id } tag in the system? If there is not, how can i make one? So i want the content_id number on my page with a tag but i cant get it working. Is there a list of tags btw.

Angels..

Re: ID tags?

Posted: Fri Jul 29, 2005 8:42 am
by ploc
You can find a complete list of available tags in the plugin and tag management.

Here's the list, see you cmsms install to get help for each one.

Ploc

Tags
Name     Help About
adsense Help About
breadcrumbs Help About
bulletmenu Help About
cms_module Help About
cms_selflink Help About
cms_version Help About
cms_versionname Help About
contact_form Help About
current_date Help About
dhtmlmenu Help About
footer
googlepr Help About
modified_date Help About
print Help About
search Help About
sitemap Help About
startExpandCollapse Help About
stopExpandCollapse Help About
user_agent (User) Edit Delete

Re: ID tags?

Posted: Fri Jul 29, 2005 8:58 am
by angels
Yes i know that. but i mean the { title } and { content } tags!

Re: ID tags?

Posted: Fri Jul 29, 2005 9:55 am
by Ted
You can make a user defined {content_id} VERY easily.  Add a new user defined tag, call it content_id, and make the code:

Code: Select all

global $gCms;
echo $gCms->variables['content_id'];

Re: ID tags?

Posted: Fri Jul 29, 2005 11:04 am
by angels
great it works perfect thanks!

Re: ID tags?

Posted: Tue Feb 14, 2006 8:25 pm
by Adam
I tried this and the {content_id} worked fine, but I need to embed it in an attribute.  I tried the following:

{bulletmenu start_page="$content_id" show_root_siblings="1"}

but it didn't work.  I'm not sure what else to try.

Thanks in advance for all your help.

AJ

Re: ID tags?

Posted: Tue Feb 14, 2006 9:45 pm
by Ted
Revise content_id as the following.

Code: Select all

global $gCms;
$smarty->assign('content_id',$gCms->variables['content_id']);
Then you should be able to do this:

Code: Select all

{content_id}
{bulletmenu start_page=$content_id show_root_siblings="1"}
Not a totally clean solution, but it should work.