ID tags? Topic is solved

General project discussion. NOT for help questions.
Post Reply
angels

ID tags?

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

Re: ID tags?

Post 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
angels

Re: ID tags?

Post by angels »

Yes i know that. but i mean the { title } and { content } tags!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: ID tags?

Post 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'];
angels

Re: ID tags?

Post by angels »

great it works perfect thanks!
Adam

Re: ID tags?

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: ID tags?

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

Return to “General Discussion”