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..
ID tags?
Re: ID tags?
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
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?
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?
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
{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?
Revise content_id as the following.
Then you should be able to do this:
Not a totally clean solution, but it should work.
Code: Select all
global $gCms;
$smarty->assign('content_id',$gCms->variables['content_id']);
Code: Select all
{content_id}
{bulletmenu start_page=$content_id show_root_siblings="1"}